Class Pcm2LqnHelper
- java.lang.Object
-
- org.palladiosimulator.solver.transformations.pcm2lqn.Pcm2LqnHelper
-
public class Pcm2LqnHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description Pcm2LqnHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearGuidMap()
static String
fixGUID(String id)
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
getSignalEntryId(String id)
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)
-
-
-
Method Detail
-
getId
public static String getId(de.uka.ipd.sdq.identifier.Identifier object, ContextWrapper cw)
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
public static String getIdForUsageScenario(org.palladiosimulator.pcm.usagemodel.UsageScenario us)
-
getIdForCommResource
public static String getIdForCommResource(org.palladiosimulator.pcm.resourceenvironment.LinkingResource lr, org.palladiosimulator.pcm.resourcetype.CommunicationLinkResourceType clrt)
-
getIdForLatency
public static String getIdForLatency(String commResourceID, org.palladiosimulator.solver.transformations.pcm2lqn.CallType callType)
-
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
public static String getSignalEntryId(String id)
Get wait entry id based on passed id (appends a String)- Parameters:
id
-- Returns:
-
getWaitEntryId
public static String getWaitEntryId(String id)
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)
-
-