Class Pcm2LqnHelper
java.lang.Object
org.palladiosimulator.solver.transformations.pcm2lqn.Pcm2LqnHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic Stringstatic StringgetId(de.uka.ipd.sdq.identifier.Identifier object, ContextWrapper cw) Generates an unique ID for the given Identifier.static StringgetIdForCommResource(org.palladiosimulator.pcm.resourceenvironment.LinkingResource lr, org.palladiosimulator.pcm.resourcetype.CommunicationLinkResourceType clrt) static StringgetIdForEntryLevelSystemCall(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall call) static StringgetIdForForkedBehaviour(org.palladiosimulator.pcm.seff.ForkedBehaviour asyncBeh, ContextWrapper myContextWrapper) static StringgetIdForLatency(String commResourceID, org.palladiosimulator.solver.transformations.pcm2lqn.CallType callType) static StringgetIdForPassiveResource(org.palladiosimulator.pcm.repository.PassiveResource passiveResource, org.palladiosimulator.pcm.allocation.AllocationContext assCtx) static StringgetIdForProcResource(org.palladiosimulator.pcm.core.entity.Entity rc, org.palladiosimulator.pcm.resourcetype.ProcessingResourceType prt) static StringgetIdForThroughput(String commResourceID) static StringgetIdForUsageScenario(org.palladiosimulator.pcm.usagemodel.UsageScenario us) static StringGet wait entry id based on passed id (appends a String)static StringgetWaitEntryId(String id) Get signal entry id based on passed id (appends a String)
-
Constructor Details
-
Pcm2LqnHelper
public Pcm2LqnHelper()
-
-
Method Details
-
fixGUID
-
getId
Generates an unique ID for the given Identifier. PCM2LQN cannot use the identifier's guid directly, because sometimes for actions inside RDSEFF's also the assembly context id and the usage context id must be added to make the LQN entities unique. The following code tries to generate 'pretty' ids that shall ease reading the LQN solvers' output. Takes into account theAssemblyContexthierarchy of model elements and theAllocationContext, so that different component instances will get different ids. If changing this method, take care to change other methods of this class accordingly, e.g.getIdForEntryLevelSystemCall(EntryLevelSystemCall).- Parameters:
object-cw-- Returns:
-
clearGuidMap
public static void clearGuidMap() -
getIdForUsageScenario
-
getIdForCommResource
public static String getIdForCommResource(org.palladiosimulator.pcm.resourceenvironment.LinkingResource lr, org.palladiosimulator.pcm.resourcetype.CommunicationLinkResourceType clrt) -
getIdForThroughput
-
getIdForLatency
-
getIdForProcResource
public static String getIdForProcResource(org.palladiosimulator.pcm.core.entity.Entity rc, org.palladiosimulator.pcm.resourcetype.ProcessingResourceType prt) -
getIdForPassiveResource
public static String getIdForPassiveResource(org.palladiosimulator.pcm.repository.PassiveResource passiveResource, org.palladiosimulator.pcm.allocation.AllocationContext assCtx) -
getIdForEntryLevelSystemCall
public static String getIdForEntryLevelSystemCall(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall call) -
getSignalEntryId
Get wait entry id based on passed id (appends a String)- Parameters:
id-- Returns:
-
getWaitEntryId
Get signal entry id based on passed id (appends a String)- Parameters:
id-- Returns:
-
getIdForForkedBehaviour
public static String getIdForForkedBehaviour(org.palladiosimulator.pcm.seff.ForkedBehaviour asyncBeh, ContextWrapper myContextWrapper)
-