Class Pcm2LqnHelper


  • public class Pcm2LqnHelper
    extends Object
    • Constructor Detail

      • Pcm2LqnHelper

        public Pcm2LqnHelper()
    • 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 the AssemblyContext hierarchy of model elements and the AllocationContext, 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)
      • getIdForThroughput

        public static String getIdForThroughput​(String commResourceID)
      • 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)