blob: 3e178575213625cafe4aca5b893cba4d977923ce [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="_THyPAKXFEeWN9JTg-IMukA" name="ClassUtility">
<packageImport xmi:type="uml:PackageImport" xmi:id="_eV2p8KXFEeWN9JTg-IMukA">
<importedPackage xmi:type="uml:Model" href="pathmap://PapyrusC_Cpp_LIBRARIES/AnsiCLibrary.uml#_DV8nkBv8EduZN5aJJITI5w"/>
</packageImport>
<packageImport xmi:type="uml:PackageImport" xmi:id="_eni24KXFEeWN9JTg-IMukA">
<importedPackage xmi:type="uml:Model" href="pathmap://UMLRTRTSLIB/UMLRT-RTS.uml#_mPjAgGXmEeS_4daqvwyFrg"/>
</packageImport>
<packageImport xmi:type="uml:PackageImport" xmi:id="_e7UHcKXFEeWN9JTg-IMukA">
<importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
</packageImport>
<packagedElement xmi:type="uml:Class" xmi:id="_ADu50KXGEeWN9JTg-IMukA" name="UTILS">
<ownedAttribute xmi:type="uml:Property" xmi:id="_OqV94KXGEeWN9JTg-IMukA" name="debugStatus" visibility="protected" isStatic="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="_U_x18KXGEeWN9JTg-IMukA" name="printTimeKind" visibility="protected" isStatic="true" type="_OUmaMKfxEeWQ0-isBiruBg"/>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_gy-E4KfvEeWQ0-isBiruBg" name="isDebug" specification="_okReAKfvEeWQ0-isBiruBg">
<language>C++</language>
<body>return(debugStatus);
</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_aDjKEKfwEeWQ0-isBiruBg" name="setDebug" specification="_yt2goKfwEeWQ0-isBiruBg">
<language>C++</language>
<body>debugStatus = dbg;
/**
* This function will always return true as it can not fail.
*/
return true;
</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_bRIFkKfyEeWQ0-isBiruBg" name="setPrintType" specification="_4Vx9AKfxEeWQ0-isBiruBg">
<language>C++</language>
<body>printTimeKind = printType;
/**
* This function will always return true as it can not fail.
*/
return true;
</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_psMA8KfyEeWQ0-isBiruBg" name="getPrintKind" specification="_DiEPQKfyEeWQ0-isBiruBg">
<language>C++</language>
<body>return( printTimeKind );
</body>
</ownedBehavior>
<ownedOperation xmi:type="uml:Operation" xmi:id="_okReAKfvEeWQ0-isBiruBg" name="isDebug" isStatic="true" method="_gy-E4KfvEeWQ0-isBiruBg">
<ownedParameter xmi:type="uml:Parameter" xmi:id="_uG7OQKfvEeWQ0-isBiruBg" direction="return" effect="read">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="_yt2goKfwEeWQ0-isBiruBg" name="setDebug" isStatic="true" method="_aDjKEKfwEeWQ0-isBiruBg">
<ownedParameter xmi:type="uml:Parameter" xmi:id="_yt2goafwEeWQ0-isBiruBg" name="dbg" effect="update">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="_BL7fQKirEeWWQdUXTI0E6Q" direction="return" effect="read">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="_4Vx9AKfxEeWQ0-isBiruBg" name="setPrintType" isStatic="true" method="_bRIFkKfyEeWQ0-isBiruBg">
<ownedParameter xmi:type="uml:Parameter" xmi:id="_4Vx9AafxEeWQ0-isBiruBg" name="printType" type="_OUmaMKfxEeWQ0-isBiruBg"/>
<ownedParameter xmi:type="uml:Parameter" xmi:id="_9oGMIKiqEeWWQdUXTI0E6Q" direction="return" effect="read">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="_DiEPQKfyEeWQ0-isBiruBg" name="getPrintKind" isStatic="true" method="_psMA8KfyEeWQ0-isBiruBg">
<ownedParameter xmi:type="uml:Parameter" xmi:id="_DiEPQafyEeWQ0-isBiruBg" type="_OUmaMKfxEeWQ0-isBiruBg" direction="return"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_4isU0KXGEeWN9JTg-IMukA" name="Top" classifierBehavior="_XyTygKXHEeWN9JTg-IMukA" isActive="true">
<ownedAttribute xmi:type="uml:Port" xmi:id="_EzpwIKXHEeWN9JTg-IMukA" 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="___pNMKf4EeWQ0-isBiruBg" name="utils" visibility="protected" type="_ADu50KXGEeWN9JTg-IMukA"/>
<ownedBehavior xmi:type="uml:StateMachine" xmi:id="_XyTygKXHEeWN9JTg-IMukA" name="StateMachine" isReentrant="false">
<region xmi:type="uml:Region" xmi:id="_XyXc4KXHEeWN9JTg-IMukA" name="Region">
<transition xmi:type="uml:Transition" xmi:id="_cHWgIKXHEeWN9JTg-IMukA" source="_XyZ5IKXHEeWN9JTg-IMukA" target="_ax9agKXHEeWN9JTg-IMukA">
<effect xmi:type="uml:OpaqueBehavior" xmi:id="_idwBgKXHEeWN9JTg-IMukA" name="topInItializing">
<language>C++</language>
<body>log.log(&quot;Top initializing.&quot;);
utils.setDebug(true);
utils.setPrintType(PrintNone);
// UTILS::setPrintType(PrintActual);
// UTILS::setPrintType(PrintDelta);
/**
Utils::debugStatus = true;
Utils::printActualTime = true;
Utils::printDeltaTime = false;
*/
</body>
</effect>
</transition>
<subvertex xmi:type="uml:Pseudostate" xmi:id="_XyZ5IKXHEeWN9JTg-IMukA">
<name xsi:nil="true"/>
</subvertex>
<subvertex xmi:type="uml:State" xmi:id="_ax9agKXHEeWN9JTg-IMukA" name="Running">
<entry xmi:type="uml:OpaqueBehavior" xmi:id="_mDLQEKXHEeWN9JTg-IMukA" name="topRunning">
<language>C++</language>
<body>log.log(&quot;Top Running.&quot;);
log.show( &quot;Debug is: &quot;);
if ( utils.isDebug() ) {
log.log( &quot;enabled.&quot; );
}else{
log.log( &quot;disabled.&quot; );
}
log.show( &quot;Timestamp kind is: &quot; );
switch ( utils.getPrintKind() ) {
case PrintNone :
log.log( &quot;no timestamp.&quot; );
break;
case PrintActual :
log.log( &quot;actual timestamp&quot; );
break;
case PrintDelta :
log.log( &quot;delta timestamp&quot; );
break;
default:
log.log( &quot;UNKONWN&quot; );
break;
}
/**
log.show(&quot;Utils::debugStatus = &quot;);
if (Utils::debugStatus) {
log.show( &quot; Debug Status : &quot;);
log.show(&quot;Utils:: printActualTime = &quot;);
if (Utils::printActualTime) {
log.log(&quot;true.&quot;);
}else{
log.log(&quot;false.&quot;);
}
log.show(&quot;Utils:: printDeltaTime = &quot;);
if (Utils::printDeltaTime) {
log.log(&quot;true.&quot;);
}else{
log.log(&quot;false.&quot;);
}
*/</body>
</entry>
</subvertex>
</region>
</ownedBehavior>
</packagedElement>
<packagedElement xmi:type="uml:Usage" xmi:id="_Bg1UgKXHEeWN9JTg-IMukA" client="_4isU0KXGEeWN9JTg-IMukA" supplier="_ADu50KXGEeWN9JTg-IMukA"/>
<packagedElement xmi:type="uml:Enumeration" xmi:id="_OUmaMKfxEeWQ0-isBiruBg" name="UtilsPrintKinds">
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_QzuSkKfyEeWQ0-isBiruBg" name="PrintNone"/>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_eb_UgKfxEeWQ0-isBiruBg" name="PrintActual"/>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_fdMS0KfxEeWQ0-isBiruBg" name="PrintDelta"/>
</packagedElement>
<packagedElement xmi:type="uml:Usage" xmi:id="_9YyKkKf2EeWQ0-isBiruBg" client="_ADu50KXGEeWN9JTg-IMukA" supplier="_OUmaMKfxEeWQ0-isBiruBg"/>
<packagedElement xmi:type="uml:Usage" xmi:id="_-ZWPsKf2EeWQ0-isBiruBg" client="_4isU0KXGEeWN9JTg-IMukA" supplier="_OUmaMKfxEeWQ0-isBiruBg"/>
<profileApplication xmi:type="uml:ProfileApplication" xmi:id="_TLjUsKXFEeWN9JTg-IMukA">
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_TLj7wKXFEeWN9JTg-IMukA" 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="_TMV-4KXFEeWN9JTg-IMukA">
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_TMV-4aXFEeWN9JTg-IMukA" 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="_X0EX8KXFEeWN9JTg-IMukA">
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_VvF-QKmQEeWtZctEI02BYg" source="PapyrusVersion">
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_VvF-QamQEeWtZctEI02BYg" key="Version" value="0.0.11"/>
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_VvF-QqmQEeWtZctEI02BYg" key="Comment" value=""/>
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_VvF-Q6mQEeWtZctEI02BYg" key="Copyright" value=""/>
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_VvF-RKmQEeWtZctEI02BYg" key="Date" value="2015-12-10"/>
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_VvF-RamQEeWtZctEI02BYg" key="Author" value=""/>
</eAnnotations>
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_X0E_AKXFEeWN9JTg-IMukA" 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>
</uml:Model>
<RTCppProperties:PassiveClassProperties xmi:id="_BHakYKXGEeWN9JTg-IMukA" headerEnding="&#xA;" base_Class="_ADu50KXGEeWN9JTg-IMukA" generateStateMachine="false" generateAssignmentOperator="false" generateCopyConstructor="false" generateDestructor="false" implementationType=""/>
<UMLRealTime:Capsule xmi:id="_4jK18KXGEeWN9JTg-IMukA" base_Class="_4isU0KXGEeWN9JTg-IMukA"/>
<UMLRealTime:RTPort xmi:id="_Ezv2wKXHEeWN9JTg-IMukA" isWired="false" base_Port="_EzpwIKXHEeWN9JTg-IMukA"/>
<UMLRealTimeStateMach:RTPseudostate xmi:id="_Xyc8cKXHEeWN9JTg-IMukA" base_Pseudostate="_XyZ5IKXHEeWN9JTg-IMukA"/>
<UMLRealTimeStateMach:RTRegion xmi:id="_XydjgKXHEeWN9JTg-IMukA" base_Region="_XyXc4KXHEeWN9JTg-IMukA"/>
<UMLRealTimeStateMach:RTStateMachine xmi:id="_XyeKkKXHEeWN9JTg-IMukA" base_StateMachine="_XyTygKXHEeWN9JTg-IMukA"/>
<UMLRealTimeStateMach:RTState xmi:id="_ax-ooKXHEeWN9JTg-IMukA" base_State="_ax9agKXHEeWN9JTg-IMukA"/>
<RTCppProperties:CapsuleProperties xmi:id="_xE7bYKXJEeWN9JTg-IMukA" implementationPreface="&#xA;" base_Class="_4isU0KXGEeWN9JTg-IMukA"/>
<RTCppProperties:DependencyProperties xmi:id="_3ydN4KXKEeWN9JTg-IMukA" KindInHeader="Inclusion" KindInImplementation="None" base_Dependency="_Bg1UgKXHEeWN9JTg-IMukA"/>
<RTCppProperties:DependencyProperties xmi:id="_BRYMwKf3EeWQ0-isBiruBg" KindInHeader="Inclusion" KindInImplementation="None" base_Dependency="_9YyKkKf2EeWQ0-isBiruBg"/>
<RTCppProperties:DependencyProperties xmi:id="_FJTgkKf3EeWQ0-isBiruBg" KindInHeader="Inclusion" KindInImplementation="Inclusion" base_Dependency="_-ZWPsKf2EeWQ0-isBiruBg"/>
<RTCppProperties:AttributeProperties xmi:id="_HDWggKf5EeWQ0-isBiruBg" base_Property="___pNMKf4EeWQ0-isBiruBg"/>
</xmi:XMI>