Charles Rivet | 73dd2e2 | 2015-12-22 22:59:12 -0500 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <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/_xXduQFiYEeWkUszwrjRJag/6" 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/_xXduQFiYEeWkUszwrjRJag/6 pathmap://UMLRT_CPP/RTCppProperties.profile.uml#_xXe8YFiYEeWkUszwrjRJag"> |
| 3 | <uml:Model xmi:id="_THyPAKXFEeWN9JTg-IMukA" name="ClassUtility"> |
| 4 | <packageImport xmi:type="uml:PackageImport" xmi:id="_eV2p8KXFEeWN9JTg-IMukA"> |
| 5 | <importedPackage xmi:type="uml:Model" href="pathmap://PapyrusC_Cpp_LIBRARIES/AnsiCLibrary.uml#_DV8nkBv8EduZN5aJJITI5w"/> |
| 6 | </packageImport> |
| 7 | <packageImport xmi:type="uml:PackageImport" xmi:id="_eni24KXFEeWN9JTg-IMukA"> |
| 8 | <importedPackage xmi:type="uml:Model" href="pathmap://UMLRTRTSLIB/UMLRT-RTS.uml#_mPjAgGXmEeS_4daqvwyFrg"/> |
| 9 | </packageImport> |
| 10 | <packageImport xmi:type="uml:PackageImport" xmi:id="_e7UHcKXFEeWN9JTg-IMukA"> |
| 11 | <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/> |
| 12 | </packageImport> |
| 13 | <packagedElement xmi:type="uml:Class" xmi:id="_ADu50KXGEeWN9JTg-IMukA" name="UTILS"> |
| 14 | <ownedAttribute xmi:type="uml:Property" xmi:id="_OqV94KXGEeWN9JTg-IMukA" name="debugStatus" visibility="protected" isStatic="true"> |
| 15 | <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/> |
| 16 | </ownedAttribute> |
| 17 | <ownedAttribute xmi:type="uml:Property" xmi:id="_U_x18KXGEeWN9JTg-IMukA" name="printTimeKind" visibility="protected" isStatic="true" type="_OUmaMKfxEeWQ0-isBiruBg"/> |
| 18 | <ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_gy-E4KfvEeWQ0-isBiruBg" name="isDebug" specification="_okReAKfvEeWQ0-isBiruBg"> |
| 19 | <language>C++</language> |
| 20 | <body>return(debugStatus); |
| 21 | </body> |
| 22 | </ownedBehavior> |
| 23 | <ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_aDjKEKfwEeWQ0-isBiruBg" name="setDebug" specification="_yt2goKfwEeWQ0-isBiruBg"> |
| 24 | <language>C++</language> |
| 25 | <body>debugStatus = dbg; |
| 26 | |
| 27 | /** |
| 28 | * This function will always return true as it can not fail. |
| 29 | */ |
| 30 | return true; |
| 31 | </body> |
| 32 | </ownedBehavior> |
| 33 | <ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_bRIFkKfyEeWQ0-isBiruBg" name="setPrintType" specification="_4Vx9AKfxEeWQ0-isBiruBg"> |
| 34 | <language>C++</language> |
| 35 | <body>printTimeKind = printType; |
| 36 | |
| 37 | /** |
| 38 | * This function will always return true as it can not fail. |
| 39 | */ |
| 40 | return true; |
| 41 | </body> |
| 42 | </ownedBehavior> |
| 43 | <ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_psMA8KfyEeWQ0-isBiruBg" name="getPrintKind" specification="_DiEPQKfyEeWQ0-isBiruBg"> |
| 44 | <language>C++</language> |
| 45 | <body>return( printTimeKind ); |
| 46 | </body> |
| 47 | </ownedBehavior> |
| 48 | <ownedOperation xmi:type="uml:Operation" xmi:id="_okReAKfvEeWQ0-isBiruBg" name="isDebug" isStatic="true" method="_gy-E4KfvEeWQ0-isBiruBg"> |
| 49 | <ownedParameter xmi:type="uml:Parameter" xmi:id="_uG7OQKfvEeWQ0-isBiruBg" direction="return" effect="read"> |
| 50 | <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/> |
| 51 | </ownedParameter> |
| 52 | </ownedOperation> |
| 53 | <ownedOperation xmi:type="uml:Operation" xmi:id="_yt2goKfwEeWQ0-isBiruBg" name="setDebug" isStatic="true" method="_aDjKEKfwEeWQ0-isBiruBg"> |
| 54 | <ownedParameter xmi:type="uml:Parameter" xmi:id="_yt2goafwEeWQ0-isBiruBg" name="dbg" effect="update"> |
| 55 | <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/> |
| 56 | </ownedParameter> |
| 57 | <ownedParameter xmi:type="uml:Parameter" xmi:id="_BL7fQKirEeWWQdUXTI0E6Q" direction="return" effect="read"> |
| 58 | <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/> |
| 59 | </ownedParameter> |
| 60 | </ownedOperation> |
| 61 | <ownedOperation xmi:type="uml:Operation" xmi:id="_4Vx9AKfxEeWQ0-isBiruBg" name="setPrintType" isStatic="true" method="_bRIFkKfyEeWQ0-isBiruBg"> |
| 62 | <ownedParameter xmi:type="uml:Parameter" xmi:id="_4Vx9AafxEeWQ0-isBiruBg" name="printType" type="_OUmaMKfxEeWQ0-isBiruBg"/> |
| 63 | <ownedParameter xmi:type="uml:Parameter" xmi:id="_9oGMIKiqEeWWQdUXTI0E6Q" direction="return" effect="read"> |
| 64 | <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/> |
| 65 | </ownedParameter> |
| 66 | </ownedOperation> |
| 67 | <ownedOperation xmi:type="uml:Operation" xmi:id="_DiEPQKfyEeWQ0-isBiruBg" name="getPrintKind" isStatic="true" method="_psMA8KfyEeWQ0-isBiruBg"> |
| 68 | <ownedParameter xmi:type="uml:Parameter" xmi:id="_DiEPQafyEeWQ0-isBiruBg" type="_OUmaMKfxEeWQ0-isBiruBg" direction="return"/> |
| 69 | </ownedOperation> |
| 70 | </packagedElement> |
| 71 | <packagedElement xmi:type="uml:Class" xmi:id="_4isU0KXGEeWN9JTg-IMukA" name="Top" classifierBehavior="_XyTygKXHEeWN9JTg-IMukA" isActive="true"> |
| 72 | <ownedAttribute xmi:type="uml:Port" xmi:id="_EzpwIKXHEeWN9JTg-IMukA" name="log" visibility="protected" isOrdered="true" aggregation="composite" isBehavior="true" isService="false"> |
| 73 | <type xmi:type="uml:Collaboration" href="pathmap://UMLRTRTSLIB/UMLRT-RTS.uml#_6kIb0IeXEeSVyrlWP4nYew"/> |
| 74 | </ownedAttribute> |
| 75 | <ownedAttribute xmi:type="uml:Property" xmi:id="___pNMKf4EeWQ0-isBiruBg" name="utils" visibility="protected" type="_ADu50KXGEeWN9JTg-IMukA"/> |
| 76 | <ownedBehavior xmi:type="uml:StateMachine" xmi:id="_XyTygKXHEeWN9JTg-IMukA" name="StateMachine" isReentrant="false"> |
| 77 | <region xmi:type="uml:Region" xmi:id="_XyXc4KXHEeWN9JTg-IMukA" name="Region"> |
| 78 | <transition xmi:type="uml:Transition" xmi:id="_cHWgIKXHEeWN9JTg-IMukA" source="_XyZ5IKXHEeWN9JTg-IMukA" target="_ax9agKXHEeWN9JTg-IMukA"> |
| 79 | <effect xmi:type="uml:OpaqueBehavior" xmi:id="_idwBgKXHEeWN9JTg-IMukA" name="topInItializing"> |
| 80 | <language>C++</language> |
| 81 | <body>log.log("Top initializing."); |
| 82 | |
| 83 | utils.setDebug(true); |
| 84 | utils.setPrintType(PrintNone); |
| 85 | // UTILS::setPrintType(PrintActual); |
| 86 | // UTILS::setPrintType(PrintDelta); |
| 87 | |
| 88 | /** |
| 89 | Utils::debugStatus = true; |
| 90 | Utils::printActualTime = true; |
| 91 | Utils::printDeltaTime = false; |
| 92 | */ |
| 93 | </body> |
| 94 | </effect> |
| 95 | </transition> |
| 96 | <subvertex xmi:type="uml:Pseudostate" xmi:id="_XyZ5IKXHEeWN9JTg-IMukA"> |
| 97 | <name xsi:nil="true"/> |
| 98 | </subvertex> |
| 99 | <subvertex xmi:type="uml:State" xmi:id="_ax9agKXHEeWN9JTg-IMukA" name="Running"> |
| 100 | <entry xmi:type="uml:OpaqueBehavior" xmi:id="_mDLQEKXHEeWN9JTg-IMukA" name="topRunning"> |
| 101 | <language>C++</language> |
| 102 | <body>log.log("Top Running."); |
| 103 | |
| 104 | log.show( "Debug is: "); |
| 105 | if ( utils.isDebug() ) { |
| 106 | log.log( "enabled." ); |
| 107 | }else{ |
| 108 | log.log( "disabled." ); |
| 109 | } |
| 110 | |
| 111 | log.show( "Timestamp kind is: " ); |
| 112 | switch ( utils.getPrintKind() ) { |
| 113 | case PrintNone : |
| 114 | log.log( "no timestamp." ); |
| 115 | break; |
| 116 | case PrintActual : |
| 117 | log.log( "actual timestamp" ); |
| 118 | break; |
| 119 | case PrintDelta : |
| 120 | log.log( "delta timestamp" ); |
| 121 | break; |
| 122 | default: |
| 123 | log.log( "UNKONWN" ); |
| 124 | break; |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | log.show("Utils::debugStatus = "); |
| 129 | if (Utils::debugStatus) { |
| 130 | log.show( " Debug Status : "); |
| 131 | |
| 132 | log.show("Utils:: printActualTime = "); |
| 133 | if (Utils::printActualTime) { |
| 134 | log.log("true."); |
| 135 | }else{ |
| 136 | log.log("false."); |
| 137 | } |
| 138 | |
| 139 | log.show("Utils:: printDeltaTime = "); |
| 140 | if (Utils::printDeltaTime) { |
| 141 | log.log("true."); |
| 142 | }else{ |
| 143 | log.log("false."); |
| 144 | } |
| 145 | */</body> |
| 146 | </entry> |
| 147 | </subvertex> |
| 148 | </region> |
| 149 | </ownedBehavior> |
| 150 | </packagedElement> |
| 151 | <packagedElement xmi:type="uml:Usage" xmi:id="_Bg1UgKXHEeWN9JTg-IMukA" client="_4isU0KXGEeWN9JTg-IMukA" supplier="_ADu50KXGEeWN9JTg-IMukA"/> |
| 152 | <packagedElement xmi:type="uml:Enumeration" xmi:id="_OUmaMKfxEeWQ0-isBiruBg" name="UtilsPrintKinds"> |
| 153 | <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_QzuSkKfyEeWQ0-isBiruBg" name="PrintNone"/> |
| 154 | <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_eb_UgKfxEeWQ0-isBiruBg" name="PrintActual"/> |
| 155 | <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_fdMS0KfxEeWQ0-isBiruBg" name="PrintDelta"/> |
| 156 | </packagedElement> |
| 157 | <packagedElement xmi:type="uml:Usage" xmi:id="_9YyKkKf2EeWQ0-isBiruBg" client="_ADu50KXGEeWN9JTg-IMukA" supplier="_OUmaMKfxEeWQ0-isBiruBg"/> |
| 158 | <packagedElement xmi:type="uml:Usage" xmi:id="_-ZWPsKf2EeWQ0-isBiruBg" client="_4isU0KXGEeWN9JTg-IMukA" supplier="_OUmaMKfxEeWQ0-isBiruBg"/> |
| 159 | <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_TLjUsKXFEeWN9JTg-IMukA"> |
| 160 | <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_TLj7wKXFEeWN9JTg-IMukA" source="http://www.eclipse.org/uml2/2.0.0/UML"> |
| 161 | <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/umlrt#/"/> |
| 162 | </eAnnotations> |
| 163 | <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_RT_PROFILE/uml-rt.profile.uml#_1h74oEeVEeO0lv5O1DTHOQ"/> |
| 164 | </profileApplication> |
| 165 | <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_TMV-4KXFEeWN9JTg-IMukA"> |
| 166 | <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_TMV-4aXFEeWN9JTg-IMukA" source="http://www.eclipse.org/uml2/2.0.0/UML"> |
| 167 | <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/umlrt/statemachine#/"/> |
| 168 | </eAnnotations> |
| 169 | <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_RT_PROFILE/UMLRealTimeSM-addendum.profile.uml#_KLcn0FDtEeOA4ecmvfqvaw"/> |
| 170 | </profileApplication> |
| 171 | <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_X0EX8KXFEeWN9JTg-IMukA"> |
| 172 | <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_X0FmEKXFEeWN9JTg-IMukA" source="PapyrusVersion"> |
| 173 | <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_X0FmEaXFEeWN9JTg-IMukA" key="Version" value="0.0.11"/> |
| 174 | <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_X0FmEqXFEeWN9JTg-IMukA" key="Comment" value=""/> |
| 175 | <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_X0FmE6XFEeWN9JTg-IMukA" key="Copyright" value=""/> |
| 176 | <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_X0FmFKXFEeWN9JTg-IMukA" key="Date" value="2015-12-10"/> |
| 177 | <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_X0FmFaXFEeWN9JTg-IMukA" key="Author" value=""/> |
| 178 | </eAnnotations> |
| 179 | <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_X0E_AKXFEeWN9JTg-IMukA" source="http://www.eclipse.org/uml2/2.0.0/UML"> |
| 180 | <references xmi:type="ecore:EPackage" href="pathmap://UMLRT_CPP/RTCppProperties.profile.uml#_xXe8YFiYEeWkUszwrjRJag"/> |
| 181 | </eAnnotations> |
| 182 | <appliedProfile xmi:type="uml:Profile" href="pathmap://UMLRT_CPP/RTCppProperties.profile.uml#_vl5LALs8EeSTjNEQkASznQ"/> |
| 183 | </profileApplication> |
| 184 | </uml:Model> |
| 185 | <RTCppProperties:PassiveClassProperties xmi:id="_BHakYKXGEeWN9JTg-IMukA" headerEnding="
" base_Class="_ADu50KXGEeWN9JTg-IMukA" generateStateMachine="false" generateAssignmentOperator="false" generateCopyConstructor="false" generateDestructor="false" implementationType=""/> |
| 186 | <UMLRealTime:Capsule xmi:id="_4jK18KXGEeWN9JTg-IMukA" base_Class="_4isU0KXGEeWN9JTg-IMukA"/> |
| 187 | <UMLRealTime:RTPort xmi:id="_Ezv2wKXHEeWN9JTg-IMukA" isWired="false" base_Port="_EzpwIKXHEeWN9JTg-IMukA"/> |
| 188 | <UMLRealTimeStateMach:RTPseudostate xmi:id="_Xyc8cKXHEeWN9JTg-IMukA" base_Pseudostate="_XyZ5IKXHEeWN9JTg-IMukA"/> |
| 189 | <UMLRealTimeStateMach:RTRegion xmi:id="_XydjgKXHEeWN9JTg-IMukA" base_Region="_XyXc4KXHEeWN9JTg-IMukA"/> |
| 190 | <UMLRealTimeStateMach:RTStateMachine xmi:id="_XyeKkKXHEeWN9JTg-IMukA" base_StateMachine="_XyTygKXHEeWN9JTg-IMukA"/> |
| 191 | <UMLRealTimeStateMach:RTState xmi:id="_ax-ooKXHEeWN9JTg-IMukA" base_State="_ax9agKXHEeWN9JTg-IMukA"/> |
| 192 | <RTCppProperties:CapsuleProperties xmi:id="_xE7bYKXJEeWN9JTg-IMukA" implementationPreface="
" base_Class="_4isU0KXGEeWN9JTg-IMukA"/> |
| 193 | <RTCppProperties:DependencyProperties xmi:id="_3ydN4KXKEeWN9JTg-IMukA" KindInHeader="Inclusion" KindInImplementation="None" base_Dependency="_Bg1UgKXHEeWN9JTg-IMukA"/> |
| 194 | <RTCppProperties:DependencyProperties xmi:id="_BRYMwKf3EeWQ0-isBiruBg" KindInHeader="Inclusion" KindInImplementation="None" base_Dependency="_9YyKkKf2EeWQ0-isBiruBg"/> |
| 195 | <RTCppProperties:DependencyProperties xmi:id="_FJTgkKf3EeWQ0-isBiruBg" KindInHeader="Inclusion" KindInImplementation="Inclusion" base_Dependency="_-ZWPsKf2EeWQ0-isBiruBg"/> |
| 196 | <RTCppProperties:AttributeProperties xmi:id="_HDWggKf5EeWQ0-isBiruBg" base_Property="___pNMKf4EeWQ0-isBiruBg"/> |
| 197 | </xmi:XMI> |