Types
Internal types
Script exposing auxiliary global variables, functions and types to provide a minimal typed structure to items.
AirlineLocation
Item that is location attribute of an airline
Source code in src/rmlab/_data/types.py
63 64 65 66 |
|
BoundedItem
Bases: Item
Item whose elements are bounded. The amount of unbounded items grows with the size/space of the underlying scenario
Source code in src/rmlab/_data/types.py
69 70 71 72 |
|
CoreItem
Item initialized from direct data upload
Source code in src/rmlab/_data/types.py
51 52 53 54 |
|
CustomersModelHolder
dataclass
Item associated with specific customers models
Source code in src/rmlab/_data/types.py
34 35 36 37 38 39 |
|
DerivedItem
Item initialized from other item categories
Source code in src/rmlab/_data/types.py
57 58 59 60 |
|
Item
dataclass
Base class for all Item classes
Source code in src/rmlab/_data/types.py
27 28 29 30 31 |
|
PricingModelHolder
dataclass
Item associated with specific pricing models
Source code in src/rmlab/_data/types.py
42 43 44 45 46 47 48 |
|
UnboundedItem
Bases: Item
Item whose elements are unbounded. The amount of unbounded items grows with the time period of the underlying scenario, which is in general unlimited
Source code in src/rmlab/_data/types.py
75 76 77 78 |
|
fields_of_dataclass(category)
Return the fields of a dataclass as a list of strings.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
category | type | Class of any category | required |
Returns:
Type | Description |
---|---|
List[str] | List of fields as strings |
Source code in src/rmlab/_data/types.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
|