public class Java4QVTutils
extends java.lang.Object
Constructor and Description |
---|
Java4QVTutils() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.uml2.uml.ActivityFinalNode |
createFinalNode(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Activity act)
Creates the activity final node.
|
static org.eclipse.uml2.uml.InitialNode |
createInitialNode(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Activity act)
Creates the activity initial node.
|
static org.eclipse.uml2.uml.OpaqueAction |
createOpaqueAction(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Activity act,
java.lang.String name)
Creates the opaque action.
|
static java.util.List<java.lang.String> |
extractSuperTaskInfo(java.lang.String info)
Extract super task info.
|
static org.eclipse.uml2.uml.InstanceSpecification |
getRootInstanceInPackage(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Package self)
Gets the root instance.
|
static java.util.List<java.util.List<java.lang.String>> |
getRUNSupertasks(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Classifier cpu)
Gets the RUN supertasks.
|
static void |
getUpdatedArincFunChrtSpec(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.InstanceSpecification self,
org.eclipse.uml2.uml.Comment comment)
Updates the occKind property for the CHRtSpecification decorating an ARINCFunction.
|
static boolean |
isRUN(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Classifier cpu)
Checks if CPU otherSchedPPolicy contains a RUN string.
|
static java.util.List<java.util.List<java.lang.String>> |
processRUNString(java.lang.String policy)
Process RUN string.
|
public static org.eclipse.uml2.uml.InitialNode createInitialNode(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Activity act)
context
- the QVT contextact
- the parent Activitypublic static org.eclipse.uml2.uml.ActivityFinalNode createFinalNode(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Activity act)
context
- the QVT contextact
- the parent Activitypublic static org.eclipse.uml2.uml.OpaqueAction createOpaqueAction(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Activity act, java.lang.String name)
context
- the QVT contextact
- the parent Activityname
- the name of the opaque action to be createdpublic static org.eclipse.uml2.uml.InstanceSpecification getRootInstanceInPackage(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Package self)
context
- the contextself
- the selfpublic static void getUpdatedArincFunChrtSpec(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.InstanceSpecification self, org.eclipse.uml2.uml.Comment comment)
context
- the contextself
- the InstanceSpecification instance of ARINCComponentImplcomment
- The Comment with the CHRTSpecification decorating the ARINCFunctionpublic static boolean isRUN(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Classifier cpu)
context
- the QVT contextcpu
- the classifier representing the CPU (NOT the instance of the CPU)public static java.util.List<java.util.List<java.lang.String>> getRUNSupertasks(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Classifier cpu)
context
- the contextcpu
- the cpupublic static java.util.List<java.util.List<java.lang.String>> processRUNString(java.lang.String policy)
policy
- the policypublic static java.util.List<java.lang.String> extractSuperTaskInfo(java.lang.String info)
info
- the info