public class VSLUtils
extends java.lang.Object
Constructor and Description |
---|
VSLUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getArrivalPatternType(org.eclipse.m2m.qvt.oml.util.IContext context,
java.lang.String self)
returns the 'pattern' data (MARTE).
|
static java.lang.String |
getContextFromContraint(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Comment self)
Gets the context from constraint.
|
static java.lang.String |
getCoreFromContraint(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Comment self)
Gets the core (as String) constraining the given <
|
static org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.InstanceSpecification> |
getInstances(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Comment self,
org.eclipse.uml2.uml.Package inst)
Gets the instances.
|
static java.lang.Integer |
getNumberOfCores(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.InstanceSpecification cpu)
Gets the number of cores for a given CPU instance.
|
static org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.Slot> |
getSlotInstances(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Comment self,
org.eclipse.uml2.uml.Package inst)
Gets the slot instances.
|
static java.lang.String |
getSupertaskFromContraint(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Comment self)
Gets the supertask (as String) constraining the given <
|
static java.lang.String |
getWCET(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Comment self)
Gets the wcet.
|
static java.lang.Boolean |
isReferringId(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Comment self,
java.lang.Integer id)
Checks if is referring id.
|
static java.lang.String |
normalizeNFPInteger(org.eclipse.m2m.qvt.oml.util.IContext context,
java.lang.String self)
VSL parsing: receives an NFP_Integer value and parses the selected
property
|
static java.lang.String |
parseNFPDuration(org.eclipse.m2m.qvt.oml.util.IContext context,
java.lang.String self,
java.lang.String propertyName)
VSL parsing: receives an NFP_Duration value and parses the property
selected
|
static java.lang.String |
parseNFPReal(org.eclipse.m2m.qvt.oml.util.IContext context,
java.lang.String self,
java.lang.String propertyName)
Parses the nfp real.
|
static org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.Slot> |
portToSlotsByRule(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.InstanceSpecification self,
org.eclipse.uml2.uml.Port onPort,
org.eclipse.uml2.uml.Constraint rule)
Deprecated.
|
static void |
setCeiling(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Class self,
java.lang.String ceiling)
Sets the ceiling.
|
static void |
setCeiling2(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Class self,
java.lang.String ceiling)
Sets the ceiling2.
|
static void |
setCeiling3(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Class self,
java.lang.String ceiling)
Sets the ceiling3.
|
static void |
setProtectKind(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Class self,
java.lang.String type)
Sets the protect kind.
|
static void |
setProtectKind2(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Class self,
java.lang.String type)
Sets the protect kind2.
|
static void |
setProtectKind3(org.eclipse.m2m.qvt.oml.util.IContext context,
org.eclipse.uml2.uml.Class self,
java.lang.String type)
Sets the protect kind3.
|
public static java.lang.String getArrivalPatternType(org.eclipse.m2m.qvt.oml.util.IContext context, java.lang.String self)
i.e. periodic(period=(value=0.6,unit=ms))
context
- the QVT contextself
- the VSL string to be analyzedpublic static java.lang.String normalizeNFPInteger(org.eclipse.m2m.qvt.oml.util.IContext context, java.lang.String self)
i.e. (value=6)
context
- the contextself
- the selfpublic static java.lang.String parseNFPDuration(org.eclipse.m2m.qvt.oml.util.IContext context, java.lang.String self, java.lang.String propertyName)
i.e. (value=0.6,unit=ms)
context
- the contextself
- VSL formatted input stringpropertyName
- property whose value we wantpublic static java.lang.String parseNFPReal(org.eclipse.m2m.qvt.oml.util.IContext context, java.lang.String self, java.lang.String propertyName)
context
- the contextself
- the selfpropertyName
- the property namepublic static void setCeiling(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Class self, java.lang.String ceiling)
context
- the contextself
- the selfceiling
- the ceilingpublic static void setCeiling2(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Class self, java.lang.String ceiling)
context
- the contextself
- the selfceiling
- the ceilingpublic static void setCeiling3(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Class self, java.lang.String ceiling)
context
- the contextself
- the selfceiling
- the ceilingpublic static void setProtectKind(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Class self, java.lang.String type)
context
- the contextself
- the selftype
- the typepublic static void setProtectKind2(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Class self, java.lang.String type)
context
- the contextself
- the selftype
- the typepublic static void setProtectKind3(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Class self, java.lang.String type)
context
- the contextself
- the selftype
- the type@Deprecated public static org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.Slot> portToSlotsByRule(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.InstanceSpecification self, org.eclipse.uml2.uml.Port onPort, org.eclipse.uml2.uml.Constraint rule)
context
- the contextself
- the selfonPort
- the on portrule
- the rulepublic static org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.Slot> getSlotInstances(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Comment self, org.eclipse.uml2.uml.Package inst)
context
- the contextself
- the selfinst
- the instpublic static org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.InstanceSpecification> getInstances(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Comment self, org.eclipse.uml2.uml.Package inst)
context
- the contextself
- the selfinst
- the instpublic static java.lang.Boolean isReferringId(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Comment self, java.lang.Integer id)
context
- the contextself
- the selfid
- the idpublic static java.lang.String getWCET(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Comment self)
context
- the contextself
- the selfpublic static java.lang.Integer getNumberOfCores(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.InstanceSpecification cpu)
context
- the QVT contextcpu
- the cpu instancepublic static java.lang.String getCoreFromContraint(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Comment self)
context
- the QVT contextself
- the <public static java.lang.String getSupertaskFromContraint(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Comment self)
context
- the QVT contextself
- the <public static java.lang.String getContextFromContraint(org.eclipse.m2m.qvt.oml.util.IContext context, org.eclipse.uml2.uml.Comment self)
context
- the contextself
- the self