blob: 89fd79253698e72bc7e980e39ba8b8a38839b517 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:RTCppProperties="http:///schemas/RTCppProperties/_u3AaIJ9ZEeWtHskdthI1Bg/10" xmlns:UMLRealTime="http://www.eclipse.org/papyrus/umlrt" xmlns:UMLRealTimeStateMach="http://www.eclipse.org/papyrus/umlrt/statemachine" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http:///schemas/RTCppProperties/_u3AaIJ9ZEeWtHskdthI1Bg/10 pathmap://UMLRT_CPP/RTCppProperties.profile.uml#_u3BoQJ9ZEeWtHskdthI1Bg">
<uml:Model xmi:id="_McQnIJhcEeW6kuh42ZvZkQ" name="GetArguments">
<packageImport xmi:type="uml:PackageImport" xmi:id="_iTNsUJhcEeW6kuh42ZvZkQ">
<importedPackage xmi:type="uml:Model" href="pathmap://PapyrusC_Cpp_LIBRARIES/AnsiCLibrary.uml#_DV8nkBv8EduZN5aJJITI5w"/>
</packageImport>
<packageImport xmi:type="uml:PackageImport" xmi:id="_inU7IJhcEeW6kuh42ZvZkQ">
<importedPackage xmi:type="uml:Model" href="pathmap://UMLRTRTSLIB/UMLRT-RTS.uml#_mPjAgGXmEeS_4daqvwyFrg"/>
</packageImport>
<packagedElement xmi:type="uml:Class" xmi:id="_kailMJhcEeW6kuh42ZvZkQ" name="Top" classifierBehavior="_nwo-UJhcEeW6kuh42ZvZkQ" isActive="true">
<ownedAttribute xmi:type="uml:Port" xmi:id="_PHUNQJheEeW6kuh42ZvZkQ" name="log" visibility="protected" isOrdered="true" aggregation="composite" isBehavior="true" isService="false">
<type xmi:type="uml:Collaboration" href="pathmap://UMLRTRTSLIB/UMLRT-RTS.uml#_6kIb0IeXEeSVyrlWP4nYew"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="_2vWAAJhhEeW6kuh42ZvZkQ" name="wasDebug">
<type xmi:type="uml:PrimitiveType" href="pathmap://PapyrusC_Cpp_LIBRARIES/AnsiCLibrary.uml#_vAIV4I7PEdySGvm5GN66HA"/>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="_-udLoJhhEeW6kuh42ZvZkQ"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="_1lOSEJhoEeW6kuh42ZvZkQ" name="below1" visibility="protected" type="_WD4yQJhoEeW6kuh42ZvZkQ" isOrdered="true" aggregation="composite">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_1lSjgZhoEeW6kuh42ZvZkQ" value="1"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_1lTKkJhoEeW6kuh42ZvZkQ" value="1"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="_A_7n4KW8EeWN9JTg-IMukA" name="dbg" type="_-BZxAJhkEeW6kuh42ZvZkQ">
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="_FHEcYKW8EeWN9JTg-IMukA"/>
</ownedAttribute>
<ownedBehavior xmi:type="uml:StateMachine" xmi:id="_nwo-UJhcEeW6kuh42ZvZkQ" name="StateMachine" isReentrant="false">
<region xmi:type="uml:Region" xmi:id="_nwwTEJhcEeW6kuh42ZvZkQ" name="Region">
<transition xmi:type="uml:Transition" xmi:id="_xnB0oJhcEeW6kuh42ZvZkQ" name="initial" source="_nw1LkJhcEeW6kuh42ZvZkQ" target="_vPgjoJhcEeW6kuh42ZvZkQ">
<effect xmi:type="uml:OpaqueBehavior" xmi:id="_v2tREJhdEeW6kuh42ZvZkQ" name="initial">
<ownedComment xmi:type="uml:Comment" xmi:id="_wzPtoJhkEeW6kuh42ZvZkQ" annotatedElement="_wzPtoJhkEeW6kuh42ZvZkQ">
<body>UMLRT-CODEGEN:platform:/resource/GetArguments/GetArguments.uml#_sC6LIJhkEeW6kuh42ZvZkQ
#define rtdata ( (void *)msg->getParam( 0 ) )
// generated code ends
log.log( &quot;In Top, &quot;);
if ( DBG::isDebug ) {
log.log(&quot;Debug is ON!&quot;);
} else {
log.log(&quot;Debug is OFF!&quot;);
}
// the following code has been generated
#undef rtdata
// generated code ends
}</body>
</ownedComment>
<ownedParameter xmi:type="uml:Parameter" xmi:id="_ZKeAUJh2EeW6kuh42ZvZkQ" name="msg"/>
<language>C++</language>
<body>int numArgs = 0;
DBG::isDebug = false;
DBG::printTime = false;
DBG::printRelTime = false;
numArgs = UMLRTMain::getArgCount();
for ( int i = 0; i &lt; numArgs; i++ ) {
switch ( UMLRTMain::getArg(i)[0] ) {
case 'D' :
case 'd' :
DBG::isDebug = true;
break;
case 'T' :
case 't' :
DBG::printTime = true;
if ( DBG::isDebug ) {
log.log(&quot;Should print time!&quot;);
}
break;
case 'R' :
case 'r' :
DBG::printRelTime = true;
if ( DBG::isDebug ) {
log.log(&quot;Should print relative time!&quot;);
}
break;
}
}
if ( DBG::isDebug ) {
log.show (&quot;Number of arguments: &quot;);
log.log( numArgs );
for ( int i = 0; i &lt; numArgs; i++ ) {
log.show( &quot;Args(&quot; );
log.show( i );
log.show( &quot; ) = &quot; );
(log.log( UMLRTMain::getArg( i ) ));
}
}</body>
</effect>
</transition>
<subvertex xmi:type="uml:Pseudostate" xmi:id="_nw1LkJhcEeW6kuh42ZvZkQ">
<name xsi:nil="true"/>
</subvertex>
<subvertex xmi:type="uml:State" xmi:id="_vPgjoJhcEeW6kuh42ZvZkQ" name="Running">
<entry xmi:type="uml:OpaqueBehavior" xmi:id="_sC6LIJhkEeW6kuh42ZvZkQ" name="Running_EN">
<ownedParameter xmi:type="uml:Parameter" xmi:id="_ZKa9AJh2EeW6kuh42ZvZkQ" name="msg"/>
<language>C++</language>
<body>log.log( &quot;In Top, &quot;);
if ( DBG::isDebug ) {
log.log(&quot;Debug is ON!&quot;);
} else {
log.log(&quot;Debug is OFF!&quot;);
}</body>
</entry>
</subvertex>
</region>
</ownedBehavior>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_-BZxAJhkEeW6kuh42ZvZkQ" name="DBG">
<ownedAttribute xmi:type="uml:Property" xmi:id="_GPYfEJhlEeW6kuh42ZvZkQ" name="isDebug" visibility="public" isLeaf="true" isStatic="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://PapyrusC_Cpp_LIBRARIES/AnsiCLibrary.uml#_vAIV4I7PEdySGvm5GN66HA"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="_utrfkJh1EeW6kuh42ZvZkQ" name="printTime" isLeaf="true" isStatic="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://PapyrusC_Cpp_LIBRARIES/AnsiCLibrary.uml#_vAIV4I7PEdySGvm5GN66HA"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="_791HAJh1EeW6kuh42ZvZkQ" name="printRelTime" isLeaf="true" isStatic="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://PapyrusC_Cpp_LIBRARIES/AnsiCLibrary.uml#_vAIV4I7PEdySGvm5GN66HA"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_WD4yQJhoEeW6kuh42ZvZkQ" name="Below1" isActive="true">
<ownedAttribute xmi:type="uml:Port" xmi:id="_rXDN4JhoEeW6kuh42ZvZkQ" name="log" visibility="protected" isOrdered="true" aggregation="composite" isBehavior="true" isService="false">
<type xmi:type="uml:Collaboration" href="pathmap://UMLRTRTSLIB/UMLRT-RTS.uml#_6kIb0IeXEeSVyrlWP4nYew"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="_Zn2LwJhpEeW6kuh42ZvZkQ" name="dbg" visibility="private" type="_-BZxAJhkEeW6kuh42ZvZkQ" aggregation="shared"/>
<ownedBehavior xmi:type="uml:StateMachine" xmi:id="_gGwlYJhoEeW6kuh42ZvZkQ" name="StateMachine" isReentrant="false">
<region xmi:type="uml:Region" xmi:id="_gGwlYZhoEeW6kuh42ZvZkQ" name="Region">
<transition xmi:type="uml:Transition" xmi:id="_gGwlYphoEeW6kuh42ZvZkQ" name="initial" source="_gGwlZphoEeW6kuh42ZvZkQ" target="_gGwlZ5hoEeW6kuh42ZvZkQ">
<effect xmi:type="uml:OpaqueBehavior" xmi:id="_gGwlY5hoEeW6kuh42ZvZkQ" name="initial">
<ownedComment xmi:type="uml:Comment" xmi:id="_gGwlZJhoEeW6kuh42ZvZkQ" annotatedElement="_gGwlZJhoEeW6kuh42ZvZkQ">
<body>UMLRT-CODEGEN:platform:/resource/GetArguments/GetArguments.uml#_gGwlaJhoEeW6kuh42ZvZkQ
#define rtdata ( (void *)msg->getParam( 0 ) )
// generated code ends
log.show( &quot;In Below1, &quot;);
if ( DBG::isDebug ) {
log.log(&quot;Debug is ON!&quot;);
if (DBG::printTime) {
log.show(&quot;printTime is true&quot;);
} else {
log.show(&quot;printTime is false&quot;);
}
if (DBG::printRelTime) {
log.show(&quot;printRelTime is true&quot;);
} else {
log.show(&quot;printRelTime is false&quot;);
}
} else {
log.log(&quot;Debug is OFF!&quot;);
}
// the following code has been generated
#undef rtdata
// generated code ends
}</body>
</ownedComment>
<ownedParameter xmi:type="uml:Parameter" xmi:id="_tHSeoJh3EeW6kuh42ZvZkQ" name="msg"/>
<language>C++</language>
<body>log.log(&quot;Below1 initializing&quot;);</body>
</effect>
</transition>
<subvertex xmi:type="uml:Pseudostate" xmi:id="_gGwlZphoEeW6kuh42ZvZkQ">
<name xsi:nil="true"/>
</subvertex>
<subvertex xmi:type="uml:State" xmi:id="_gGwlZ5hoEeW6kuh42ZvZkQ" name="Running">
<entry xmi:type="uml:OpaqueBehavior" xmi:id="_gGwlaJhoEeW6kuh42ZvZkQ" name="Running_EN">
<ownedParameter xmi:type="uml:Parameter" xmi:id="_tHPbUJh3EeW6kuh42ZvZkQ" name="msg"/>
<language>C++</language>
<body>log.show( &quot;In Below1, &quot;);
if ( DBG::isDebug ) {
log.log(&quot;Debug is ON!&quot;);
if (DBG::printTime) {
log.log(&quot;printTime is true&quot;);
} else {
log.log(&quot;printTime is false&quot;);
}
if (DBG::printRelTime) {
log.log(&quot;printRelTime is true&quot;);
} else {
log.log(&quot;printRelTime is false&quot;);
}
} else {
log.log(&quot;Debug is OFF!&quot;);
}</body>
</entry>
</subvertex>
</region>
</ownedBehavior>
</packagedElement>
<profileApplication xmi:type="uml:ProfileApplication" xmi:id="_NAR6MJhcEeW6kuh42ZvZkQ">
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_NAWysJhcEeW6kuh42ZvZkQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/umlrt#/"/>
</eAnnotations>
<appliedProfile xmi:type="uml:Profile" href="pathmap://UML_RT_PROFILE/uml-rt.profile.uml#_1h74oEeVEeO0lv5O1DTHOQ"/>
</profileApplication>
<profileApplication xmi:type="uml:ProfileApplication" xmi:id="_NGrdIJhcEeW6kuh42ZvZkQ">
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_NGsrQJhcEeW6kuh42ZvZkQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/umlrt/statemachine#/"/>
</eAnnotations>
<appliedProfile xmi:type="uml:Profile" href="pathmap://UML_RT_PROFILE/UMLRealTimeSM-addendum.profile.uml#_KLcn0FDtEeOA4ecmvfqvaw"/>
</profileApplication>
<profileApplication xmi:type="uml:ProfileApplication" xmi:id="_KOH0QJhfEeW6kuh42ZvZkQ">
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_erqGYKW7EeWN9JTg-IMukA" source="PapyrusVersion">
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_erqGYaW7EeWN9JTg-IMukA" key="Version" value="0.0.11"/>
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_erqGYqW7EeWN9JTg-IMukA" key="Comment" value=""/>
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_erqGY6W7EeWN9JTg-IMukA" key="Copyright" value=""/>
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_erqGZKW7EeWN9JTg-IMukA" key="Date" value="2015-12-10"/>
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_erqGZaW7EeWN9JTg-IMukA" key="Author" value=""/>
</eAnnotations>
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_KOIbUJhfEeW6kuh42ZvZkQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage" href="pathmap://UMLRT_CPP/RTCppProperties.profile.uml#_u3BoQJ9ZEeWtHskdthI1Bg"/>
</eAnnotations>
<appliedProfile xmi:type="uml:Profile" href="pathmap://UMLRT_CPP/RTCppProperties.profile.uml#_vl5LALs8EeSTjNEQkASznQ"/>
</profileApplication>
<profileApplication xmi:type="uml:ProfileApplication" xmi:id="_4cJgEJhhEeW6kuh42ZvZkQ">
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_4cJgEZhhEeW6kuh42ZvZkQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/>
</eAnnotations>
<appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/>
</profileApplication>
</uml:Model>
<UMLRealTime:Capsule xmi:id="_koBAgJhcEeW6kuh42ZvZkQ" base_Class="_kailMJhcEeW6kuh42ZvZkQ"/>
<UMLRealTimeStateMach:RTPseudostate xmi:id="_nw5dAJhcEeW6kuh42ZvZkQ" base_Pseudostate="_nw1LkJhcEeW6kuh42ZvZkQ"/>
<UMLRealTimeStateMach:RTRegion xmi:id="_nw7SMJhcEeW6kuh42ZvZkQ" base_Region="_nwwTEJhcEeW6kuh42ZvZkQ"/>
<UMLRealTimeStateMach:RTStateMachine xmi:id="_nw8gUJhcEeW6kuh42ZvZkQ" base_StateMachine="_nwo-UJhcEeW6kuh42ZvZkQ"/>
<UMLRealTimeStateMach:RTState xmi:id="_vPkOAJhcEeW6kuh42ZvZkQ" base_State="_vPgjoJhcEeW6kuh42ZvZkQ"/>
<UMLRealTime:RTPort xmi:id="_PHX3oJheEeW6kuh42ZvZkQ" isWired="false" base_Port="_PHUNQJheEeW6kuh42ZvZkQ"/>
<RTCppProperties:CapsuleProperties xmi:id="_OSXFwJhfEeW6kuh42ZvZkQ" headerPreface="#include &quot;umlrtmain.hh&quot;&#xA;" base_Class="_kailMJhcEeW6kuh42ZvZkQ"/>
<UMLRealTime:Capsule xmi:id="_WEgdUJhoEeW6kuh42ZvZkQ" base_Class="_WD4yQJhoEeW6kuh42ZvZkQ"/>
<UMLRealTimeStateMach:RTStateMachine xmi:id="_gG020JhoEeW6kuh42ZvZkQ" base_StateMachine="_gGwlYJhoEeW6kuh42ZvZkQ"/>
<UMLRealTimeStateMach:RTRegion xmi:id="_gG1d4JhoEeW6kuh42ZvZkQ" base_Region="_gGwlYZhoEeW6kuh42ZvZkQ"/>
<UMLRealTimeStateMach:RTPseudostate xmi:id="_gG2E8JhoEeW6kuh42ZvZkQ" base_Pseudostate="_gGwlZphoEeW6kuh42ZvZkQ"/>
<UMLRealTimeStateMach:RTState xmi:id="_gG2sAJhoEeW6kuh42ZvZkQ" base_State="_gGwlZ5hoEeW6kuh42ZvZkQ"/>
<UMLRealTime:RTPort xmi:id="_rXG4QJhoEeW6kuh42ZvZkQ" isWired="false" base_Port="_rXDN4JhoEeW6kuh42ZvZkQ"/>
<UMLRealTime:CapsulePart xmi:id="_1lSjgJhoEeW6kuh42ZvZkQ" base_Property="_1lOSEJhoEeW6kuh42ZvZkQ"/>
</xmi:XMI>