skip to main content
Corticon Studio: Rule Modeling Guide : Rules containing calculations and equations : Supported uses of calculation expressions
 

Try Corticon Now

Supported uses of calculation expressions

To make our examples more interesting and allow for a bit more complexity in our rules, we have extended the basic Tutorial Vocabulary (Cargo.ecore) to include a few more attributes. The extended Vocabulary is shown below:
Figure 132. Basic Tutorial Vocabulary Extended
The new attributes are described in the table below:
Table 7. Table: Table of New Attributes Added to the Basic Tutorial Vocabulary
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 FlightPlan has been approved or cleared for operation.
FlightPlan.planWeight
Decimal
The total amount of all Aircraft and Cargo weights for this FlightPlan. (kilograms)
FlightPlan.flightRange
Decimal
The distance the Aircraft is expected to fly. (kilometers)
FlightPlan.fuel
Decimal
The amount of fuel actually loaded on the Aircraft assigned to this FlightPlan. (liters)
* Calculation as a comparison in a precondition
* Calculation as an assignment in a noncondition
* Calculation as a comparison in a condition
* Calculation as an assignment in an action