Supported uses of calculation expressions
- Last Updated: March 24, 2022
- 1 minute read
- Corticon
- Version 6.3
- Documentation
You can do comparisons and assignments in a few different ways:
To make the examples more interesting and allow for a bit more complexity in
the rules, the basic Tutorial Vocabulary (Cargo.ecore) was
extended to include a few more attributes. The extended Vocabulary is shown in the
following figure:
The new attributes are described in the following table:
| Attribute | Data type | Description |
|---|---|---|
Aircraft.emptyWeight |
Decimal | The weight of an aircraft with no fuel or cargo onboard (kilograms.) |
Aircraft.grossWeight |
Decimal | The maximum amount of weight an aircraft can safely lift, equal to the sum of cargo and fuel weights (kilograms.) |
Aircraft.maxfuel |
Decimal | The maximum amount of fuel an aircraft can carry (liters.) |
Cargo.footprint |
Decimal | The floor space required for this cargo. (square meters.) |
FlightPlan.approved |
Boolean | Indicates whether the flight plan is approved for operation. |
FlightPlan.planWeight |
Decimal | The total amount of all aircraft and cargo weights for this flight plan (kilograms.) |
FlightPlan.flightRange |
Decimal | The distance the aircraft is expected to fly (kilometers.) |
FlightPlan.fuel |
Decimal | The amount of fuel loaded on the aircraft assigned to this flight plan (liters.) |