<SimMission.Calculator>
This is a container element that is used to hold any calculations required for the mission. This element is used as part of the XML file used to generate a mission. Full information on this file can be found here:
This element has the following attributes:
Attribute | Description | Type | Required |
---|---|---|---|
id |
The ID string that names the calculator | String | Yes |
InstanceId |
The unique ID for the calculator, as a GUID enclosed in {} . You can find more information on GUID's here: GUIDs |
String | Yes |
VRDependency |
When set to TRUE, this sets the calculator as being VR dependent. Default is FALSE. | Bool | No |
OnActivatedValue |
The initial value on activating the calculator. | Float/Int | No |
OnDeactivatedValue |
The final value on deactivating the calculator. | Float/Int | No |
It can contain the following sub-elements:
<Activated>
<StartValue>
<CalculatorFormula>
<CalculatorParameterList>
<OnActivationCalculatorActions>
<OnDeactivationCalculatorActions>
<CalculatorActions>
<StartValue>
This sets the start value for the calculations being done in the calculator element. This element is a sub-element of <SimMission.Calculator>
and has no attributes. The default value for this element is 0.
<CalculatorParameterList>
This is a container element has no attributes, and is used to define the parameters for use within the following elements:
The parameters it contains are defined using these sub-elements:
<FormulaParameter>
<ReferenceParameter>
<InputParameter>
<RunwayParameter>
<CabinServiceBehaviourParameter>
<CabinServiceStateParameter>
<CabinServiceGraphParameter>
<ApronContextParameter>
<InteractivePointParameter>
<ParkingParameter>
<HelipadParameter>
<FormulaParameter>
This is a sub-element of the <CalculatorParameterList>
element and is used to create parameters that will be used within the calculator. The element is a container for a <CalculatorFormula>
which what will perform the calculation and the result of it will be stored in the parameter, and it may also contain a <StartValue>
element. The formula parameter name can be used in other RPN formulas using the X:
variable identifier.
The element has the following attributes:
Attribute | Description | Type | Required |
---|---|---|---|
NameInFormula |
The ID string that names the parameter to be used in the RPN calculator formula. | String | Yes |
OnActivatedValue |
The value when the calculator using the parameter is activated. | Float/Int | No |
StartValue |
The initial value for the parameter. The default value is 0. | Float/Int | No |
<ReferenceParameter>
This is a sub-element of the <CalculatorParameterList>
element and is uses to create parameters that will be used within the calculator. The element has the following attributes:
Attribute | Description | Type | Required |
---|---|---|---|
id |
String | ||
UniqueRefId |
String | ||
TemplateInstanceId |
String | ||
NameInFormula |
The ID string that names the parameter to be used in the RPN calculator formula. | String | Yes |
ReferenceParameterName |
String |
<InputParameter>
This is a sub-element of the <CalculatorParameterList>
element and is uses to create a parameter based on the value of a specific input event ID. The element has the following attributes:
Attribute | Description | Type | Required |
---|---|---|---|
NameInFormula |
The ID string that names the parameter to be used in the RPN calculator formula. | String | Yes |
InputKey |
The input Event IDs to use as a parameter. | String | False |
<RunwayParameter>
This is a sub-element of the <CalculatorParameterList>
element and is only used for calculations within the main <SimMission.AirportCalculator>
element. This is used to retrieve a value from an airport runway, which is done by including the following sub elements:
The element has the following attributes:
Attribute | Description | Type | Required |
---|---|---|---|
NameInFormula |
The ID string that names the parameter to be used in the RPN calculator formula. | String | Yes |
<RunwayNumber>
This element is used to tell the simulation what runway number to get the required parameter value from. This is a sub-element of the <RunwayParameter>
element and has no attributes.
<RunwayDesignator>
This element is used to tell the simulation the designator for the runway that is being used to retrieve the parameter from. This is a sub-element of the <RunwayParameter>
element and has no attributes.
<RunwayPercent>
This element is used to tell the simulation what runway number to get the required parameter value from. This is a sub-element of the <RunwayParameter>
element and has no attributes.
<WantedParameter>
This element is used to define the kind of parameter that will be retrieved from the airport runway for use in calculation. Can be one of the following:
RelativeDistanceToRunwayPercent
RelativePlaneOrientation
RunwayOrientation
RunwaySize
OverRunwayArea
This is a sub-element of the <RunwayParameter>
element and has no attributes.
<CabinServiceBehaviourParameter>
This is a sub-element of the <CalculatorParameterList>
element. With this calculator you can get the number of object behaviours on the given tagged node, based on the behaviour states and/or behaviour tasks, and the position in the world (inside or outside of the cabin). The element can have the following sub-elements:
<ObjectReference />
: The object that has the navigation service<ParamBehaviourName>
: The name of the behaviour to look for<ParamBehaviourState>
: The state of the behaviour to look for (this will default to any state, if omitted)<ParamBehaviourTask>
: The task that the behaviour is currently doing (this will default to any task, if omitted)<ParamIsInCabin>
: Specify on which behaviour objects to check (in cabin, out cabin, both)<NodeTag>
: If this is included, then only those behaviour objects on the given node will be considered
The element has the following attributes:
Attribute | Description | Type | Required |
---|---|---|---|
NameInFormula |
The ID string that names the parameter to be used in the RPN calculator formula. | String | Yes |
<CabinServiceStateParameter>
This is a sub-element of the <CalculatorParameterList>
element and is only used for calculations where need to know if a particular navigation service is in the given state. You supply the name of the navigation service, and the state to check, and the parameter will be returned as 1 if the service is in the given state, or 0 otherwise. The element can have the following sub-elements:
<ObjectReference />
: The object that has the navigation service<CabinName>
: The name of the service to look for<CabinState>
: The state that you are checking to see if the service is in
The element has the following attributes:
Attribute | Description | Type | Required |
---|---|---|---|
NameInFormula |
The ID string that names the parameter to be used in the RPN calculator formula. | String | Yes |
<CabinName>
This is a sub-element of <CabinServiceStateParameter>
and <ParentCabinServiceStateParameter>
and is used to supply a navigation service name to the calculator.
<CabinState>
This is a sub-element of <CabinServiceStateParameter>
and <ParentCabinServiceStateParameter>
and is used to supply a navigation service state to the calculator.
<CabinServiceGraphParameter>
This is a sub-element of the <CalculatorParameterList>
element and is only used for calculations where you the number of tagged nodes from a specific navigation graph. The element can have the following sub-elements:
<ObjectReference />
: The object that has the navigation graph<NodeTag>
: The node to find the number of
The element has the following attributes:
Attribute | Description | Type | Required |
---|---|---|---|
NameInFormula |
The ID string that names the parameter to be used in the RPN calculator formula. | String | Yes |
<ParentCabinServiceBehaviourParameter>
This is a sub-element of the <CalculatorParameterList>
element. With this calculator you can get the number of navigation services that own the given behaviour object based on the behaviour states and/or behaviour tasks, and the position in the world (inside or outside of the cabin) of the object. The element can have the following sub-elements:
<ObjectReference />
: The behaviour object that references the navigation service<ParamBehaviourName>
: The name of the behaviour to look for<ParamBehaviourState>
: The state of the behaviour to look for (this will default to any state, if omitted)<ParamBehaviourTask>
: The task that the behaviour is currently doing (this will default to any task, if omitted)<ParamIsInCabin>
: Specify on which behaviour objects to check (in cabin, out cabin, both)<NodeTag>
: If this is included, then only those behaviour objects on the given node will be considered
The element has the following attributes:
Attribute | Description | Type | Required |
---|---|---|---|
NameInFormula |
The ID string that names the parameter to be used in the RPN calculator formula. | String | Yes |
<ParentCabinServiceStateParameter>
This is a sub-element of the <CalculatorParameterList>
element and is only used for calculations where need to know if a particular navigation service is in the given state by the given navigation object. You supply the name of the navigation service, and the state to check, and the parameter will be returned as 1 if the behaviour object is uses the navigation service and is in the given state, or 0 otherwise. The element can have the following sub-elements:
<ObjectReference />
: The behaviour object that uses the navigation service<CabinName>
: The name of the service to look for<CabinState>
: The state that you are checking to see if the service is in
The element has the following attributes:
Attribute | Description | Type | Required |
---|---|---|---|
NameInFormula |
The ID string that names the parameter to be used in the RPN calculator formula. | String | Yes |
<ApronContextParameter>
This is a sub-element of the <CalculatorParameterList>
element and is used in calculations where you require one of a few specific data points form an Apron Control context. The element can have the following sub-elements:
<ObjectReference />
: The reference to the Apron Control service that you want information from.<DesiredValue>
: The kind of value that you wish to be returned, which can only beHEADING
,XYZOFFSET
, orJETWAYATTACHED
. If set toJETWAYATTACHED
, the<ObjectReference />
should be of the type "ApronContextReference:Context
". If set toXYZOFFSET
, the<ApronControlMissionContext>
element is required with an<ObjectReference />
to an<ApronControl.ApronContextReference />
.<ApronControlMissionContext>
: An additional context that is required when you need to retrieve theXYZOFFSET
between the Apron Control context SImObject and an aircraft.<Units>
: The units to use (not required).
The element has the following attributes:
Attribute | Description | Type | Required |
---|---|---|---|
NameInFormula |
The ID string that names the parameter to be used in the RPN calculator formula. | String | Yes |
<ApronControlMissionContext>
This sub-element of is used to get an apron control context reference, as defined using the <ApronControl.ApronContextReference />
element in a service XML file. This element has no attributes, and requires an <ObjectReference />
with the id
set to "ApronContextReference:Context
".
<InteractivePointParameter>
This is a sub-element of the <CalculatorParameterList>
element and is used to get data from an interactive point to be used in a calculation. This container element requires the following sub-elements:
<ObjectReference />
: The SimObject that contains the interactive point to search for.<InteractivePointUser>
: The SimObject that is considered the "User" of the interactive point.<InteractivePoint>
: This is used to find the actual interactive point that is to be used.<DesiredValue>
: The kind of value that you wish to be returned.
The element has the following attributes:
Attribute | Description | Type | Required |
---|---|---|---|
NameInFormula |
The ID string that names the parameter to be used in the RPN calculator formula. | String | Yes |
<InteractivePointUser>
This element is a sub-element of <InteractivePointParameter>
and is used to retrieve the SimObject which is interacting with the interactive point. This element has no attributes and requires the following sub-element:
<InteractivePoint>
This element is a sub-element of <InteractivePointParameter>
and is used to find the interactive point to get the data from. This element has no attributes and requires the following sub-elements, which will be used to find the most appropriate matching interactive point:
<InteractivePointType>
This sub-element of <InteractivePoint>
has no attributes and sets the type of interactive point to get from the SimObject. The available values for this element are as follows:
INTERACTIVE_POINT_MAIN_EXIT
INTERACTIVE_POINT_CARGO_EXIT
INTERACTIVE_POINT_EMERGENCY_EXIT
INTERACTIVE_POINT_GAS_TRAP
INTERACTIVE_POINT_GROUND_POWER_UNIT
INTERACTIVE_POINT_AIR_START_UNIT
INTERACTIVE_POINT_TAILHOOK
INTERACTIVE_POINT_DROP_EXIT
INTERACTIVE_POINT_WINDOW
INTERACTIVE_POINTS_COUNT
INTERACTIVE_POINT_UNKNOWN
<InteractivePointSearchPreferences>
This sub-element of <InteractivePoint>
has no attributes and sets the serach parameters to be used to find the interactive point from the SimObject. The available values for this element are as follows:
DISTANCE_ONLY
X_SIDE_THEN_DISTANCE
Y_SIDE_THEN_DISTANCE
Z_SIDE_THEN_DISTANCE
<ParkingParameter>
This is a sub-element of the <CalculatorParameterList>
element and is used to retrieve a parameter value from an aircraft parking spot or a taxiway parking stand. This element can use the following sub-elements:
The element has the following attributes:
Attribute | Description | Type | Required |
---|---|---|---|
NameInFormula |
The ID string that names the parameter to be used in the RPN calculator formula. | String | Yes |
StartValue |
The initial value for the parameter. The default value is 0. | Float/Int | No |
OnActivatedValue |
The value when the calculator using the parameter is activated. | Float/Int | No |
OnDeactivatedValue |
The final value on deactivating the calculator. | Float/Int | No |
<ParkingProperty>
This sub-element of <ParkingParameter>
has no attributes and takes one of the following strings to define what kind of value the parameter returns:
Distance
RelativePosition
RelativeHeading
Heading
Radius
PassengerAccessType
LLA
<ParkingName>
This sub-element of <ParkingParameter>
has no attributes and takes The name of the parking spot to get the information from.
<ParkingNumber>
This sub-element of <ParkingParameter>
has no attributes and takes the number of the parking spot to get the information from.
<ParkingSuffix>
This sub-element of <ParkingParameter>
has no attributes and takes the suffix of the parking spot to get the information from.
<StandType>
This sub-element of <ParkingParameter>
has no attributes and takes one of the following strings to define what kind of value the parameter returns:
RAMP
BUS
CATERING_TRUCK
BAGGAGE_LOADER
BAGGAGE_CART
GPU
FUEL_TRUCK
PUSHBACK
<StandRole>
This sub-element of <ParkingParameter>
has no attributes and takes takes one of the following strings to define what kind of value the parameter returns:
PARKING
GATE
PLANE
<HelipadParameter>
This is a sub-element of the <CalculatorParameterList>
element and is used to retrieve a parameter value from a helicopter parking spot. This element can use the following sub-elements:
The element has the following attributes:
Attribute | Description | Type | Required |
---|---|---|---|
NameInFormula |
The ID string that names the parameter to be used in the RPN calculator formula. | String | Yes |
StartValue |
The initial value for the parameter. The default value is 0. | Float/Int | No |
OnActivatedValue |
The value when the calculator using the parameter is activated. | Float/Int | No |
OnDeactivatedValue |
The final value on deactivating the calculator. | Float/Int | No |
<HelipadProperty>
This is a sub-element of the <HelipadParameter>
element and has no attributes. It takes one of the following strings to define what kind of value the parameter returns:
RelativePosition
RelativeOrientation
Orientation
Size
OverHelipadArea
<CalculatorFormula>
This container element is used to create an RPN formula that will generally resolve to TRUE or FALSE, depending on the main element that is calling it. This element has no attributes and can be used within the following elements:
<CalculatorActions>
This element has no attributes and is used to contain one or more <CalculatorAction>
elements. It is a sub-element of the following:
<OnActivationCalculatorActions>
This element has no attributes and is used to contain one or more <CalculatorAction>
elements. It is a sub-element of the main <SimMission.Calculator>
, and is used to define the actions to be performed when the calculator is activated.
<OnDeactivationCalculatorActions>
This element has no attributes and is used to contain one or more <CalculatorAction>
elements. It is a sub-element of the main <SimMission.Calculator>
, and is used to define the actions to be performed when the calculator is deactivated.
<CalculatorAction>
This is a container element that is used to define a single calculator action, usually as part of a larger list of <CalculatorActions>
. It must contain at least a <CalculatorFormula>
sub-element and an <Actions>
sub-element (with at least one <ObjectReference />
). The formula within the calculator action will be performed and if it resolves as TRUE then the action(s) will be performed. This element has the following attributes:
Attribute | Description | Type | Required |
---|---|---|---|
NameInFormula |
The ID string that names the parameter to be used in the RPN calculator formula. | String | Yes |
StartValue |
The initial value for the parameter. The default value is 0. | Float/Int | No |
OnActivatedValue |
The value when the calculator using the parameter is activated. | Float/Int | No |
OnDeactivatedValue |
The final value on deactivating the calculator. | Float/Int | No |
The element can have any of the following additional sub-elements:
<Actions>
This container element is used to define one or more <ObjectReference />
elements as the action(s) to be performed when a <CalculatorFormula>
resolves as TRUE. It has no attributes, and is included as a sub-element of <CalculatorAction>
.
<DeactivateAfterExecution>
This sub-element of <CalculatorAction>
is used to set whether the action container should be deactivated (set to TRUE) after the calculation has been performed or not (set to FALSE). This element has no attributes, and the default value is FALSE.
<OnActionCompleteFormula>
This sub-element of <CalculatorAction>
is used to define the RPN formula that should be executed at the end of the queued up actions. The element has no attributes and no default value.
<DesiredValue>
This element has no attributes and is used to set what kind of value is desired from the calculator parameter action being performed. It is used by the following parameters:
The element can take any of the following strings to define the value returned:
LLA
: A vector representing the latitude, longitude and altitude of the SimObjectHEADING
: The heading of the SimObject.PBH
: The pitch, bank and heading values for the SimObjectXYZOFFSET
: A vector representing the distance between the SimObject that requested the context and the other SimObject being targetted (eg: an aircraft and a ramp).JETWAYATTACHED
: Whether the jetway of the parking stand of the current context is attached to the aircraft or not.
<Units>
This element has no attributes and is used to define the units of the value that is being retrieved. This element can be used by the following parent elements:
The element can take any of the following strings to define the value returned:
number
feet
g_force
knots
pounds
percent
boolean
degrees
radians
RPM
PSF
InHG
gallons
radianspersecond
feetpersecond
<WantedAxis>
This element has no attributes and is a sub-element of the following:
The element defines the axis of the parameter to be retrieved and can be any one of the following:
AxisX
AxisY
AxisZ
AxisPitch
AxisBank
AxisHeading