hongbo-miao/hongbomiao.com

View on GitHub
aerospace/air-defense-system/air-defense-system.alp

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>
<!--
*************************************************
             AnyLogic Project File
*************************************************
-->
<AnyLogicWorkspace WorkspaceVersion="1.9" AnyLogicVersion="8.8.4.202307181708" AlpVersion="8.8.2">
<Model>
    <Id>1466586910698</Id>
    <Name><![CDATA[air-defense-system]]></Name>
    <EngineVersion>6</EngineVersion>
    <JavaPackageName><![CDATA[air_defense_system_4]]></JavaPackageName>
    <ModelTimeUnit><![CDATA[Second]]></ModelTimeUnit>
    <ActiveObjectClasses>
        <!--   =========   Active Object Class   ========  -->
        <ActiveObjectClass>
            <Id>1466586910703</Id>
            <Name><![CDATA[Main]]></Name>
            <Generic>false</Generic>
            <GenericParameter>
                <Id>1466586910702</Id>
                <Name><![CDATA[1466586910702]]></Name>
                <GenericParameterValue Class="CodeValue">
                    <Code><![CDATA[T extends Agent]]></Code>
                </GenericParameterValue>
                <GenericParameterLabel><![CDATA[Generic parameter:]]></GenericParameterLabel>
            </GenericParameter>
            <FlowChartsUsage>ENTITY</FlowChartsUsage>
            <SamplesToKeep>100</SamplesToKeep>
            <LimitNumberOfArrayElements>false</LimitNumberOfArrayElements>
            <ElementsLimitValue>100</ElementsLimitValue>
            <MakeDefaultViewArea>true</MakeDefaultViewArea>
            <SceneGridColor/>
            <SceneBackgroundColor/>
            <SceneSkybox>null</SceneSkybox>
            <AgentProperties>
                <EnvironmentDefinesInitialLocation>true</EnvironmentDefinesInitialLocation>
                <RotateAnimationTowardsMovement>true</RotateAnimationTowardsMovement>
                <RotateAnimationVertically>false</RotateAnimationVertically>
                <VelocityCode Class="CodeUnitValue">
                    <Code><![CDATA[10]]></Code>
                    <Unit Class="SpeedUnits"><![CDATA[MPS]]></Unit>
                </VelocityCode>
                <PhysicalLength Class="CodeUnitValue">
                    <Code><![CDATA[1]]></Code>
                    <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                </PhysicalLength>
                <PhysicalWidth Class="CodeUnitValue">
                    <Code><![CDATA[1]]></Code>
                    <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                </PhysicalWidth>
                <PhysicalHeight Class="CodeUnitValue">
                    <Code><![CDATA[1]]></Code>
                    <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                </PhysicalHeight>
            </AgentProperties>
            <EnvironmentProperties>
                    <EnableSteps>true</EnableSteps>
                    <StepDurationCode Class="CodeUnitValue">
                        <Code><![CDATA[1]]></Code>
                        <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                    </StepDurationCode>
                    <SpaceType>CONTINUOUS</SpaceType>
                    <WidthCode><![CDATA[500]]></WidthCode>
                    <HeightCode><![CDATA[500]]></HeightCode>
                    <ZHeightCode><![CDATA[0]]></ZHeightCode>
                    <ColumnsCountCode><![CDATA[100]]></ColumnsCountCode>
                    <RowsCountCode><![CDATA[100]]></RowsCountCode>
                    <NeigborhoodType>MOORE</NeigborhoodType>
                    <LayoutType>USER_DEF</LayoutType>
                    <LayoutTypeApplyOnStartup>true</LayoutTypeApplyOnStartup>
                    <NetworkType>USER_DEF</NetworkType>
                    <NetworkTypeApplyOnStartup>true</NetworkTypeApplyOnStartup>
                    <ConnectionsPerAgentCode><![CDATA[2]]></ConnectionsPerAgentCode>
                    <ConnectionsRangeCode><![CDATA[50]]></ConnectionsRangeCode>
                    <NeighborLinkFractionCode><![CDATA[0.95]]></NeighborLinkFractionCode>
                    <MCode><![CDATA[10]]></MCode>
            </EnvironmentProperties>
            <DatasetsCreationProperties>
                <AutoCreate>true</AutoCreate>
                    <OccurrenceAtTime>true</OccurrenceAtTime>
                    <OccurrenceDate>1466668800000</OccurrenceDate>
                    <OccurrenceTime Class="CodeUnitValue">
                        <Code><![CDATA[0]]></Code>
                        <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                    </OccurrenceTime>
                    <RecurrenceCode Class="CodeUnitValue">
                        <Code><![CDATA[1]]></Code>
                        <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                    </RecurrenceCode>
            </DatasetsCreationProperties>
            <ScaleRuler>
                <Id>1466586910700</Id>
                <Name><![CDATA[scale]]></Name>
                <X>0</X><Y>-150</Y>
                <PublicFlag>false</PublicFlag>
                <PresentationFlag>false</PresentationFlag>
                <ShowLabel>false</ShowLabel>
                <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                <Length>100</Length>
                <Rotation>0</Rotation>
                <ScaleType>BASED_ON_LENGTH</ScaleType>
                <ModelLength>100</ModelLength>
                <LengthUnits>METER</LengthUnits>
                <Scale>10</Scale>
                <InheritedFromParentAgentType>true</InheritedFromParentAgentType>
            </ScaleRuler>
            <CurrentLevel>1587636074192</CurrentLevel>
            <ConnectionsId>1466586910699</ConnectionsId>
            <Events>
                <Event>
                    <Id>1467194944094</Id>
                    <Name><![CDATA[startMission]]></Name>
                    <X>-150</X><Y>110</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <Properties TriggerType="timeout" Mode="cyclic">
                        <Timeout Class="CodeUnitValue">
                            <Code><![CDATA[1]]></Code>
                            <Unit Class="TimeUnits"><![CDATA[MINUTE]]></Unit>
                        </Timeout>
                        <Rate Class="CodeUnitValue">
                            <Code><![CDATA[1]]></Code>
                            <Unit Class="RateUnits"><![CDATA[PER_MINUTE]]></Unit>
                        </Rate>
                        <OccurrenceAtTime>true</OccurrenceAtTime>
                        <OccurrenceDate>1467273600000</OccurrenceDate>
                        <OccurrenceTime Class="CodeUnitValue">
                            <Code><![CDATA[0]]></Code>
                            <Unit Class="TimeUnits"><![CDATA[MINUTE]]></Unit>
                        </OccurrenceTime>
                        <RecurrenceCode Class="CodeUnitValue">
                            <Code><![CDATA[uniform(5, 12)]]></Code>
                            <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                        </RecurrenceCode>
                        <Condition><![CDATA[false]]></Condition>
                    </Properties>
                    <Action><![CDATA[boolean chosen = false;

do
{
    //find undestroyed building
    Building bldg = randomWhere(buildings, b -> b.destroyed==false);

    boolean    assigned = false;

    //look up if bomber is handling it already
    for (Bomber bomber : bombers)
    {
        if (bomber.target == bldg)
        {
            assigned = true;
            break;
        }
    }

    //if not - send a bomber
    if(! assigned)
    {
        add_bombers(bldg);
        chosen = true;
    }
}
while (!chosen);]]></Action>
                </Event>
            </Events>
            <AgentLinks>
                <AgentLink>
                    <Id>1466586910699</Id>
                    <Name><![CDATA[connections]]></Name>
                    <X>50</X><Y>-50</Y>
                    <Label><X>15</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <HandleReceiveInConnections>false</HandleReceiveInConnections>
                    <AgentLinkType>COLLECTION_OF_LINKS</AgentLinkType>
                    <AgentLinkBidirectional>true</AgentLinkBidirectional>
                    <MessageType><![CDATA[Object]]></MessageType>
                    <LineStyle>SOLID</LineStyle>
                    <LineWidth>1</LineWidth>
                    <LineColor>-16777216</LineColor>
                    <LineZOrder>UNDER_AGENTS</LineZOrder>
                    <LineArrow>NONE</LineArrow>
                    <LineArrowPosition>END</LineArrowPosition>
                </AgentLink>
            </AgentLinks>

            <EmbeddedObjects>
                <EmbeddedObject>
                    <Id>1619614274575</Id>
                    <Name><![CDATA[buildings]]></Name>
                    <X>-150</X><Y>50</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <PresentationId>1466599081994</PresentationId>
                    <ActiveObjectClass>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[Building]]></ClassName>
                    </ActiveObjectClass>
                    <GenericParameterSubstitute>
                        <GenericParameterSubstituteReference>
                            <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                            <ClassName><![CDATA[Building]]></ClassName>
                            <ItemName><![CDATA[1466599081902]]></ItemName>
                        </GenericParameterSubstituteReference>
                    </GenericParameterSubstitute>
                    <Parameters>
                    </Parameters>
                    <ReplicationFlag>true</ReplicationFlag>
                    <Replication Class="CodeValue">
                        <Code><![CDATA[5]]></Code>
                    </Replication>
                    <CollectionType>ARRAY_LIST_BASED</CollectionType>
                    <InEnvironment>true</InEnvironment>
                    <InitialLocationType>NODE</InitialLocationType>
                    <XCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </XCode>
                    <YCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </YCode>
                    <ZCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </ZCode>
                    <ColumnCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </ColumnCode>
                    <RowCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </RowCode>
                    <LatitudeCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </LatitudeCode>
                    <LongitudeCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </LongitudeCode>
                    <NodeCode><![CDATA[protectedArea]]></NodeCode>
                    <LocationNameCode Class="CodeValue">
                        <Code><![CDATA[""]]></Code>
                    </LocationNameCode>
                    <InitializationType>SPECIFIED_NUMBER</InitializationType>
                    <InitializationDatabaseTableQuery>
                        <TableReference>
                        </TableReference>
                    </InitializationDatabaseTableQuery>
                    <InitializationDatabaseType>ONE_AGENT_PER_DATABASE_RECORD</InitializationDatabaseType>
                    <QuantityColumn>
                    </QuantityColumn>
                </EmbeddedObject>
                <EmbeddedObject>
                    <Id>1619614274578</Id>
                    <Name><![CDATA[bombers]]></Name>
                    <X>-150</X><Y>80</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <PresentationId>1467194763629</PresentationId>
                    <ActiveObjectClass>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[Bomber]]></ClassName>
                    </ActiveObjectClass>
                    <GenericParameterSubstitute>
                        <GenericParameterSubstituteReference>
                            <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                            <ClassName><![CDATA[Bomber]]></ClassName>
                            <ItemName><![CDATA[1467194763602]]></ItemName>
                        </GenericParameterSubstituteReference>
                    </GenericParameterSubstitute>
                    <Parameters>
                        <Parameter>
                            <Name><![CDATA[target]]></Name>
                        </Parameter>
                    </Parameters>
                    <ReplicationFlag>true</ReplicationFlag>
                    <Replication Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </Replication>
                    <CollectionType>ARRAY_LIST_BASED</CollectionType>
                    <InEnvironment>true</InEnvironment>
                    <InitialSpeedCode Class="CodeUnitValue">
                        <Code><![CDATA[600]]></Code>
                        <Unit Class="SpeedUnits"><![CDATA[KPH]]></Unit>
                    </InitialSpeedCode>
                    <InitialLocationType>XYZ</InitialLocationType>
                    <XCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </XCode>
                    <YCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </YCode>
                    <ZCode Class="CodeValue">
                        <Code><![CDATA[100]]></Code>
                    </ZCode>
                    <ColumnCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </ColumnCode>
                    <RowCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </RowCode>
                    <LatitudeCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </LatitudeCode>
                    <LongitudeCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </LongitudeCode>
                    <LocationNameCode Class="CodeValue">
                        <Code><![CDATA[""]]></Code>
                    </LocationNameCode>
                    <InitializationType>SPECIFIED_NUMBER</InitializationType>
                    <InitializationDatabaseTableQuery>
                        <TableReference>
                        </TableReference>
                    </InitializationDatabaseTableQuery>
                    <InitializationDatabaseType>ONE_AGENT_PER_DATABASE_RECORD</InitializationDatabaseType>
                    <QuantityColumn>
                    </QuantityColumn>
                </EmbeddedObject>
                <EmbeddedObject>
                    <Id>1619614274581</Id>
                    <Name><![CDATA[bombs]]></Name>
                    <X>-250</X><Y>80</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <PresentationId>1467381019279</PresentationId>
                    <ActiveObjectClass>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[Bomb]]></ClassName>
                    </ActiveObjectClass>
                    <GenericParameterSubstitute>
                        <GenericParameterSubstituteReference>
                            <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                            <ClassName><![CDATA[Bomb]]></ClassName>
                            <ItemName><![CDATA[1467381019227]]></ItemName>
                        </GenericParameterSubstituteReference>
                    </GenericParameterSubstitute>
                    <Parameters>
                        <Parameter>
                            <Name><![CDATA[target]]></Name>
                        </Parameter>
                        <Parameter>
                            <Name><![CDATA[bomber]]></Name>
                        </Parameter>
                    </Parameters>
                    <ReplicationFlag>true</ReplicationFlag>
                    <Replication Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </Replication>
                    <CollectionType>ARRAY_LIST_BASED</CollectionType>
                    <InEnvironment>true</InEnvironment>
                    <InitialSpeedCode Class="CodeUnitValue">
                        <Code><![CDATA[400]]></Code>
                        <Unit Class="SpeedUnits"><![CDATA[KPH]]></Unit>
                    </InitialSpeedCode>
                    <InitialLocationType>AT_ANIMATION_POSITION</InitialLocationType>
                    <XCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </XCode>
                    <YCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </YCode>
                    <ZCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </ZCode>
                    <ColumnCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </ColumnCode>
                    <RowCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </RowCode>
                    <LatitudeCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </LatitudeCode>
                    <LongitudeCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </LongitudeCode>
                    <LocationNameCode Class="CodeValue">
                        <Code><![CDATA[""]]></Code>
                    </LocationNameCode>
                    <InitializationType>SPECIFIED_NUMBER</InitializationType>
                    <InitializationDatabaseTableQuery>
                        <TableReference>
                        </TableReference>
                    </InitializationDatabaseTableQuery>
                    <InitializationDatabaseType>ONE_AGENT_PER_DATABASE_RECORD</InitializationDatabaseType>
                    <QuantityColumn>
                    </QuantityColumn>
                </EmbeddedObject>
                <EmbeddedObject>
                    <Id>1619614274584</Id>
                    <Name><![CDATA[radar1]]></Name>
                    <X>-150</X><Y>140</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <PresentationId>1468836585184</PresentationId>
                    <ActiveObjectClass>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[Radar]]></ClassName>
                    </ActiveObjectClass>
                    <GenericParameterSubstitute>
                        <GenericParameterSubstituteReference>
                            <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                            <ClassName><![CDATA[Radar]]></ClassName>
                            <ItemName><![CDATA[1468836585132]]></ItemName>
                        </GenericParameterSubstituteReference>
                    </GenericParameterSubstitute>
                    <Parameters>
                        <Parameter>
                            <Name><![CDATA[range]]></Name>
                            <Value Class="CodeValue">
                                <Code><![CDATA[200]]></Code>
                            </Value>
                        </Parameter>
                    </Parameters>
                    <ReplicationFlag>false</ReplicationFlag>
                    <Replication Class="CodeValue">
                        <Code><![CDATA[100]]></Code>
                    </Replication>
                    <CollectionType>ARRAY_LIST_BASED</CollectionType>
                    <InEnvironment>true</InEnvironment>
                    <InitialSpeedCode Class="CodeUnitValue">
                        <Code><![CDATA[10]]></Code>
                        <Unit Class="SpeedUnits"><![CDATA[MPS]]></Unit>
                    </InitialSpeedCode>
                    <InitialLocationType>AT_ANIMATION_POSITION</InitialLocationType>
                    <XCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </XCode>
                    <YCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </YCode>
                    <ZCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </ZCode>
                    <ColumnCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </ColumnCode>
                    <RowCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </RowCode>
                    <LatitudeCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </LatitudeCode>
                    <LongitudeCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </LongitudeCode>
                    <LocationNameCode Class="CodeValue">
                        <Code><![CDATA[""]]></Code>
                    </LocationNameCode>
                    <InitializationType>SPECIFIED_NUMBER</InitializationType>
                    <InitializationDatabaseTableQuery>
                        <TableReference>
                        </TableReference>
                    </InitializationDatabaseTableQuery>
                    <InitializationDatabaseType>ONE_AGENT_PER_DATABASE_RECORD</InitializationDatabaseType>
                    <QuantityColumn>
                    </QuantityColumn>
                </EmbeddedObject>
                <EmbeddedObject>
                    <Id>1619614274587</Id>
                    <Name><![CDATA[radar2]]></Name>
                    <X>-150</X><Y>170</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <PresentationId>1468836705525</PresentationId>
                    <ActiveObjectClass>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[Radar]]></ClassName>
                    </ActiveObjectClass>
                    <GenericParameterSubstitute>
                        <GenericParameterSubstituteReference>
                            <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                            <ClassName><![CDATA[Radar]]></ClassName>
                            <ItemName><![CDATA[1468836585132]]></ItemName>
                        </GenericParameterSubstituteReference>
                    </GenericParameterSubstitute>
                    <Parameters>
                        <Parameter>
                            <Name><![CDATA[range]]></Name>
                            <Value Class="CodeValue">
                                <Code><![CDATA[200]]></Code>
                            </Value>
                        </Parameter>
                    </Parameters>
                    <ReplicationFlag>false</ReplicationFlag>
                    <Replication Class="CodeValue">
                        <Code><![CDATA[100]]></Code>
                    </Replication>
                    <CollectionType>ARRAY_LIST_BASED</CollectionType>
                    <InEnvironment>true</InEnvironment>
                    <InitialSpeedCode Class="CodeUnitValue">
                        <Code><![CDATA[10]]></Code>
                        <Unit Class="SpeedUnits"><![CDATA[MPS]]></Unit>
                    </InitialSpeedCode>
                    <InitialLocationType>AT_ANIMATION_POSITION</InitialLocationType>
                    <XCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </XCode>
                    <YCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </YCode>
                    <ZCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </ZCode>
                    <ColumnCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </ColumnCode>
                    <RowCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </RowCode>
                    <LatitudeCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </LatitudeCode>
                    <LongitudeCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </LongitudeCode>
                    <LocationNameCode Class="CodeValue">
                        <Code><![CDATA[""]]></Code>
                    </LocationNameCode>
                    <InitializationType>SPECIFIED_NUMBER</InitializationType>
                    <InitializationDatabaseTableQuery>
                        <TableReference>
                        </TableReference>
                    </InitializationDatabaseTableQuery>
                    <InitializationDatabaseType>ONE_AGENT_PER_DATABASE_RECORD</InitializationDatabaseType>
                    <QuantityColumn>
                    </QuantityColumn>
                </EmbeddedObject>
                <EmbeddedObject>
                    <Id>1619614274590</Id>
                    <Name><![CDATA[missiles]]></Name>
                    <X>-250</X><Y>150</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <PresentationId>1468837390432</PresentationId>
                    <ActiveObjectClass>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[Missile]]></ClassName>
                    </ActiveObjectClass>
                    <GenericParameterSubstitute>
                        <GenericParameterSubstituteReference>
                            <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                            <ClassName><![CDATA[Missile]]></ClassName>
                            <ItemName><![CDATA[1468837390396]]></ItemName>
                        </GenericParameterSubstituteReference>
                    </GenericParameterSubstitute>
                    <Parameters>
                        <Parameter>
                            <Name><![CDATA[radar]]></Name>
                        </Parameter>
                        <Parameter>
                            <Name><![CDATA[target]]></Name>
                        </Parameter>
                    </Parameters>
                    <ReplicationFlag>true</ReplicationFlag>
                    <Replication Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </Replication>
                    <CollectionType>ARRAY_LIST_BASED</CollectionType>
                    <InEnvironment>true</InEnvironment>
                    <InitialSpeedCode Class="CodeUnitValue">
                        <Code><![CDATA[900]]></Code>
                        <Unit Class="SpeedUnits"><![CDATA[KPH]]></Unit>
                    </InitialSpeedCode>
                    <InitialLocationType>AT_ANIMATION_POSITION</InitialLocationType>
                    <XCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </XCode>
                    <YCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </YCode>
                    <ZCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </ZCode>
                    <ColumnCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </ColumnCode>
                    <RowCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </RowCode>
                    <LatitudeCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </LatitudeCode>
                    <LongitudeCode Class="CodeValue">
                        <Code><![CDATA[0]]></Code>
                    </LongitudeCode>
                    <LocationNameCode Class="CodeValue">
                        <Code><![CDATA[""]]></Code>
                    </LocationNameCode>
                    <InitializationType>SPECIFIED_NUMBER</InitializationType>
                    <InitializationDatabaseTableQuery>
                        <TableReference>
                        </TableReference>
                    </InitializationDatabaseTableQuery>
                    <InitializationDatabaseType>ONE_AGENT_PER_DATABASE_RECORD</InitializationDatabaseType>
                    <QuantityColumn>
                    </QuantityColumn>
                </EmbeddedObject>
            </EmbeddedObjects>

            <Presentation>
                <Level>
                    <Id>1587636074192</Id>
                    <Name><![CDATA[level]]></Name>
                    <X>0</X><Y>0</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <Z>0</Z>
                    <LevelVisibility>ALWAYS_SHOW</LevelVisibility>

            <Presentation>
                <Control Type="Window3D">
                    <Id>1466606051348</Id>
                    <Name><![CDATA[window3d]]></Name>
                    <X>0</X><Y>0</Y>
                    <Width>1000</Width>
                    <Height>600</Height>
                    <MakeDefaultViewArea>true</MakeDefaultViewArea>
                    <Label><X>0</X><Y>-10</Y></Label>
                    <ShowLabel>false</ShowLabel>
                    <FollowCamera>false</FollowCamera>
                    <NavigationType>full</NavigationType>
                    <FarClippingDistance>2000</FarClippingDistance>
                </Control>
                <Rectangle>
                    <Id>1466670819779</Id>
                    <Name><![CDATA[rectangle]]></Name>
                    <X>0</X><Y>0</Y>
                    <Label><X>10</X><Y>10</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <Lock>true</Lock>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <EmbeddedIcon>false</EmbeddedIcon>
                    <Z>-1</Z>
                    <ZHeight>1</ZHeight>
                    <LineWidth>1</LineWidth>
                    <LineColor/>
                    <LineMaterial>null</LineMaterial>
                    <LineStyle>SOLID</LineStyle>
                    <Width>1000</Width>
                    <Height>600</Height>
                    <Rotation>0.0</Rotation>
                    <FillColor>-1</FillColor>
                    <FillMaterial>earth</FillMaterial>
                </Rectangle>
                <EmbeddedObjectPresentation>
                    <Id>1466599081994</Id>
                    <Name><![CDATA[buildings_presentation]]></Name>
                    <X>580</X><Y>300</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <EmbeddedIcon>false</EmbeddedIcon>
                    <Z>0</Z>
                    <Rotation>0.0</Rotation>
                    <DrawingMode>AGENT_CURRENT_POSITION</DrawingMode>
                    <ScaleType>AUTOMATICALLY_CALCULATED</ScaleType>
                    <GISScaleForRealEmbeddedObjectPresentationSize>1000</GISScaleForRealEmbeddedObjectPresentationSize>
                    <GISScaleForFixedEmbeddedObjectPresentationSize>1000000000</GISScaleForFixedEmbeddedObjectPresentationSize>
                    <Latitude>0.0</Latitude>
                    <Longitude>0.0</Longitude>
                </EmbeddedObjectPresentation>
                <Camera3D>
                    <Id>1466757631575</Id>
                    <Name><![CDATA[camera]]></Name>
                    <X>660</X><Y>530</Y><Z>350</Z>
                    <Label><X>0</X><Y>-10</Y></Label>
                    <ShowLabel>false</ShowLabel>
                    <RotationX>14.63</RotationX>
                    <RotationZ>-107.79</RotationZ>
                </Camera3D>
                <PolygonNode>
                    <Id>1467020648382</Id>
                    <Name><![CDATA[protectedArea]]></Name>
                    <X>510</X><Y>500</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <Z>0</Z>
                    <EmbeddedObject>
                        <ActiveObjectClass>
                            <PackageName><![CDATA[com.anylogic.libraries.modules.markup_descriptors]]></PackageName>
                            <ClassName><![CDATA[AreaNodeDescriptor]]></ClassName>
                        </ActiveObjectClass>
                        <GenericParameterSubstitute>
                            <GenericParameterSubstituteReference>
                                <PackageName><![CDATA[com.anylogic.libraries.modules.markup_descriptors]]></PackageName>
                                <ClassName><![CDATA[AreaNodeDescriptor]]></ClassName>
                                <ItemName><![CDATA[1574694148121]]></ItemName>
                            </GenericParameterSubstituteReference>
                        </GenericParameterSubstitute>
                        <Parameters>
                            <Parameter>
                                <Name><![CDATA[appliedClass]]></Name>
                            </Parameter>
                            <Parameter>
                                <Name><![CDATA[speedRestricted]]></Name>
                            </Parameter>
                            <Parameter>
                                <Name><![CDATA[maxSpeed]]></Name>
                            </Parameter>
                            <Parameter>
                                <Name><![CDATA[accessRestricted]]></Name>
                            </Parameter>
                            <Parameter>
                                <Name><![CDATA[accessRestrictionType]]></Name>
                            </Parameter>
                            <Parameter>
                                <Name><![CDATA[accessRestrictionCondition]]></Name>
                            </Parameter>
                            <Parameter>
                                <Name><![CDATA[capacity]]></Name>
                            </Parameter>
                            <Parameter>
                                <Name><![CDATA[throughput]]></Name>
                            </Parameter>
                            <Parameter>
                                <Name><![CDATA[schedule]]></Name>
                            </Parameter>
                            <Parameter>
                                <Name><![CDATA[avoidedIfClosed]]></Name>
                            </Parameter>
                            <Parameter>
                                <Name><![CDATA[onEnter]]></Name>
                            </Parameter>
                            <Parameter>
                                <Name><![CDATA[onEnterDenied]]></Name>
                            </Parameter>
                            <Parameter>
                                <Name><![CDATA[onExit]]></Name>
                            </Parameter>
                            <Parameter>
                                <Name><![CDATA[onOpen]]></Name>
                            </Parameter>
                            <Parameter>
                                <Name><![CDATA[onClose]]></Name>
                            </Parameter>
                        </Parameters>
                        <ReplicationFlag>false</ReplicationFlag>
                        <Replication Class="CodeValue">
                            <Code><![CDATA[100]]></Code>
                        </Replication>
                        <CollectionType>ARRAY_LIST_BASED</CollectionType>
                        <InitialLocationType>AT_ANIMATION_POSITION</InitialLocationType>
                        <XCode Class="CodeValue">
                            <Code><![CDATA[0]]></Code>
                        </XCode>
                        <YCode Class="CodeValue">
                            <Code><![CDATA[0]]></Code>
                        </YCode>
                        <ZCode Class="CodeValue">
                            <Code><![CDATA[0]]></Code>
                        </ZCode>
                        <ColumnCode Class="CodeValue">
                            <Code><![CDATA[0]]></Code>
                        </ColumnCode>
                        <RowCode Class="CodeValue">
                            <Code><![CDATA[0]]></Code>
                        </RowCode>
                        <LatitudeCode Class="CodeValue">
                            <Code><![CDATA[0]]></Code>
                        </LatitudeCode>
                        <LongitudeCode Class="CodeValue">
                            <Code><![CDATA[0]]></Code>
                        </LongitudeCode>
                        <LocationNameCode Class="CodeValue">
                            <Code><![CDATA[""]]></Code>
                        </LocationNameCode>
                        <InitializationType>SPECIFIED_NUMBER</InitializationType>
                        <InitializationDatabaseTableQuery>
                            <TableReference>
                            </TableReference>
                        </InitializationDatabaseTableQuery>
                        <InitializationDatabaseType>ONE_AGENT_PER_DATABASE_RECORD</InitializationDatabaseType>
                        <QuantityColumn>
                        </QuantityColumn>
                    </EmbeddedObject>
                    <LineColor>-14774017</LineColor>
                    <FillColor/>
                    <LineWidth>2</LineWidth>
                    <LineMaterial>null</LineMaterial>
                    <FillMaterial>null</FillMaterial>
                    <LineStyle>DASHED</LineStyle>
                    <AttractorsLayout>random</AttractorsLayout>
                    <Sloped>false</Sloped>
                    <Slope>
                        <Id>1619614274444</Id>
                        <Name><![CDATA[protectedArea]]></Name>
                        <X>0</X><Y>10</Y>
                        <PublicFlag>false</PublicFlag>
                        <PresentationFlag>true</PresentationFlag>
                        <ShowLabel>true</ShowLabel>
                        <Dx>20</Dx>
                        <Dy>0</Dy>
                        <Dz>0</Dz>
                        <AngleX>30</AngleX>
                        <AngleZ>0</AngleZ>
                        <SlopeType>angle</SlopeType>
                    </Slope>

                    <Points>
                        <Point><X>0</X><Y>0</Y></Point>
                        <Point><X>160</X><Y>0</Y></Point>
                        <Point><X>310</X><Y>-90</Y></Point>
                        <Point><X>360</X><Y>-240</Y></Point>
                        <Point><X>280</X><Y>-370</Y></Point>
                        <Point><X>90</X><Y>-390</Y></Point>
                        <Point><X>-70</X><Y>-320</Y></Point>
                        <Point><X>-230</X><Y>-180</Y></Point>
                        <Point><X>-150</X><Y>70</Y></Point>
                    </Points>
                </PolygonNode>
                <EmbeddedObjectPresentation>
                    <Id>1467194763629</Id>
                    <Name><![CDATA[bombers_presentation]]></Name>
                    <X>-50</X><Y>80</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <EmbeddedIcon>false</EmbeddedIcon>
                    <Z>0</Z>
                    <Rotation>0.0</Rotation>
                    <DrawingMode>AGENT_CURRENT_POSITION</DrawingMode>
                    <ScaleType>AUTOMATICALLY_CALCULATED</ScaleType>
                    <GISScaleForRealEmbeddedObjectPresentationSize>1000</GISScaleForRealEmbeddedObjectPresentationSize>
                    <GISScaleForFixedEmbeddedObjectPresentationSize>1000000000</GISScaleForFixedEmbeddedObjectPresentationSize>
                    <Latitude>0.0</Latitude>
                    <Longitude>0.0</Longitude>
                </EmbeddedObjectPresentation>
                <Network>
                    <Id>1467301832414</Id>
                    <Name><![CDATA[network]]></Name>
                    <X>280</X><Y>10</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>

            <Presentation>
                <PointNode>
                    <Id>1467203923103</Id>
                    <Name><![CDATA[exitNode]]></Name>
                    <X>280</X><Y>10</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>false</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <Z>340</Z>
                    <FakeNode>false</FakeNode>
                    <Lock>false</Lock>
                    <Color>-14774017</Color>
                    <Radius>1</Radius>
                    <SpeedLimit>false</SpeedLimit>
                    <SpeedLimitValue Class="UnitValue">
                        <Value Class="Double">10</Value>
                        <Unit Class="SpeedUnits"><![CDATA[MPS]]></Unit>
                    </SpeedLimitValue>
                </PointNode>
                <Path TargetId="1467203923103">
                    <Id>1467203414896</Id>
                    <Name><![CDATA[escapeRoute]]></Name>
                    <X>700</X><Y>520</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <Z>100</Z>
                    <LineColor>-14774017</LineColor>
                    <LineMaterial>null</LineMaterial>
                    <LineWidth>2</LineWidth>
                    <PathType>dashedLine</PathType>

                    <Width Class="UnitValue">
                        <Value Class="Double">1</Value>
                        <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                    </Width>
                    <Points>
                        <Point><X>0</X><Y>0</Y><Z>0</Z></Point>
                        <Point><X>-24.659</X><Y>-4.11</Y><Z>0</Z></Point>
                        <Point><X>120</X><Y>20</Y><Z>0</Z></Point>
                        <Point><X>270</X><Y>-140</Y><Z>25</Z></Point>
                        <Point><X>260</X><Y>-120</Y><Z>0</Z></Point>
                        <Point><X>284.142</X><Y>-168.283</Y><Z>0</Z></Point>
                        <Point><X>160</X><Y>-460</Y><Z>100</Z></Point>
                        <Point><X>183.534</X><Y>-444.311</Y><Z>0</Z></Point>
                        <Point><X>130</X><Y>-480</Y><Z>0</Z></Point>
                        <Point><X>-120</X><Y>-490</Y><Z>175</Z></Point>
                        <Point><X>20</X><Y>-490</Y><Z>0</Z></Point>
                        <Point><X>-145</X><Y>-490</Y><Z>0</Z></Point>
                        <Point><X>-420</X><Y>-510</Y><Z>240</Z></Point>
                        <Point><X>-395.193</X><Y>-506.899</Y><Z>0</Z></Point>
                        <Point><X>-240</X><Y>-485</Y><Z>0</Z></Point>
                    </Points>
                    <Bidirectional>true</Bidirectional>
                    <SpeedLimit>false</SpeedLimit>
                    <SpeedLimitValue Class="CodeUnitValue">
                        <Code><![CDATA[10.0]]></Code>
                        <Unit Class="SpeedUnits"><![CDATA[MPS]]></Unit>
                    </SpeedLimitValue>
                    <LimitNumberOfTransporters>false</LimitNumberOfTransporters>
                    <LimitNumberOfTransportersValue>10</LimitNumberOfTransportersValue>
                </Path>
            </Presentation>

                    <Z>0</Z>
                </Network>
                <EmbeddedObjectPresentation>
                    <Id>1467381019279</Id>
                    <Name><![CDATA[bombs_presentation]]></Name>
                    <X>-210</X><Y>60</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <EmbeddedIcon>false</EmbeddedIcon>
                    <Z>0</Z>
                    <Rotation>0.0</Rotation>
                    <DrawingMode>AGENT_CURRENT_POSITION</DrawingMode>
                    <ScaleType>AUTOMATICALLY_CALCULATED</ScaleType>
                    <GISScaleForRealEmbeddedObjectPresentationSize>1000</GISScaleForRealEmbeddedObjectPresentationSize>
                    <GISScaleForFixedEmbeddedObjectPresentationSize>1000000000</GISScaleForFixedEmbeddedObjectPresentationSize>
                    <Latitude>0.0</Latitude>
                    <Longitude>0.0</Longitude>
                </EmbeddedObjectPresentation>
                <EmbeddedObjectPresentation>
                    <Id>1468836585184</Id>
                    <Name><![CDATA[radar1_presentation]]></Name>
                    <X>300</X><Y>250</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <EmbeddedIcon>false</EmbeddedIcon>
                    <Z>0</Z>
                    <Rotation>0.0</Rotation>
                    <DrawingMode>AGENT_CURRENT_POSITION</DrawingMode>
                    <ScaleType>AUTOMATICALLY_CALCULATED</ScaleType>
                    <GISScaleForRealEmbeddedObjectPresentationSize>1000</GISScaleForRealEmbeddedObjectPresentationSize>
                    <GISScaleForFixedEmbeddedObjectPresentationSize>1000000000</GISScaleForFixedEmbeddedObjectPresentationSize>
                    <Latitude>0.0</Latitude>
                    <Longitude>0.0</Longitude>
                </EmbeddedObjectPresentation>
                <EmbeddedObjectPresentation>
                    <Id>1468836705525</Id>
                    <Name><![CDATA[radar2_presentation]]></Name>
                    <X>520</X><Y>100</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <EmbeddedIcon>false</EmbeddedIcon>
                    <Z>0</Z>
                    <Rotation>0.0</Rotation>
                    <DrawingMode>AGENT_CURRENT_POSITION</DrawingMode>
                    <ScaleType>AUTOMATICALLY_CALCULATED</ScaleType>
                    <GISScaleForRealEmbeddedObjectPresentationSize>1000</GISScaleForRealEmbeddedObjectPresentationSize>
                    <GISScaleForFixedEmbeddedObjectPresentationSize>1000000000</GISScaleForFixedEmbeddedObjectPresentationSize>
                    <Latitude>0.0</Latitude>
                    <Longitude>0.0</Longitude>
                </EmbeddedObjectPresentation>
                <EmbeddedObjectPresentation>
                    <Id>1468837390432</Id>
                    <Name><![CDATA[missiles_presentation]]></Name>
                    <X>-50</X><Y>150</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <EmbeddedIcon>false</EmbeddedIcon>
                    <Z>0</Z>
                    <Rotation>0.0</Rotation>
                    <DrawingMode>AGENT_CURRENT_POSITION</DrawingMode>
                    <ScaleType>AUTOMATICALLY_CALCULATED</ScaleType>
                    <GISScaleForRealEmbeddedObjectPresentationSize>1000</GISScaleForRealEmbeddedObjectPresentationSize>
                    <GISScaleForFixedEmbeddedObjectPresentationSize>1000000000</GISScaleForFixedEmbeddedObjectPresentationSize>
                    <Latitude>0.0</Latitude>
                    <Longitude>0.0</Longitude>
                </EmbeddedObjectPresentation>
            </Presentation>

                </Level>
            </Presentation>
            <Areas>
                <Area>
                    <Id>1466606757275</Id>
                    <Name><![CDATA[view2D]]></Name>
                    <X>0</X><Y>0</Y>
                    <Label><X>0</X><Y>-10</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <Title><![CDATA[2D]]></Title>
                    <Width>1000</Width>
                    <Height>600</Height>
                </Area>
            </Areas>

        </ActiveObjectClass>
        <!--   =========   Active Object Class   ========  -->
        <ActiveObjectClass>
            <Id>1466599081903</Id>
            <Name><![CDATA[Building]]></Name>
            <Generic>false</Generic>
            <GenericParameter>
                <Id>1466599081902</Id>
                <Name><![CDATA[1466599081902]]></Name>
                <GenericParameterValue Class="CodeValue">
                    <Code><![CDATA[T extends Agent]]></Code>
                </GenericParameterValue>
                <GenericParameterLabel><![CDATA[Generic parameter:]]></GenericParameterLabel>
            </GenericParameter>
            <FlowChartsUsage>ENTITY</FlowChartsUsage>
            <SamplesToKeep>100</SamplesToKeep>
            <LimitNumberOfArrayElements>false</LimitNumberOfArrayElements>
            <ElementsLimitValue>100</ElementsLimitValue>
            <MakeDefaultViewArea>true</MakeDefaultViewArea>
            <SceneGridColor/>
            <SceneBackgroundColor/>
            <SceneSkybox>null</SceneSkybox>
            <AgentProperties>
                <EnvironmentDefinesInitialLocation>true</EnvironmentDefinesInitialLocation>
                <RotateAnimationTowardsMovement>true</RotateAnimationTowardsMovement>
                <RotateAnimationVertically>false</RotateAnimationVertically>
                <VelocityCode Class="CodeUnitValue">
                    <Code><![CDATA[10]]></Code>
                    <Unit Class="SpeedUnits"><![CDATA[MPS]]></Unit>
                </VelocityCode>
                <PhysicalLength Class="CodeUnitValue">
                    <Code><![CDATA[1]]></Code>
                    <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                </PhysicalLength>
                <PhysicalWidth Class="CodeUnitValue">
                    <Code><![CDATA[1]]></Code>
                    <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                </PhysicalWidth>
                <PhysicalHeight Class="CodeUnitValue">
                    <Code><![CDATA[1]]></Code>
                    <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                </PhysicalHeight>
            </AgentProperties>
            <EnvironmentProperties>
                    <EnableSteps>false</EnableSteps>
                    <StepDurationCode Class="CodeUnitValue">
                        <Code><![CDATA[1.0]]></Code>
                        <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                    </StepDurationCode>
                    <SpaceType>CONTINUOUS</SpaceType>
                    <WidthCode><![CDATA[500]]></WidthCode>
                    <HeightCode><![CDATA[500]]></HeightCode>
                    <ZHeightCode><![CDATA[0]]></ZHeightCode>
                    <ColumnsCountCode><![CDATA[100]]></ColumnsCountCode>
                    <RowsCountCode><![CDATA[100]]></RowsCountCode>
                    <NeigborhoodType>MOORE</NeigborhoodType>
                    <LayoutType>USER_DEF</LayoutType>
                    <LayoutTypeApplyOnStartup>true</LayoutTypeApplyOnStartup>
                    <NetworkType>USER_DEF</NetworkType>
                    <NetworkTypeApplyOnStartup>true</NetworkTypeApplyOnStartup>
                    <ConnectionsPerAgentCode><![CDATA[2]]></ConnectionsPerAgentCode>
                    <ConnectionsRangeCode><![CDATA[50]]></ConnectionsRangeCode>
                    <NeighborLinkFractionCode><![CDATA[0.95]]></NeighborLinkFractionCode>
                    <MCode><![CDATA[10]]></MCode>
            </EnvironmentProperties>
            <DatasetsCreationProperties>
                <AutoCreate>true</AutoCreate>
                    <OccurrenceAtTime>true</OccurrenceAtTime>
                    <OccurrenceDate>1466668800000</OccurrenceDate>
                    <OccurrenceTime Class="CodeUnitValue">
                        <Code><![CDATA[0]]></Code>
                        <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                    </OccurrenceTime>
                    <RecurrenceCode Class="CodeUnitValue">
                        <Code><![CDATA[1]]></Code>
                        <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                    </RecurrenceCode>
            </DatasetsCreationProperties>
            <ScaleRuler>
                <Id>1466599081900</Id>
                <Name><![CDATA[scale]]></Name>
                <X>0</X><Y>-150</Y>
                <PublicFlag>false</PublicFlag>
                <PresentationFlag>false</PresentationFlag>
                <ShowLabel>false</ShowLabel>
                <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                <Length>100</Length>
                <Rotation>0</Rotation>
                <ScaleType>BASED_ON_LENGTH</ScaleType>
                <ModelLength>10</ModelLength>
                <LengthUnits>METER</LengthUnits>
                <Scale>10</Scale>
                <InheritedFromParentAgentType>true</InheritedFromParentAgentType>
            </ScaleRuler>
            <CurrentLevel>1587636074191</CurrentLevel>
            <ConnectionsId>1466599081899</ConnectionsId>
            <Variables>
                <Variable Class="PlainVariable">
                    <Id>1467383668542</Id>
                    <Name><![CDATA[destroyed]]></Name>
                    <X>40</X><Y>100</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <Properties SaveInSnapshot="true" Constant="false" AccessType="public" StaticVariable="false">
                        <Type><![CDATA[boolean]]></Type>
                        <InitialValue Class="CodeValue">
                            <Code><![CDATA[false]]></Code>
                        </InitialValue>
                    </Properties>
                </Variable>
            </Variables>
            <AgentLinks>
                <AgentLink>
                    <Id>1466599081899</Id>
                    <Name><![CDATA[connections]]></Name>
                    <X>50</X><Y>-50</Y>
                    <Label><X>15</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <OnReceive><![CDATA[destroyed = true;]]></OnReceive>
                    <HandleReceiveInConnections>false</HandleReceiveInConnections>
                    <AgentLinkType>COLLECTION_OF_LINKS</AgentLinkType>
                    <AgentLinkBidirectional>true</AgentLinkBidirectional>
                    <MessageType><![CDATA[Object]]></MessageType>
                    <LineStyle>SOLID</LineStyle>
                    <LineWidth>1</LineWidth>
                    <LineColor>-16777216</LineColor>
                    <LineZOrder>UNDER_AGENTS</LineZOrder>
                    <LineArrow>NONE</LineArrow>
                    <LineArrowPosition>END</LineArrowPosition>
                </AgentLink>
            </AgentLinks>

            <ContainerLinks>
                <ContainerLink>
                    <Id>1466599082027</Id>
                    <Name><![CDATA[main]]></Name>
                    <X>50</X><Y>-100</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <ActiveObjectClass>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[Main]]></ClassName>
                    </ActiveObjectClass>
                </ContainerLink>
            </ContainerLinks>

            <Presentation>
                <Level>
                    <Id>1587636074191</Id>
                    <Name><![CDATA[level]]></Name>
                    <X>0</X><Y>0</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <Z>0</Z>
                    <LevelVisibility>ALWAYS_SHOW</LevelVisibility>

            <Presentation>
                <Figure3D>
                    <Id>1466599081993</Id>
                    <Name><![CDATA[house]]></Name>
                    <X>0</X><Y>0</Y>
                    <Label><X>0</X><Y>-10</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <X>0</X><Y>0</Y><Z>0</Z>
                    <Label><X>0</X><Y>-10</Y></Label>
                    <ResourceReference>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[3d/house.dae]]></ClassName>
                    </ResourceReference>
                    <ColorTable>
                        <ColorMapping>
                            <Name><![CDATA[Material__5__Surf]]></Name>
                            <OriginalColor>-14342875</OriginalColor>
                        </ColorMapping>
                        <ColorMapping>
                            <Name><![CDATA[Material__4__Surf]]></Name>
                            <OriginalColor>-16755020</OriginalColor>
                        </ColorMapping>
                        <ColorMapping>
                            <Name><![CDATA[Material__3__Surf]]></Name>
                            <OriginalColor>-5207449</OriginalColor>
                        </ColorMapping>
                        <ColorMapping>
                            <Name><![CDATA[Material__2__Surf]]></Name>
                            <OriginalColor>-3355444</OriginalColor>
                        </ColorMapping>
                        <ColorMapping>
                            <Name><![CDATA[Material__1__Surf]]></Name>
                            <OriginalColor>-16739124</OriginalColor>
                        </ColorMapping>
                    </ColorTable>
                    <AutoScale>true</AutoScale>
                    <Scale>1.0</Scale>
                    <Rotation>0.0</Rotation>
                    <AxisOrder>YZX_AXIS_ORDER</AxisOrder>
                    <ApplyShading>true</ApplyShading>
                    <InternalLighting>OFF</InternalLighting>
                    <IgnoreSceneLights>false</IgnoreSceneLights>
                </Figure3D>
                <Figure3D>
                    <Id>1467384193124</Id>
                    <Name><![CDATA[fire]]></Name>
                    <X>-10</X><Y>80</Y>
                    <Label><X>0</X><Y>-10</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <X>-10</X><Y>80</Y><Z>100</Z>
                    <Label><X>0</X><Y>-10</Y></Label>
                    <ResourceReference>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[3d/fire.dae]]></ClassName>
                    </ResourceReference>
                    <ColorTable>
                        <ColorMapping>
                            <Name><![CDATA[MA_Element_2]]></Name>
                            <OriginalColor>-16896</OriginalColor>
                        </ColorMapping>
                        <ColorMapping>
                            <Name><![CDATA[MA_Element_1]]></Name>
                            <OriginalColor>-6740736</OriginalColor>
                        </ColorMapping>
                    </ColorTable>
                    <AutoScale>true</AutoScale>
                    <Scale>8.0</Scale>
                    <Rotation>0.0</Rotation>
                    <AxisOrder>ZXY_AXIS_ORDER</AxisOrder>
                    <ApplyShading>true</ApplyShading>
                    <InternalLighting>OFF</InternalLighting>
                    <IgnoreSceneLights>false</IgnoreSceneLights>
                    <VisibleCode><![CDATA[destroyed]]></VisibleCode>
                </Figure3D>
            </Presentation>

                </Level>
            </Presentation>

        </ActiveObjectClass>
        <!--   =========   Active Object Class   ========  -->
        <ActiveObjectClass>
            <Id>1467194763603</Id>
            <Name><![CDATA[Bomber]]></Name>
            <Generic>false</Generic>
            <GenericParameter>
                <Id>1467194763602</Id>
                <Name><![CDATA[1467194763602]]></Name>
                <GenericParameterValue Class="CodeValue">
                    <Code><![CDATA[T extends Agent]]></Code>
                </GenericParameterValue>
                <GenericParameterLabel><![CDATA[Generic parameter:]]></GenericParameterLabel>
            </GenericParameter>
            <FlowChartsUsage>ENTITY</FlowChartsUsage>
            <SamplesToKeep>100</SamplesToKeep>
            <LimitNumberOfArrayElements>false</LimitNumberOfArrayElements>
            <ElementsLimitValue>100</ElementsLimitValue>
            <MakeDefaultViewArea>true</MakeDefaultViewArea>
            <SceneGridColor/>
            <SceneBackgroundColor/>
            <SceneSkybox>null</SceneSkybox>
            <AgentProperties>
                <EnvironmentDefinesInitialLocation>true</EnvironmentDefinesInitialLocation>
                <RotateAnimationTowardsMovement>true</RotateAnimationTowardsMovement>
                <RotateAnimationVertically>false</RotateAnimationVertically>
                <VelocityCode Class="CodeUnitValue">
                    <Code><![CDATA[10]]></Code>
                    <Unit Class="SpeedUnits"><![CDATA[MPS]]></Unit>
                </VelocityCode>
                <PhysicalLength Class="CodeUnitValue">
                    <Code><![CDATA[1]]></Code>
                    <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                </PhysicalLength>
                <PhysicalWidth Class="CodeUnitValue">
                    <Code><![CDATA[1]]></Code>
                    <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                </PhysicalWidth>
                <PhysicalHeight Class="CodeUnitValue">
                    <Code><![CDATA[1]]></Code>
                    <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                </PhysicalHeight>
            </AgentProperties>
            <EnvironmentProperties>
                    <EnableSteps>false</EnableSteps>
                    <StepDurationCode Class="CodeUnitValue">
                        <Code><![CDATA[1.0]]></Code>
                        <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                    </StepDurationCode>
                    <SpaceType>CONTINUOUS</SpaceType>
                    <WidthCode><![CDATA[500]]></WidthCode>
                    <HeightCode><![CDATA[500]]></HeightCode>
                    <ZHeightCode><![CDATA[0]]></ZHeightCode>
                    <ColumnsCountCode><![CDATA[100]]></ColumnsCountCode>
                    <RowsCountCode><![CDATA[100]]></RowsCountCode>
                    <NeigborhoodType>MOORE</NeigborhoodType>
                    <LayoutType>USER_DEF</LayoutType>
                    <LayoutTypeApplyOnStartup>true</LayoutTypeApplyOnStartup>
                    <NetworkType>USER_DEF</NetworkType>
                    <NetworkTypeApplyOnStartup>true</NetworkTypeApplyOnStartup>
                    <ConnectionsPerAgentCode><![CDATA[2]]></ConnectionsPerAgentCode>
                    <ConnectionsRangeCode><![CDATA[50]]></ConnectionsRangeCode>
                    <NeighborLinkFractionCode><![CDATA[0.95]]></NeighborLinkFractionCode>
                    <MCode><![CDATA[10]]></MCode>
            </EnvironmentProperties>
            <DatasetsCreationProperties>
                <AutoCreate>true</AutoCreate>
                    <OccurrenceAtTime>true</OccurrenceAtTime>
                    <OccurrenceDate>1467273600000</OccurrenceDate>
                    <OccurrenceTime Class="CodeUnitValue">
                        <Code><![CDATA[0]]></Code>
                        <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                    </OccurrenceTime>
                    <RecurrenceCode Class="CodeUnitValue">
                        <Code><![CDATA[1]]></Code>
                        <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                    </RecurrenceCode>
            </DatasetsCreationProperties>
            <ScaleRuler>
                <Id>1467194763600</Id>
                <Name><![CDATA[scale]]></Name>
                <X>0</X><Y>-150</Y>
                <PublicFlag>false</PublicFlag>
                <PresentationFlag>false</PresentationFlag>
                <ShowLabel>false</ShowLabel>
                <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                <Length>100</Length>
                <Rotation>0</Rotation>
                <ScaleType>BASED_ON_LENGTH</ScaleType>
                <ModelLength>10</ModelLength>
                <LengthUnits>METER</LengthUnits>
                <Scale>10</Scale>
                <InheritedFromParentAgentType>true</InheritedFromParentAgentType>
            </ScaleRuler>
            <CurrentLevel>1587636074190</CurrentLevel>
            <ConnectionsId>1467194763599</ConnectionsId>
            <Variables>
                <Variable Class="Parameter">
                    <Id>1467194763628</Id>
                    <Name><![CDATA[target]]></Name>
                    <X>50</X><Y>50</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <Properties SaveInSnapshot="true" ModificatorType="STATIC">
                        <Type><![CDATA[Building]]></Type>
                        <UnitType><![CDATA[NONE]]></UnitType>
                        <SdArray>false</SdArray>
                        <ParameterEditor>
                            <Id>0</Id>
                            <EditorContolType>TEXT_BOX</EditorContolType>
                            <MinSliderValue><![CDATA[0]]></MinSliderValue>
                            <MaxSliderValue><![CDATA[100]]></MaxSliderValue>
                            <DelimeterType>NO_DELIMETER</DelimeterType>
                        </ParameterEditor>
                    </Properties>
                </Variable>
            </Variables>
            <StatechartElements>
                <StatechartElement Class="FinalState" ParentState="ROOT_NODE">
                    <Id>1467195168407</Id>
                    <Name><![CDATA[finalState]]></Name>
                    <X>150</X><Y>290</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <Properties>
                        <Action><![CDATA[main.remove_bombers(this);]]></Action>
                    </Properties>
                </StatechartElement>
                <StatechartElement Class="FinalState" ParentState="ROOT_NODE">
                    <Id>1468938299374</Id>
                    <Name><![CDATA[finalState1]]></Name>
                    <X>330</X><Y>250</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <Properties>
                    </Properties>
                </StatechartElement>
                <StatechartElement Class="State" ParentState="ROOT_NODE">
                    <Id>1468938396959</Id>
                    <Name><![CDATA[state]]></Name>
                    <X>60</X><Y>70</Y>
                    <Label><X>10</X><Y>10</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <Properties Width="180" Height="170">
                        <FillColor/>
                    </Properties>
                </StatechartElement>
                <StatechartElement Class="State" ParentState="state" ParentStateId="1468938396959">
                    <Id>1467195133740</Id>
                    <Name><![CDATA[ToTarget]]></Name>
                    <X>80</X><Y>90</Y>
                    <Label><X>10</X><Y>10</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <Properties Width="140" Height="40">
                        <EntryAction><![CDATA[moveTo(target.getX(), target.getY(), 80);]]></EntryAction>
                        <FillColor/>
                    </Properties>
                </StatechartElement>
                <StatechartElement Class="State" ParentState="state" ParentStateId="1468938396959">
                    <Id>1467195139398</Id>
                    <Name><![CDATA[Away]]></Name>
                    <X>80</X><Y>180</Y>
                    <Label><X>10</X><Y>10</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <Properties Width="140" Height="40">
                        <EntryAction><![CDATA[moveTo( main.exitNode );]]></EntryAction>
                        <FillColor/>
                    </Properties>
                </StatechartElement>
                <StatechartElement Class="EntryPoint" ParentState="ROOT_NODE">
                    <Id>1467195123645</Id>
                    <Name><![CDATA[statechart]]></Name>
                    <X>150</X><Y>50</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <Points>
                        <Point><X>0</X><Y>0</Y></Point>
                        <Point><X>0</X><Y>40</Y></Point>
                    </Points>
                    <Properties Target="1467195133740">
                    </Properties>
                </StatechartElement>
                <StatechartElement Class="Transition" ParentState="state" ParentStateId="1468938396959">
                    <Id>1467195149166</Id>
                    <Name><![CDATA[transition]]></Name>
                    <X>150</X><Y>130</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <Points>
                        <Point><X>0</X><Y>0</Y></Point>
                        <Point><X>0</X><Y>50</Y></Point>
                    </Points>
                    <IconOffset>20.0</IconOffset>
                    <Properties Source="1467195133740" Target="1467195139398" Trigger="arrival">
                        <Action><![CDATA[main.add_bombs(target,this);]]></Action>
                        <Timeout Class="CodeUnitValue">
                            <Code><![CDATA[1]]></Code>
                            <Unit Class="TimeUnits"><![CDATA[MINUTE]]></Unit>
                        </Timeout>
                        <Condition><![CDATA[true]]></Condition>
                        <Rate Class="CodeUnitValue">
                            <Code><![CDATA[1]]></Code>
                            <Unit Class="RateUnits"><![CDATA[PER_MINUTE]]></Unit>
                        </Rate>
                        <MessageType><![CDATA[Object]]></MessageType>
                        <DefaultTransition>true</DefaultTransition>
                        <FilterType><![CDATA[unconditionally]]></FilterType>
                        <EqualsExpression><![CDATA["text"]]></EqualsExpression>
                        <SatisfiesExpression><![CDATA[true]]></SatisfiesExpression>
                    </Properties>
                </StatechartElement>
                <StatechartElement Class="Transition" ParentState="ROOT_NODE">
                    <Id>1467195159103</Id>
                    <Name><![CDATA[transition1]]></Name>
                    <X>150</X><Y>220</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <Points>
                        <Point><X>0</X><Y>0</Y></Point>
                        <Point><X>0</X><Y>62</Y></Point>
                    </Points>
                    <IconOffset>40.0</IconOffset>
                    <Properties Source="1467195139398" Target="1467195168407" Trigger="arrival">
                        <Timeout Class="CodeUnitValue">
                            <Code><![CDATA[1]]></Code>
                            <Unit Class="TimeUnits"><![CDATA[MINUTE]]></Unit>
                        </Timeout>
                        <Condition><![CDATA[true]]></Condition>
                        <Rate Class="CodeUnitValue">
                            <Code><![CDATA[1]]></Code>
                            <Unit Class="RateUnits"><![CDATA[PER_MINUTE]]></Unit>
                        </Rate>
                        <MessageType><![CDATA[Object]]></MessageType>
                        <DefaultTransition>true</DefaultTransition>
                        <FilterType><![CDATA[unconditionally]]></FilterType>
                        <EqualsExpression><![CDATA["text"]]></EqualsExpression>
                        <SatisfiesExpression><![CDATA[true]]></SatisfiesExpression>
                    </Properties>
                </StatechartElement>
                <StatechartElement Class="Transition" ParentState="ROOT_NODE">
                    <Id>1468938297034</Id>
                    <Name><![CDATA[transition2]]></Name>
                    <X>240</X><Y>150</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <Points>
                        <Point><X>0</X><Y>0</Y></Point>
                        <Point><X>90</X><Y>0</Y></Point>
                        <Point><X>90</X><Y>92</Y></Point>
                    </Points>
                    <IconOffset>50.0</IconOffset>
                    <Properties Source="1468938396959" Target="1468938299374" Trigger="message">
                        <Action><![CDATA[main.remove_bombers(this);]]></Action>
                        <Timeout Class="CodeUnitValue">
                            <Code><![CDATA[1]]></Code>
                            <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                        </Timeout>
                        <Condition><![CDATA[true]]></Condition>
                        <Rate Class="CodeUnitValue">
                            <Code><![CDATA[1]]></Code>
                            <Unit Class="RateUnits"><![CDATA[PER_SECOND]]></Unit>
                        </Rate>
                        <MessageType><![CDATA[Object]]></MessageType>
                        <DefaultTransition>true</DefaultTransition>
                        <FilterType><![CDATA[equalsTo]]></FilterType>
                        <EqualsExpression><![CDATA["You are destroyed"]]></EqualsExpression>
                        <SatisfiesExpression><![CDATA[true]]></SatisfiesExpression>
                    </Properties>
                </StatechartElement>
            </StatechartElements>
            <AgentLinks>
                <AgentLink>
                    <Id>1467194763599</Id>
                    <Name><![CDATA[connections]]></Name>
                    <X>50</X><Y>-50</Y>
                    <Label><X>15</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <HandleReceiveInConnections>false</HandleReceiveInConnections>
                    <AgentLinkType>COLLECTION_OF_LINKS</AgentLinkType>
                    <AgentLinkBidirectional>true</AgentLinkBidirectional>
                    <MessageType><![CDATA[Object]]></MessageType>
                    <StatechartReference>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[Bomber]]></ClassName>
                        <ItemName><![CDATA[statechart]]></ItemName>
                    </StatechartReference>
                    <LineStyle>SOLID</LineStyle>
                    <LineWidth>1</LineWidth>
                    <LineColor>-16777216</LineColor>
                    <LineZOrder>UNDER_AGENTS</LineZOrder>
                    <LineArrow>NONE</LineArrow>
                    <LineArrowPosition>END</LineArrowPosition>
                </AgentLink>
            </AgentLinks>

            <ContainerLinks>
                <ContainerLink>
                    <Id>1467194763647</Id>
                    <Name><![CDATA[main]]></Name>
                    <X>50</X><Y>-100</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <ActiveObjectClass>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[Main]]></ClassName>
                    </ActiveObjectClass>
                </ContainerLink>
            </ContainerLinks>

            <Presentation>
                <Level>
                    <Id>1587636074190</Id>
                    <Name><![CDATA[level]]></Name>
                    <X>0</X><Y>0</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <Z>0</Z>
                    <LevelVisibility>ALWAYS_SHOW</LevelVisibility>

            <Presentation>
                <Figure3D>
                    <Id>1467194763627</Id>
                    <Name><![CDATA[bomber]]></Name>
                    <X>0</X><Y>0</Y>
                    <Label><X>0</X><Y>-10</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <X>0</X><Y>0</Y><Z>0</Z>
                    <Label><X>0</X><Y>-10</Y></Label>
                    <ResourceReference>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[3d/bomber.dae]]></ClassName>
                    </ResourceReference>
                    <ColorTable>
                        <ColorMapping>
                            <Name><![CDATA[MA_material]]></Name>
                            <OriginalColor>-11447983</OriginalColor>
                        </ColorMapping>
                    </ColorTable>
                    <AutoScale>true</AutoScale>
                    <Scale>1.0</Scale>
                    <Rotation>0.0</Rotation>
                    <AxisOrder>XYZ_AXIS_ORDER</AxisOrder>
                    <ApplyShading>true</ApplyShading>
                    <InternalLighting>OFF</InternalLighting>
                    <IgnoreSceneLights>false</IgnoreSceneLights>
                </Figure3D>
            </Presentation>

                </Level>
            </Presentation>

        </ActiveObjectClass>
        <!--   =========   Active Object Class   ========  -->
        <ActiveObjectClass>
            <Id>1467381019228</Id>
            <Name><![CDATA[Bomb]]></Name>
            <Generic>false</Generic>
            <GenericParameter>
                <Id>1467381019227</Id>
                <Name><![CDATA[1467381019227]]></Name>
                <GenericParameterValue Class="CodeValue">
                    <Code><![CDATA[T extends Agent]]></Code>
                </GenericParameterValue>
                <GenericParameterLabel><![CDATA[Generic parameter:]]></GenericParameterLabel>
            </GenericParameter>
            <FlowChartsUsage>ENTITY</FlowChartsUsage>
            <SamplesToKeep>100</SamplesToKeep>
            <LimitNumberOfArrayElements>false</LimitNumberOfArrayElements>
            <ElementsLimitValue>100</ElementsLimitValue>
            <MakeDefaultViewArea>true</MakeDefaultViewArea>
            <SceneGridColor/>
            <SceneBackgroundColor/>
            <SceneSkybox>null</SceneSkybox>
            <AgentProperties>
                <EnvironmentDefinesInitialLocation>true</EnvironmentDefinesInitialLocation>
                <RotateAnimationTowardsMovement>true</RotateAnimationTowardsMovement>
                <RotateAnimationVertically>false</RotateAnimationVertically>
                <VelocityCode Class="CodeUnitValue">
                    <Code><![CDATA[10]]></Code>
                    <Unit Class="SpeedUnits"><![CDATA[MPS]]></Unit>
                </VelocityCode>
                <PhysicalLength Class="CodeUnitValue">
                    <Code><![CDATA[1]]></Code>
                    <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                </PhysicalLength>
                <PhysicalWidth Class="CodeUnitValue">
                    <Code><![CDATA[1]]></Code>
                    <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                </PhysicalWidth>
                <PhysicalHeight Class="CodeUnitValue">
                    <Code><![CDATA[1]]></Code>
                    <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                </PhysicalHeight>
            </AgentProperties>
            <EnvironmentProperties>
                    <EnableSteps>false</EnableSteps>
                    <StepDurationCode Class="CodeUnitValue">
                        <Code><![CDATA[1.0]]></Code>
                        <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                    </StepDurationCode>
                    <SpaceType>CONTINUOUS</SpaceType>
                    <WidthCode><![CDATA[500]]></WidthCode>
                    <HeightCode><![CDATA[500]]></HeightCode>
                    <ZHeightCode><![CDATA[0]]></ZHeightCode>
                    <ColumnsCountCode><![CDATA[100]]></ColumnsCountCode>
                    <RowsCountCode><![CDATA[100]]></RowsCountCode>
                    <NeigborhoodType>MOORE</NeigborhoodType>
                    <LayoutType>USER_DEF</LayoutType>
                    <LayoutTypeApplyOnStartup>true</LayoutTypeApplyOnStartup>
                    <NetworkType>USER_DEF</NetworkType>
                    <NetworkTypeApplyOnStartup>true</NetworkTypeApplyOnStartup>
                    <ConnectionsPerAgentCode><![CDATA[2]]></ConnectionsPerAgentCode>
                    <ConnectionsRangeCode><![CDATA[50]]></ConnectionsRangeCode>
                    <NeighborLinkFractionCode><![CDATA[0.95]]></NeighborLinkFractionCode>
                    <MCode><![CDATA[10]]></MCode>
            </EnvironmentProperties>
            <DatasetsCreationProperties>
                <AutoCreate>true</AutoCreate>
                    <OccurrenceAtTime>true</OccurrenceAtTime>
                    <OccurrenceDate>1467446400000</OccurrenceDate>
                    <OccurrenceTime Class="CodeUnitValue">
                        <Code><![CDATA[0]]></Code>
                        <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                    </OccurrenceTime>
                    <RecurrenceCode Class="CodeUnitValue">
                        <Code><![CDATA[1]]></Code>
                        <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                    </RecurrenceCode>
            </DatasetsCreationProperties>
            <ScaleRuler>
                <Id>1467381019225</Id>
                <Name><![CDATA[scale]]></Name>
                <X>0</X><Y>-150</Y>
                <PublicFlag>false</PublicFlag>
                <PresentationFlag>false</PresentationFlag>
                <ShowLabel>false</ShowLabel>
                <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                <Length>100</Length>
                <Rotation>0</Rotation>
                <ScaleType>BASED_ON_LENGTH</ScaleType>
                <ModelLength>10</ModelLength>
                <LengthUnits>METER</LengthUnits>
                <Scale>10</Scale>
                <InheritedFromParentAgentType>true</InheritedFromParentAgentType>
            </ScaleRuler>
            <CurrentLevel>1587636074189</CurrentLevel>
            <ConnectionsId>1467381019224</ConnectionsId>
            <Variables>
                <Variable Class="Parameter">
                    <Id>1467381019278</Id>
                    <Name><![CDATA[target]]></Name>
                    <X>50</X><Y>100</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <Properties SaveInSnapshot="true" ModificatorType="STATIC">
                        <Type><![CDATA[Building]]></Type>
                        <UnitType><![CDATA[NONE]]></UnitType>
                        <SdArray>false</SdArray>
                        <ParameterEditor>
                            <Id>0</Id>
                            <EditorContolType>TEXT_BOX</EditorContolType>
                            <MinSliderValue><![CDATA[0]]></MinSliderValue>
                            <MaxSliderValue><![CDATA[100]]></MaxSliderValue>
                            <DelimeterType>NO_DELIMETER</DelimeterType>
                        </ParameterEditor>
                    </Properties>
                </Variable>
                <Variable Class="Parameter">
                    <Id>1467381019277</Id>
                    <Name><![CDATA[bomber]]></Name>
                    <X>50</X><Y>50</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <Properties SaveInSnapshot="true" ModificatorType="STATIC">
                        <Type><![CDATA[Bomber]]></Type>
                        <UnitType><![CDATA[NONE]]></UnitType>
                        <SdArray>false</SdArray>
                        <ParameterEditor>
                            <Id>0</Id>
                            <EditorContolType>TEXT_BOX</EditorContolType>
                            <MinSliderValue><![CDATA[0]]></MinSliderValue>
                            <MaxSliderValue><![CDATA[100]]></MaxSliderValue>
                            <DelimeterType>NO_DELIMETER</DelimeterType>
                        </ParameterEditor>
                    </Properties>
                </Variable>
            </Variables>
            <StatechartElements>
                <StatechartElement Class="State" ParentState="ROOT_NODE">
                    <Id>1467381066616</Id>
                    <Name><![CDATA[Falling]]></Name>
                    <X>150</X><Y>90</Y>
                    <Label><X>10</X><Y>10</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <Properties Width="100" Height="30">
                        <EntryAction><![CDATA[moveTo( target.getX(), target.getY(), target.getZ() );]]></EntryAction>
                        <FillColor/>
                    </Properties>
                </StatechartElement>
                <StatechartElement Class="FinalState" ParentState="ROOT_NODE">
                    <Id>1467381092550</Id>
                    <Name><![CDATA[Exploded]]></Name>
                    <X>200</X><Y>170</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <Properties>
                        <Action><![CDATA[main.remove_bombs( this );]]></Action>
                    </Properties>
                </StatechartElement>
                <StatechartElement Class="Transition" ParentState="ROOT_NODE">
                    <Id>1467381086800</Id>
                    <Name><![CDATA[transition]]></Name>
                    <X>200</X><Y>120</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <Points>
                        <Point><X>0</X><Y>0</Y></Point>
                        <Point><X>0</X><Y>42</Y></Point>
                    </Points>
                    <IconOffset>20.0</IconOffset>
                    <Properties Source="1467381066616" Target="1467381092550" Trigger="arrival">
                        <Action><![CDATA[deliver( "You are destroyed", target );

if (findFirst(main.buildings, b -> b.destroyed == false) == null)
{
    traceln("No more targets. Mission complete!");
    finishSimulation();
}    ]]></Action>
                        <Timeout Class="CodeUnitValue">
                            <Code><![CDATA[1]]></Code>
                            <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                        </Timeout>
                        <Condition><![CDATA[true]]></Condition>
                        <Rate Class="CodeUnitValue">
                            <Code><![CDATA[1]]></Code>
                            <Unit Class="RateUnits"><![CDATA[PER_SECOND]]></Unit>
                        </Rate>
                        <MessageType><![CDATA[Object]]></MessageType>
                        <DefaultTransition>true</DefaultTransition>
                        <FilterType><![CDATA[unconditionally]]></FilterType>
                        <EqualsExpression><![CDATA["text"]]></EqualsExpression>
                        <SatisfiesExpression><![CDATA[true]]></SatisfiesExpression>
                    </Properties>
                </StatechartElement>
                <StatechartElement Class="EntryPoint" ParentState="ROOT_NODE">
                    <Id>1467381564255</Id>
                    <Name><![CDATA[statechart]]></Name>
                    <X>200</X><Y>50</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <Points>
                        <Point><X>0</X><Y>0</Y></Point>
                        <Point><X>0</X><Y>40</Y></Point>
                    </Points>
                    <Properties Target="1467381066616">
                        <Action><![CDATA[setXYZ( bomber.getX(), bomber.getY(), bomber.getZ() );]]></Action>
                    </Properties>
                </StatechartElement>
            </StatechartElements>
            <AgentLinks>
                <AgentLink>
                    <Id>1467381019224</Id>
                    <Name><![CDATA[connections]]></Name>
                    <X>50</X><Y>-50</Y>
                    <Label><X>15</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <HandleReceiveInConnections>false</HandleReceiveInConnections>
                    <AgentLinkType>COLLECTION_OF_LINKS</AgentLinkType>
                    <AgentLinkBidirectional>true</AgentLinkBidirectional>
                    <MessageType><![CDATA[Object]]></MessageType>
                    <StatechartReference>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[Bomb]]></ClassName>
                        <ItemName><![CDATA[statechart]]></ItemName>
                    </StatechartReference>
                    <LineStyle>SOLID</LineStyle>
                    <LineWidth>1</LineWidth>
                    <LineColor>-16777216</LineColor>
                    <LineZOrder>UNDER_AGENTS</LineZOrder>
                    <LineArrow>NONE</LineArrow>
                    <LineArrowPosition>END</LineArrowPosition>
                </AgentLink>
            </AgentLinks>

            <ContainerLinks>
                <ContainerLink>
                    <Id>1467381019317</Id>
                    <Name><![CDATA[main]]></Name>
                    <X>50</X><Y>-100</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <ActiveObjectClass>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[Main]]></ClassName>
                    </ActiveObjectClass>
                </ContainerLink>
            </ContainerLinks>

            <Presentation>
                <Level>
                    <Id>1587636074189</Id>
                    <Name><![CDATA[level]]></Name>
                    <X>0</X><Y>0</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <Z>0</Z>
                    <LevelVisibility>ALWAYS_SHOW</LevelVisibility>

            <Presentation>
                <Figure3D>
                    <Id>1467381019276</Id>
                    <Name><![CDATA[bomb]]></Name>
                    <X>0</X><Y>0</Y>
                    <Label><X>0</X><Y>-10</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <X>0</X><Y>0</Y><Z>0</Z>
                    <Label><X>0</X><Y>-10</Y></Label>
                    <ResourceReference>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[3d/bomb.dae]]></ClassName>
                    </ResourceReference>
                    <ColorTable>
                        <ColorMapping>
                            <Name><![CDATA[MA_Bomb]]></Name>
                            <OriginalColor>-13425408</OriginalColor>
                        </ColorMapping>
                    </ColorTable>
                    <AutoScale>true</AutoScale>
                    <Scale>3.0</Scale>
                    <Rotation>0.0</Rotation>
                    <AxisOrder>XYZ_AXIS_ORDER</AxisOrder>
                    <ApplyShading>true</ApplyShading>
                    <InternalLighting>OFF</InternalLighting>
                    <IgnoreSceneLights>false</IgnoreSceneLights>
                </Figure3D>
            </Presentation>

                </Level>
            </Presentation>

        </ActiveObjectClass>
        <!--   =========   Active Object Class   ========  -->
        <ActiveObjectClass>
            <Id>1468836585133</Id>
            <Name><![CDATA[Radar]]></Name>
            <Generic>false</Generic>
            <GenericParameter>
                <Id>1468836585132</Id>
                <Name><![CDATA[1468836585132]]></Name>
                <GenericParameterValue Class="CodeValue">
                    <Code><![CDATA[T extends Agent]]></Code>
                </GenericParameterValue>
                <GenericParameterLabel><![CDATA[Generic parameter:]]></GenericParameterLabel>
            </GenericParameter>
            <FlowChartsUsage>ENTITY</FlowChartsUsage>
            <SamplesToKeep>100</SamplesToKeep>
            <LimitNumberOfArrayElements>false</LimitNumberOfArrayElements>
            <ElementsLimitValue>100</ElementsLimitValue>
            <MakeDefaultViewArea>true</MakeDefaultViewArea>
            <SceneGridColor/>
            <SceneBackgroundColor/>
            <SceneSkybox>null</SceneSkybox>
            <AgentProperties>
                <EnvironmentDefinesInitialLocation>true</EnvironmentDefinesInitialLocation>
                <RotateAnimationTowardsMovement>true</RotateAnimationTowardsMovement>
                <RotateAnimationVertically>false</RotateAnimationVertically>
                <VelocityCode Class="CodeUnitValue">
                    <Code><![CDATA[10]]></Code>
                    <Unit Class="SpeedUnits"><![CDATA[MPS]]></Unit>
                </VelocityCode>
                <AfterStepCode><![CDATA[//for all bombers in the air
for( Bomber b : main.bombers ) {
    //if can't have more engagements, do nothing
    if( guidedmissiles.size() >= 2 )
        break;
    //if within engagement range
        //already engaged by another missile?
    if( distanceTo( b ) < range ) {
        boolean engaged = false;
        for( Missile m : main.missiles ) {
            if( m.target == b ) {
                engaged = true;
                break;
            }
        }
        if( engaged )
            continue; //proceed to the next bomber
        //engage (create a new missile)
        Missile m = main.add_missiles( this, b );
        guidedmissiles.add( m ); //register guided missile
    }
}]]></AfterStepCode>
                <PhysicalLength Class="CodeUnitValue">
                    <Code><![CDATA[1]]></Code>
                    <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                </PhysicalLength>
                <PhysicalWidth Class="CodeUnitValue">
                    <Code><![CDATA[1]]></Code>
                    <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                </PhysicalWidth>
                <PhysicalHeight Class="CodeUnitValue">
                    <Code><![CDATA[1]]></Code>
                    <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                </PhysicalHeight>
            </AgentProperties>
            <EnvironmentProperties>
                    <EnableSteps>false</EnableSteps>
                    <StepDurationCode Class="CodeUnitValue">
                        <Code><![CDATA[1.0]]></Code>
                        <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                    </StepDurationCode>
                    <SpaceType>CONTINUOUS</SpaceType>
                    <WidthCode><![CDATA[500]]></WidthCode>
                    <HeightCode><![CDATA[500]]></HeightCode>
                    <ZHeightCode><![CDATA[0]]></ZHeightCode>
                    <ColumnsCountCode><![CDATA[100]]></ColumnsCountCode>
                    <RowsCountCode><![CDATA[100]]></RowsCountCode>
                    <NeigborhoodType>MOORE</NeigborhoodType>
                    <LayoutType>USER_DEF</LayoutType>
                    <LayoutTypeApplyOnStartup>true</LayoutTypeApplyOnStartup>
                    <NetworkType>USER_DEF</NetworkType>
                    <NetworkTypeApplyOnStartup>true</NetworkTypeApplyOnStartup>
                    <ConnectionsPerAgentCode><![CDATA[2]]></ConnectionsPerAgentCode>
                    <ConnectionsRangeCode><![CDATA[50]]></ConnectionsRangeCode>
                    <NeighborLinkFractionCode><![CDATA[0.95]]></NeighborLinkFractionCode>
                    <MCode><![CDATA[10]]></MCode>
            </EnvironmentProperties>
            <DatasetsCreationProperties>
                <AutoCreate>true</AutoCreate>
                    <OccurrenceAtTime>true</OccurrenceAtTime>
                    <OccurrenceDate>1468915200000</OccurrenceDate>
                    <OccurrenceTime Class="CodeUnitValue">
                        <Code><![CDATA[0]]></Code>
                        <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                    </OccurrenceTime>
                    <RecurrenceCode Class="CodeUnitValue">
                        <Code><![CDATA[1]]></Code>
                        <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                    </RecurrenceCode>
            </DatasetsCreationProperties>
            <ScaleRuler>
                <Id>1468836585130</Id>
                <Name><![CDATA[scale]]></Name>
                <X>0</X><Y>-150</Y>
                <PublicFlag>false</PublicFlag>
                <PresentationFlag>false</PresentationFlag>
                <ShowLabel>false</ShowLabel>
                <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                <Length>100</Length>
                <Rotation>0</Rotation>
                <ScaleType>BASED_ON_LENGTH</ScaleType>
                <ModelLength>10</ModelLength>
                <LengthUnits>METER</LengthUnits>
                <Scale>10</Scale>
                <InheritedFromParentAgentType>true</InheritedFromParentAgentType>
            </ScaleRuler>
            <CurrentLevel>1587636074194</CurrentLevel>
            <ConnectionsId>1468836585129</ConnectionsId>
            <Variables>
                <Variable Class="Parameter">
                    <Id>1468836585183</Id>
                    <Name><![CDATA[range]]></Name>
                    <X>50</X><Y>50</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>false</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <Properties SaveInSnapshot="true" ModificatorType="STATIC">
                        <Type><![CDATA[double]]></Type>
                        <UnitType><![CDATA[NONE]]></UnitType>
                        <SdArray>false</SdArray>
                        <ParameterEditor>
                            <Id>0</Id>
                            <EditorContolType>TEXT_BOX</EditorContolType>
                            <MinSliderValue><![CDATA[0]]></MinSliderValue>
                            <MaxSliderValue><![CDATA[100]]></MaxSliderValue>
                            <DelimeterType>NO_DELIMETER</DelimeterType>
                        </ParameterEditor>
                    </Properties>
                </Variable>
                <Variable Class="CollectionVariable">
                    <Id>1468841757548</Id>
                    <Name><![CDATA[guidedmissiles]]></Name>
                    <X>50</X><Y>80</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <Properties SaveInSnapshot="true" AccessType="public" StaticVariable="false">
                        <CollectionClass><![CDATA[ArrayList]]></CollectionClass>
                        <ElementClass><![CDATA[Missile]]></ElementClass>
                        <ValueElementClass><![CDATA[String]]></ValueElementClass>
                    </Properties>

                </Variable>
            </Variables>
            <AgentLinks>
                <AgentLink>
                    <Id>1468836585129</Id>
                    <Name><![CDATA[connections]]></Name>
                    <X>50</X><Y>-50</Y>
                    <Label><X>15</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <HandleReceiveInConnections>false</HandleReceiveInConnections>
                    <AgentLinkType>COLLECTION_OF_LINKS</AgentLinkType>
                    <AgentLinkBidirectional>true</AgentLinkBidirectional>
                    <MessageType><![CDATA[Object]]></MessageType>
                    <LineStyle>SOLID</LineStyle>
                    <LineWidth>1</LineWidth>
                    <LineColor>-16777216</LineColor>
                    <LineZOrder>UNDER_AGENTS</LineZOrder>
                    <LineArrow>NONE</LineArrow>
                    <LineArrowPosition>END</LineArrowPosition>
                </AgentLink>
            </AgentLinks>

            <ContainerLinks>
                <ContainerLink>
                    <Id>1468836585195</Id>
                    <Name><![CDATA[main]]></Name>
                    <X>50</X><Y>-100</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <ActiveObjectClass>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[Main]]></ClassName>
                    </ActiveObjectClass>
                </ContainerLink>
            </ContainerLinks>

            <Presentation>
                <Level>
                    <Id>1587636074194</Id>
                    <Name><![CDATA[level]]></Name>
                    <X>0</X><Y>0</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <Z>0</Z>
                    <LevelVisibility>ALWAYS_SHOW</LevelVisibility>

            <Presentation>
                <Figure3D>
                    <Id>1468836585182</Id>
                    <Name><![CDATA[patriot]]></Name>
                    <X>0</X><Y>0</Y>
                    <Label><X>0</X><Y>-10</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <X>0</X><Y>0</Y><Z>0</Z>
                    <Label><X>0</X><Y>-10</Y></Label>
                    <ResourceReference>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[3d/patriot.dae]]></ClassName>
                    </ResourceReference>
                    <ColorTable>
                        <ColorMapping>
                            <Name><![CDATA[MA_Color_F20]]></Name>
                            <OriginalColor>-10787247</OriginalColor>
                        </ColorMapping>
                        <ColorMapping>
                            <Name><![CDATA[MA_material]]></Name>
                            <OriginalColor>-11447983</OriginalColor>
                        </ColorMapping>
                        <ColorMapping>
                            <Name><![CDATA[MA_Color_E25]]></Name>
                            <OriginalColor>-13421784</OriginalColor>
                        </ColorMapping>
                        <ColorMapping>
                            <Name><![CDATA[MA_Color_002]]></Name>
                            <OriginalColor>-3815995</OriginalColor>
                        </ColorMapping>
                    </ColorTable>
                    <AutoScale>true</AutoScale>
                    <Scale>1.0</Scale>
                    <Rotation>180.0</Rotation>
                    <AxisOrder>XYZ_AXIS_ORDER</AxisOrder>
                    <ApplyShading>true</ApplyShading>
                    <InternalLighting>OFF</InternalLighting>
                    <IgnoreSceneLights>false</IgnoreSceneLights>
                </Figure3D>
            </Presentation>

                </Level>
            </Presentation>

        </ActiveObjectClass>
        <!--   =========   Active Object Class   ========  -->
        <ActiveObjectClass>
            <Id>1468837390397</Id>
            <Name><![CDATA[Missile]]></Name>
            <Generic>false</Generic>
            <GenericParameter>
                <Id>1468837390396</Id>
                <Name><![CDATA[1468837390396]]></Name>
                <GenericParameterValue Class="CodeValue">
                    <Code><![CDATA[T extends Agent]]></Code>
                </GenericParameterValue>
                <GenericParameterLabel><![CDATA[Generic parameter:]]></GenericParameterLabel>
            </GenericParameter>
            <FlowChartsUsage>ENTITY</FlowChartsUsage>
            <SamplesToKeep>100</SamplesToKeep>
            <LimitNumberOfArrayElements>false</LimitNumberOfArrayElements>
            <ElementsLimitValue>100</ElementsLimitValue>
            <MakeDefaultViewArea>true</MakeDefaultViewArea>
            <SceneGridColor/>
            <SceneBackgroundColor/>
            <SceneSkybox>null</SceneSkybox>
            <AgentProperties>
                <EnvironmentDefinesInitialLocation>true</EnvironmentDefinesInitialLocation>
                <RotateAnimationTowardsMovement>true</RotateAnimationTowardsMovement>
                <RotateAnimationVertically>false</RotateAnimationVertically>
                <VelocityCode Class="CodeUnitValue">
                    <Code><![CDATA[10]]></Code>
                    <Unit Class="SpeedUnits"><![CDATA[MPS]]></Unit>
                </VelocityCode>
                <PhysicalLength Class="CodeUnitValue">
                    <Code><![CDATA[1]]></Code>
                    <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                </PhysicalLength>
                <PhysicalWidth Class="CodeUnitValue">
                    <Code><![CDATA[1]]></Code>
                    <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                </PhysicalWidth>
                <PhysicalHeight Class="CodeUnitValue">
                    <Code><![CDATA[1]]></Code>
                    <Unit Class="LengthUnits"><![CDATA[METER]]></Unit>
                </PhysicalHeight>
            </AgentProperties>
            <EnvironmentProperties>
                    <EnableSteps>false</EnableSteps>
                    <StepDurationCode Class="CodeUnitValue">
                        <Code><![CDATA[1.0]]></Code>
                        <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                    </StepDurationCode>
                    <SpaceType>CONTINUOUS</SpaceType>
                    <WidthCode><![CDATA[500]]></WidthCode>
                    <HeightCode><![CDATA[500]]></HeightCode>
                    <ZHeightCode><![CDATA[0]]></ZHeightCode>
                    <ColumnsCountCode><![CDATA[100]]></ColumnsCountCode>
                    <RowsCountCode><![CDATA[100]]></RowsCountCode>
                    <NeigborhoodType>MOORE</NeigborhoodType>
                    <LayoutType>USER_DEF</LayoutType>
                    <LayoutTypeApplyOnStartup>true</LayoutTypeApplyOnStartup>
                    <NetworkType>USER_DEF</NetworkType>
                    <NetworkTypeApplyOnStartup>true</NetworkTypeApplyOnStartup>
                    <ConnectionsPerAgentCode><![CDATA[2]]></ConnectionsPerAgentCode>
                    <ConnectionsRangeCode><![CDATA[50]]></ConnectionsRangeCode>
                    <NeighborLinkFractionCode><![CDATA[0.95]]></NeighborLinkFractionCode>
                    <MCode><![CDATA[10]]></MCode>
            </EnvironmentProperties>
            <DatasetsCreationProperties>
                <AutoCreate>true</AutoCreate>
                    <OccurrenceAtTime>true</OccurrenceAtTime>
                    <OccurrenceDate>1468915200000</OccurrenceDate>
                    <OccurrenceTime Class="CodeUnitValue">
                        <Code><![CDATA[0]]></Code>
                        <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                    </OccurrenceTime>
                    <RecurrenceCode Class="CodeUnitValue">
                        <Code><![CDATA[1]]></Code>
                        <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                    </RecurrenceCode>
            </DatasetsCreationProperties>
            <ScaleRuler>
                <Id>1468837390394</Id>
                <Name><![CDATA[scale]]></Name>
                <X>0</X><Y>-150</Y>
                <PublicFlag>false</PublicFlag>
                <PresentationFlag>false</PresentationFlag>
                <ShowLabel>false</ShowLabel>
                <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                <Length>100</Length>
                <Rotation>0</Rotation>
                <ScaleType>BASED_ON_LENGTH</ScaleType>
                <ModelLength>10</ModelLength>
                <LengthUnits>METER</LengthUnits>
                <Scale>10</Scale>
                <InheritedFromParentAgentType>true</InheritedFromParentAgentType>
            </ScaleRuler>
            <CurrentLevel>1587636074193</CurrentLevel>
            <ConnectionsId>1468837390393</ConnectionsId>
            <Variables>
                <Variable Class="Parameter">
                    <Id>1468837390430</Id>
                    <Name><![CDATA[radar]]></Name>
                    <X>50</X><Y>50</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <Properties SaveInSnapshot="true" ModificatorType="STATIC">
                        <Type><![CDATA[Radar]]></Type>
                        <UnitType><![CDATA[NONE]]></UnitType>
                        <SdArray>false</SdArray>
                        <ParameterEditor>
                            <Id>0</Id>
                            <EditorContolType>TEXT_BOX</EditorContolType>
                            <MinSliderValue><![CDATA[0]]></MinSliderValue>
                            <MaxSliderValue><![CDATA[100]]></MaxSliderValue>
                            <DelimeterType>NO_DELIMETER</DelimeterType>
                        </ParameterEditor>
                    </Properties>
                </Variable>
                <Variable Class="Parameter">
                    <Id>1468837390431</Id>
                    <Name><![CDATA[target]]></Name>
                    <X>50</X><Y>100</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <Properties SaveInSnapshot="true" ModificatorType="STATIC">
                        <Type><![CDATA[Bomber]]></Type>
                        <UnitType><![CDATA[NONE]]></UnitType>
                        <SdArray>false</SdArray>
                        <ParameterEditor>
                            <Id>0</Id>
                            <EditorContolType>TEXT_BOX</EditorContolType>
                            <MinSliderValue><![CDATA[0]]></MinSliderValue>
                            <MaxSliderValue><![CDATA[100]]></MaxSliderValue>
                            <DelimeterType>NO_DELIMETER</DelimeterType>
                        </ParameterEditor>
                    </Properties>
                </Variable>
            </Variables>
            <StatechartElements>
                <StatechartElement Class="State" ParentState="ROOT_NODE">
                    <Id>1468837916267</Id>
                    <Name><![CDATA[Flying]]></Name>
                    <X>100</X><Y>140</Y>
                    <Label><X>10</X><Y>10</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <Properties Width="100" Height="30">
                        <EntryAction><![CDATA[moveTo( target.getX(), target.getY(), target.getZ() );]]></EntryAction>
                        <FillColor/>
                    </Properties>
                </StatechartElement>
                <StatechartElement Class="FinalState" ParentState="ROOT_NODE">
                    <Id>1468838147019</Id>
                    <Name><![CDATA[Exploded]]></Name>
                    <X>150</X><Y>270</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <Properties>
                        <Action><![CDATA[radar.guidedmissiles.remove( this );
main.remove_missiles(this); ]]></Action>
                    </Properties>
                </StatechartElement>
                <StatechartElement Class="EntryPoint" ParentState="ROOT_NODE">
                    <Id>1468837906320</Id>
                    <Name><![CDATA[statechart]]></Name>
                    <X>150</X><Y>100</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <Points>
                        <Point><X>0</X><Y>0</Y></Point>
                        <Point><X>0</X><Y>40</Y></Point>
                    </Points>
                    <Properties Target="1468837916267">
                        <Action><![CDATA[setXYZ(radar.getX(), radar.getY(), radar.getZ());]]></Action>
                    </Properties>
                </StatechartElement>
                <StatechartElement Class="Transition" ParentState="ROOT_NODE">
                    <Id>1468837925873</Id>
                    <Name><![CDATA[Adjust]]></Name>
                    <X>190</X><Y>170</Y>
                    <Label><X>10</X><Y>25</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <Points>
                        <Point><X>0</X><Y>0</Y></Point>
                        <Point><X>0</X><Y>40</Y></Point>
                        <Point><X>60</X><Y>40</Y></Point>
                        <Point><X>60</X><Y>-20</Y></Point>
                        <Point><X>10</X><Y>-20</Y></Point>
                    </Points>
                    <IconOffset>20.0</IconOffset>
                    <Properties Source="1468837916267" Target="1468837916267" Trigger="timeout">
                        <Timeout Class="CodeUnitValue">
                            <Code><![CDATA[0.05]]></Code>
                            <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                        </Timeout>
                        <Condition><![CDATA[true]]></Condition>
                        <Rate Class="CodeUnitValue">
                            <Code><![CDATA[1]]></Code>
                            <Unit Class="RateUnits"><![CDATA[PER_SECOND]]></Unit>
                        </Rate>
                        <MessageType><![CDATA[Object]]></MessageType>
                        <DefaultTransition>true</DefaultTransition>
                        <FilterType><![CDATA[unconditionally]]></FilterType>
                        <EqualsExpression><![CDATA["text"]]></EqualsExpression>
                        <SatisfiesExpression><![CDATA[true]]></SatisfiesExpression>
                    </Properties>
                </StatechartElement>
                <StatechartElement Class="Transition" ParentState="ROOT_NODE">
                    <Id>1468838140603</Id>
                    <Name><![CDATA[AtTarget]]></Name>
                    <X>150</X><Y>170</Y>
                    <Label><X>5</X><Y>60</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <Points>
                        <Point><X>0</X><Y>0</Y></Point>
                        <Point><X>0</X><Y>92</Y></Point>
                    </Points>
                    <IconOffset>20.0</IconOffset>
                    <Properties Source="1468837916267" Target="1468838147019" Trigger="condition">
                        <Action><![CDATA[deliver( "You are destroyed", target );]]></Action>
                        <Timeout Class="CodeUnitValue">
                            <Code><![CDATA[1]]></Code>
                            <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                        </Timeout>
                        <Condition><![CDATA[distanceTo(target)<10]]></Condition>
                        <Rate Class="CodeUnitValue">
                            <Code><![CDATA[1]]></Code>
                            <Unit Class="RateUnits"><![CDATA[PER_SECOND]]></Unit>
                        </Rate>
                        <MessageType><![CDATA[Object]]></MessageType>
                        <DefaultTransition>true</DefaultTransition>
                        <FilterType><![CDATA[unconditionally]]></FilterType>
                        <EqualsExpression><![CDATA["text"]]></EqualsExpression>
                        <SatisfiesExpression><![CDATA[true]]></SatisfiesExpression>
                    </Properties>
                </StatechartElement>
                <StatechartElement Class="Transition" ParentState="ROOT_NODE">
                    <Id>1468838255047</Id>
                    <Name><![CDATA[OutOfRange]]></Name>
                    <X>100</X><Y>150</Y>
                    <Label><X>-28</X><Y>80</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <Points>
                        <Point><X>0</X><Y>0</Y></Point>
                        <Point><X>-30</X><Y>0</Y></Point>
                        <Point><X>-30</X><Y>120</Y></Point>
                        <Point><X>42</X><Y>120</Y></Point>
                    </Points>
                    <IconOffset>80.0</IconOffset>
                    <Properties Source="1468837916267" Target="1468838147019" Trigger="condition">
                        <Timeout Class="CodeUnitValue">
                            <Code><![CDATA[1]]></Code>
                            <Unit Class="TimeUnits"><![CDATA[SECOND]]></Unit>
                        </Timeout>
                        <Condition><![CDATA[distanceTo(radar)>radar.range]]></Condition>
                        <Rate Class="CodeUnitValue">
                            <Code><![CDATA[1]]></Code>
                            <Unit Class="RateUnits"><![CDATA[PER_SECOND]]></Unit>
                        </Rate>
                        <MessageType><![CDATA[Object]]></MessageType>
                        <DefaultTransition>true</DefaultTransition>
                        <FilterType><![CDATA[unconditionally]]></FilterType>
                        <EqualsExpression><![CDATA["text"]]></EqualsExpression>
                        <SatisfiesExpression><![CDATA[true]]></SatisfiesExpression>
                    </Properties>
                </StatechartElement>
            </StatechartElements>
            <AgentLinks>
                <AgentLink>
                    <Id>1468837390393</Id>
                    <Name><![CDATA[connections]]></Name>
                    <X>50</X><Y>-50</Y>
                    <Label><X>15</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <HandleReceiveInConnections>false</HandleReceiveInConnections>
                    <AgentLinkType>COLLECTION_OF_LINKS</AgentLinkType>
                    <AgentLinkBidirectional>true</AgentLinkBidirectional>
                    <MessageType><![CDATA[Object]]></MessageType>
                    <StatechartReference>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[Missile]]></ClassName>
                        <ItemName><![CDATA[statechart]]></ItemName>
                    </StatechartReference>
                    <LineStyle>SOLID</LineStyle>
                    <LineWidth>1</LineWidth>
                    <LineColor>-16777216</LineColor>
                    <LineZOrder>UNDER_AGENTS</LineZOrder>
                    <LineArrow>NONE</LineArrow>
                    <LineArrowPosition>END</LineArrowPosition>
                </AgentLink>
            </AgentLinks>

            <ContainerLinks>
                <ContainerLink>
                    <Id>1468837390442</Id>
                    <Name><![CDATA[main]]></Name>
                    <X>50</X><Y>-100</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>false</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>true</ShowLabel>
                    <ActiveObjectClass>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[Main]]></ClassName>
                    </ActiveObjectClass>
                </ContainerLink>
            </ContainerLinks>

            <Presentation>
                <Level>
                    <Id>1587636074193</Id>
                    <Name><![CDATA[level]]></Name>
                    <X>0</X><Y>0</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <Z>0</Z>
                    <LevelVisibility>ALWAYS_SHOW</LevelVisibility>

            <Presentation>
                <Figure3D>
                    <Id>1468837390429</Id>
                    <Name><![CDATA[rocket]]></Name>
                    <X>0</X><Y>0</Y>
                    <Label><X>0</X><Y>-10</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <X>0</X><Y>0</Y><Z>0</Z>
                    <Label><X>0</X><Y>-10</Y></Label>
                    <ResourceReference>
                        <PackageName><![CDATA[air_defense_system_4]]></PackageName>
                        <ClassName><![CDATA[3d/rocket.dae]]></ClassName>
                    </ResourceReference>
                    <ColorTable>
                        <ColorMapping>
                            <Name><![CDATA[MA_Rocket_part_2]]></Name>
                            <OriginalColor>-3407872</OriginalColor>
                        </ColorMapping>
                        <ColorMapping>
                            <Name><![CDATA[MA_Rocket_part_3]]></Name>
                            <OriginalColor>-1973791</OriginalColor>
                        </ColorMapping>
                        <ColorMapping>
                            <Name><![CDATA[MA_Rocket_part_1]]></Name>
                            <OriginalColor>-3407872</OriginalColor>
                        </ColorMapping>
                    </ColorTable>
                    <AutoScale>true</AutoScale>
                    <Scale>4.0</Scale>
                    <Rotation>0.0</Rotation>
                    <AxisOrder>XYZ_AXIS_ORDER</AxisOrder>
                    <ApplyShading>true</ApplyShading>
                    <InternalLighting>OFF</InternalLighting>
                    <IgnoreSceneLights>false</IgnoreSceneLights>
                </Figure3D>
            </Presentation>

                </Level>
            </Presentation>

        </ActiveObjectClass>
    </ActiveObjectClasses>
    <DifferentialEquationsMethod>EULER</DifferentialEquationsMethod>
    <MixedEquationsMethod>RK45_NEWTON</MixedEquationsMethod>
    <AlgebraicEquationsMethod>MODIFIED_NEWTON</AlgebraicEquationsMethod>
    <AbsoluteAccuracy>1.0E-5</AbsoluteAccuracy>
    <FixedTimeStep>0.001</FixedTimeStep>
    <RelativeAccuracy>1.0E-5</RelativeAccuracy>
    <TimeAccuracy>1.0E-5</TimeAccuracy>
    <Frame>
        <Width>1000</Width>
        <Height>600</Height>
    </Frame>
    <Database>
        <Logging>false</Logging>
        <AutoExport>false</AutoExport>
        <ShutdownCompact>false</ShutdownCompact>
        <ImportSettings>
        </ImportSettings>
        <ExportSettings>
        </ExportSettings>
    </Database>

    <RunConfiguration ActiveObjectClassId="1466586910703">
        <Id>1521547217750</Id>
        <Name><![CDATA[RunConfiguration]]></Name>
        <MaximumMemory>512</MaximumMemory>
        <ModelTimeProperties>
            <StopOption><![CDATA[Stop at specified time]]></StopOption>
            <InitialDate><![CDATA[1466553600000]]></InitialDate>
            <InitialTime><![CDATA[0.0]]></InitialTime>
            <FinalDate><![CDATA[1469145600000]]></FinalDate>
            <FinalTime><![CDATA[100.0]]></FinalTime>
        </ModelTimeProperties>
        <AnimationProperties>
            <StopNever>true</StopNever>
            <ExecutionMode>realTimeScaled</ExecutionMode>
            <RealTimeScale>1.0</RealTimeScale>
            <EnableZoomAndPanning>true</EnableZoomAndPanning>
            <EnableDeveloperPanel>false</EnableDeveloperPanel>
            <ShowDeveloperPanelOnStart>false</ShowDeveloperPanelOnStart>
        </AnimationProperties>
        <Inputs>
        </Inputs>
        <Outputs>
        </Outputs>
    </RunConfiguration>
    <Experiments>
        <!--   =========   Simulation Experiment   ========  -->
        <SimulationExperiment ActiveObjectClassId="1466586910703">
            <Id>1466586910716</Id>
            <Name><![CDATA[Simulation]]></Name>
            <CommandLineArguments><![CDATA[]]></CommandLineArguments>
            <MaximumMemory>256</MaximumMemory>
            <RandomNumberGenerationType>fixedSeed</RandomNumberGenerationType>
            <CustomGeneratorCode>new Random()</CustomGeneratorCode>
            <SeedValue>1</SeedValue>
            <SelectionModeForSimultaneousEvents>LIFO</SelectionModeForSimultaneousEvents>
            <VmArgs><![CDATA[]]></VmArgs>
            <LoadRootFromSnapshot>false</LoadRootFromSnapshot>

            <Presentation>
                <Text>
                    <Id>1466586910717</Id>
                    <Name><![CDATA[text]]></Name>
                    <X>40</X><Y>30</Y>
                    <Label><X>10</X><Y>0</Y></Label>
                    <PublicFlag>true</PublicFlag>
                    <PresentationFlag>true</PresentationFlag>
                    <ShowLabel>false</ShowLabel>
                    <DrawMode>SHAPE_DRAW_2D3D</DrawMode>
                    <EmbeddedIcon>false</EmbeddedIcon>
                    <Z>0</Z>
                    <Rotation>0.0</Rotation>
                    <Color>-12490271</Color>
                    <Text><![CDATA[Air Defense System]]></Text>
                    <Font>
                        <Name>SansSerif</Name>
                        <Size>24</Size>
                        <Style>0</Style>
                    </Font>
                    <Alignment>LEFT</Alignment>
                </Text>
            </Presentation>

            <Parameters>
            </Parameters>
            <PresentationProperties>
                <EnableZoomAndPanning>true</EnableZoomAndPanning>
                <ExecutionMode><![CDATA[realTimeScaled]]></ExecutionMode>
                <Title><![CDATA[Air Defense System : Simulation]]></Title>
                <EnableDeveloperPanel>true</EnableDeveloperPanel>
                <ShowDeveloperPanelOnStart>false</ShowDeveloperPanelOnStart>
                <RealTimeScale>1.0</RealTimeScale>
            </PresentationProperties>
            <ModelTimeProperties>
                <StopOption><![CDATA[Never]]></StopOption>
                <InitialDate><![CDATA[1466553600000]]></InitialDate>
                <InitialTime><![CDATA[0.0]]></InitialTime>
                <FinalDate><![CDATA[1469145600000]]></FinalDate>
                <FinalTime><![CDATA[100.0]]></FinalTime>
            </ModelTimeProperties>
            <BypassInitialScreen>true</BypassInitialScreen>
        </SimulationExperiment>
    </Experiments>
    <ModelResources>
        <Resource>
            <Path><![CDATA[3d/house.dae]]></Path>
            <ReferencedFromUserCode>false</ReferencedFromUserCode>
        </Resource>
        <Resource>
            <Path><![CDATA[3d/fire.dae]]></Path>
            <ReferencedFromUserCode>false</ReferencedFromUserCode>
        </Resource>
        <Resource>
            <Path><![CDATA[3d/bomber.dae]]></Path>
            <ReferencedFromUserCode>false</ReferencedFromUserCode>
        </Resource>
        <Resource>
            <Path><![CDATA[3d/bomb.dae]]></Path>
            <ReferencedFromUserCode>false</ReferencedFromUserCode>
        </Resource>
        <Resource>
            <Path><![CDATA[3d/patriot.dae]]></Path>
            <ReferencedFromUserCode>false</ReferencedFromUserCode>
        </Resource>
        <Resource>
            <Path><![CDATA[3d/rocket.dae]]></Path>
            <ReferencedFromUserCode>false</ReferencedFromUserCode>
        </Resource>
    </ModelResources>
    <RequiredLibraryReference>
        <LibraryName><![CDATA[com.anylogic.libraries.processmodeling]]></LibraryName>
        <VersionMajor>8</VersionMajor>
        <VersionMinor>0</VersionMinor>
        <VersionBuild>5</VersionBuild>
    </RequiredLibraryReference>
    <RequiredLibraryReference>
        <LibraryName><![CDATA[com.anylogic.libraries.modules.markup_descriptors]]></LibraryName>
        <VersionMajor>1</VersionMajor>
        <VersionMinor>0</VersionMinor>
        <VersionBuild>0</VersionBuild>
    </RequiredLibraryReference>
    <CloudModelUuid><![CDATA[711052e0-0c26-4641-a771-bcbc10344360]]></CloudModelUuid>
</Model>
</AnyLogicWorkspace>