Class Pcm2LqnHelper
java.lang.Object
org.palladiosimulator.solver.transformations.pcm2lqn.Pcm2LqnHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static String
static String
getId
(de.uka.ipd.sdq.identifier.Identifier object, ContextWrapper cw) Generates an unique ID for the given Identifier.static String
getIdForCommResource
(org.palladiosimulator.pcm.resourceenvironment.LinkingResource lr, org.palladiosimulator.pcm.resourcetype.CommunicationLinkResourceType clrt) static String
getIdForEntryLevelSystemCall
(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall call) static String
getIdForForkedBehaviour
(org.palladiosimulator.pcm.seff.ForkedBehaviour asyncBeh, ContextWrapper myContextWrapper) static String
getIdForLatency
(String commResourceID, org.palladiosimulator.solver.transformations.pcm2lqn.CallType callType) static String
getIdForPassiveResource
(org.palladiosimulator.pcm.repository.PassiveResource passiveResource, org.palladiosimulator.pcm.allocation.AllocationContext assCtx) static String
getIdForProcResource
(org.palladiosimulator.pcm.core.entity.Entity rc, org.palladiosimulator.pcm.resourcetype.ProcessingResourceType prt) static String
getIdForThroughput
(String commResourceID) static String
getIdForUsageScenario
(org.palladiosimulator.pcm.usagemodel.UsageScenario us) static String
Get wait entry id based on passed id (appends a String)static String
getWaitEntryId
(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 theAssemblyContext
hierarchy 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)
-