# SimMission Apron Control XML Properties The element listed here are used in [mission files](../../../mission-xml-files/flights-and-missions/) to trigger, control, and respond to, apron services.     ### <SimMission.ApronControlRequestContextAction> This element is used to create a new context and link it's navigation service with the mission. For example: ``` xml Requests a context to the apron control to handle the Firefighting service False departure Departure ``` This element requires the following sub-elements: 1. `` 2. `` 3. `` 4. ``   The element also has the following attribute: {{< table-wrapper >}} | Attribute | Description | Type | Required | |--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|:--------:| | `InstanceId` | The unique ID for reference to the element, as a [GUID](../../../mission-xml-files/mission-xml-properties/#) enclosed in {}, to be used elsewhere. You can find more information on GUID's here: [GUIDs](../../../../introduction/using-the-sdk/#GUIDs) | String | Yes | {{< /table-wrapper >}}   #### <AddToContext> This is a sub-element of and acts as a container element for one or more `` and/or `` elements. It has no attributes.     ##### <AddToContextTarget /> This self-closing element is a sub-element of `` and is used to give the instance ID to be used in the Apron Service XML `` element (type Mission). This element has the following attributes:   {{< table-wrapper >}} | Attribute | Description | Type | Required | |--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|:--------:| | `id` | This is an optional attribute that is not actually used in the simulation, but can serve as a description for the element. | String | No | | `InstanceId` | The unique ID for reference to the element, as a [GUID](../../../mission-xml-files/mission-xml-properties/#) enclosed in {}, to be used elsewhere. You can find more information on GUID's here: [GUIDs](../../../../introduction/using-the-sdk/#GUIDs) | String | Yes | {{< /table-wrapper >}}     ##### <AddToContextSource> This element is a sub-element of `` and is used to give an `` to the SimObject to register. This element requires the following sub-element:   It has the following attribute:   {{< table-wrapper >}} | Attribute | Description | Type | Required | |-----------|----------------------------------------------------------------------------------------------------------------------------|--------|:--------:| | `id` | This is an optional attribute that is not actually used in the simulation, but can serve as a description for the element. | String | No | {{< /table-wrapper >}}     ### <SimMission.ApronControlMessageTrigger> This element is used to trigger a message on an apron service context from a mission. For example: ``` xml Remove Water Pipe True False ``` This element requires the following sub-elements: 1. `` 2. `` 3. `` 4. `` 5. ``   The element also has the following attribute: {{< table-wrapper >}} | Attribute | Description | Type | Required | |--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|:--------:| | `InstanceId` | The unique ID for reference to the element, as a [GUID](../../../mission-xml-files/mission-xml-properties/#) enclosed in {}, to be used elsewhere. You can find more information on GUID's here: [GUIDs](../../../../introduction/using-the-sdk/#GUIDs) | String | Yes | {{< /table-wrapper >}}     ### <SimMission.ApronControlMessageAction> This element is used to send a message to or from an Apron Control context. For example: ``` xml Power generator registered icao PSUP ``` This element requires the following sub-elements: 1. `` 2. `` 3. `` 4. `` 5. ``   The element also has the following attribute: {{< table-wrapper >}} | Attribute | Description | Type | Required | |--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|:--------:| | `InstanceId` | The unique ID for reference to the element, as a [GUID](../../../mission-xml-files/mission-xml-properties/#) enclosed in {}, to be used elsewhere. You can find more information on GUID's here: [GUIDs](../../../../introduction/using-the-sdk/#GUIDs) | String | Yes | {{< /table-wrapper >}}     ### <SimMission2.ApronControlToggleJetway> This element is used to attach (activate) or detach (deactivate) the jetway of the given aircraft object. Note that the `id` attribute for the `` must be "`ApronContextReference:Aircraft`" and the instance GUID should be that of an assigned "Aircraft" ``. For example: ``` xml Toggle the jetway state for the parking in the current apron control context False ``` This element requires the following sub-elements: 1. `` 2. ``   The element also has the following attribute: {{< table-wrapper >}} | Attribute | Description | Type | Required | |--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|:--------:| | `InstanceId` | The unique ID for reference to the element, as a [GUID](../../../mission-xml-files/mission-xml-properties/#) enclosed in {}, to be used elsewhere. You can find more information on GUID's here: [GUIDs](../../../../introduction/using-the-sdk/#GUIDs) | String | Yes | {{< /table-wrapper >}}     ### <SimMission2.ToggleInteractivePointAction> This element is used to open or close an interactive point such as a door or a fuel cap. Note that the `id` attribute for the `` must be "`ApronContextReference:Aircraft`" and the instance GUID should be that of an assigned "Aircraft" ``. For example: ``` xml Open the door where the ramp attaches Closed INTERACTIVE_POINT_MAIN_EXIT X_SIDE_THEN_DISTANCE ``` This element requires the following sub-elements: 1. `` 2. `` 3. `` 4. ``   The element also has the following attribute: {{< table-wrapper >}} | Attribute | Description | Type | Required | |--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|:--------:| | `InstanceId` | The unique ID for reference to the element, as a [GUID](../../../mission-xml-files/mission-xml-properties/#) enclosed in {}, to be used elsewhere. You can find more information on GUID's here: [GUIDs](../../../../introduction/using-the-sdk/#GUIDs) | String | Yes | {{< /table-wrapper >}}     #### <DesiredState> This is a sub-element of and has no attributes. It is used to set the state for the interactive point, which can only be one of the following strings: 1. `Open` 2. `Closed`     ### <ApronControlServices> This a container element for one or more `` elements. It can be used by the following parent elements: 1. `` 2. `` 3. ``     #### <ApronControlService /> This is a self closing element that is a child of `` and is used to reference one of the Apron Control Services that has been registered in the [Apron Control XML](apron-control-xml-properties/) file. The element has one attribute:   {{< table-wrapper >}} | Attribute | Description | Type | Required | |-----------|----------------------------------------------------------------------------------------------------------------------------------------|--------|:--------:| | `Name` | The name of the Apron Service that is being referenced (should coincide with the `Name` attribute of a registered ``). | String | Yes | {{< /table-wrapper >}}     ### <ApronControlMessages> This element has no attributes and is a sub-element of the following (see these elements for examples of use): 1. `` 2. ``   This is a container element for one or more `` elements.     #### <ApronControlMessage> This element is a sub-element of `` and is used to define the message (and actions) that are to be triggered or sent by the mission to an Apron Control context. For example: ``` xml ``` This element may use the following sub-element if used in a ``: 1. ``   The element has one attribute:   {{< table-wrapper >}} | Attribute | Description | Type | Required | |-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|:--------:| | `id` | This is the name of the message and must match thaqt given for the the action or the trigger. In the case of a trigger, you can may add an `` section inside the message to put the actions you want to perform when the message is received. | String | Yes | {{< /table-wrapper >}}     ### <TargetSection> This element has no attributes and is a sub-element of the following: 1. `` 2. `` 3. ``   It is used to set the target section of the aircraft context FLT file to find the airport and the parking space in which the apron service request will be handled, so you can find the context of the Apron Control handling the service. If this element is not provided, the airport and the parking space will be computed automatically, based on where the calling object is and what parking space it reserved. The contents of this element can only be one of the following: - **departure** - **arrival** - **icao** - Used with `` - **simobject** - Used with ``   Note that if you set this to "icao" then you must also include the `` element. For an example of use, see ``. if you set this to "simobject" then you must also include the `` element.     ### <TargetICAO> This element has no attributes and is a sub-element of the following: 1. `` 2. `` 3. ``   This element should *only* be used when the accompanying `` element is set to "icao". It is used to give a string to identify the current airport by its {{< glossterm >}}icao_code{{< /glossterm >}}. Note that this will result in finding no parking space, so it can only be used for very specific use cases, eg: when you want to find an airport on a SimObject that is neither the departure nor the arrival object. For an example of use, see ``.     ### <TargetAirportOnSimobject> This element has no attributes and is a sub-element of the following: 1. `` 2. `` 3. ``   This element should *only* be used when the accompanying `` element is set to "simobject". It is used to give an object reference for the container SimObject that owns the airport (for example, when it's a heliport on a boat).