java.lang.Object
org.palladiosimulator.solver.transformations.pcm2lqn.LqnBuilder

public class LqnBuilder extends Object
  • Constructor Details

    • LqnBuilder

      public LqnBuilder(boolean isInfTask)
  • Method Details

    • addProcessor

      public ProcessorType addProcessor(String id)
      Creates a new processor if no processor with the given id exists yet. Otherwise, returns the matching existing processor. See getProcessorTypeFromModel(String) for how to match the id.
      Parameters:
      id -
      Returns:
    • addSemaphoreTask

      public TaskType addSemaphoreTask(String id, ProcessorType pt, int capacity)
      Checks whether the passed ProcessorType contains a task. If yes, the first task is returned. If no, a new task is created and added to the processor. Two entries are created for the task if it is newly created: A wait entry and a signal entry. The entry ids are created using #getSignalEntryId(String) and #getWaitEntryId(String) (use these for accessing the entries, using the id of the passive resource). The multiplicity of the task are set to the passed capacity.
      Parameters:
      id - The id of the PassiveResource
      pt -
      capacity - The PassiveResource's capacity
      Returns:
    • addTask

      public TaskType addTask(String id, ProcessorType pt)
      Checks whether the passed ProcessorType contains a task. If yes, the first task is returned. If no, a new task is created and added to the processor.
      Parameters:
      id -
      pt -
      Returns:
    • addTaskForResourceDemand

      public TaskType addTaskForResourceDemand(String id, ProcessorType pt)
    • addEntry

      public EntryType addEntry(String id, TaskType tt)
    • addTaskActivityGraph

      public TaskActivityGraph addTaskActivityGraph(TaskType tt)
    • addOutputEntryDistributionType

      public OutputEntryDistributionType addOutputEntryDistributionType(EntryType et)
    • addReplyActivity

      public ReplyActivityType addReplyActivity(String id, String startId, String stopId)
    • addSequencePrecedence

      public PrecedenceType addSequencePrecedence(String firstId, String secondId)
    • addActivityDef

      public ActivityDefType addActivityDef(String id)
    • addActivityMakingCall

      public ActivityMakingCallType addActivityMakingCall(String callId, String targetId, org.palladiosimulator.solver.transformations.pcm2lqn.CallType callType)
      Add or reuse an activity making call with call means = 1.0
      Parameters:
      callId -
      targetId -
      callType -
      Returns:
    • addActivityMakingCall

      public ActivityMakingCallType addActivityMakingCall(String callId, String targetId, org.palladiosimulator.solver.transformations.pcm2lqn.CallType callType, double callMeans)
      Add or reuse an activity making call
      Parameters:
      callId -
      targetId -
      callType -
      callMeans -
      Returns:
    • addBeginBranchPrecedence

      public PrecedenceType addBeginBranchPrecedence(String id)
    • addBeginForkPrecedence

      public PrecedenceType addBeginForkPrecedence(String id)
    • addEndForkPrecedence

      public PrecedenceType addEndForkPrecedence()
    • addEndBranchPrecedence

      public PrecedenceType addEndBranchPrecedence()
    • addActivityOrType

      public ActivityOrType addActivityOrType(String startId, String branchProb, PrecedenceType pt)
    • addActivityType

      public ActivityType addActivityType(String stopId, PrecedenceType pt)
    • addPhaseActivities

      public PhaseActivities addPhaseActivities(ActivityPhasesType apt)
    • addActivityPhases

      public ActivityPhasesType addActivityPhases(String id)
    • getTaskForProcessor

      public TaskType getTaskForProcessor(String processorId)
    • finalizeLqnModel

      public void finalizeLqnModel(PCMSolverWorkflowRunConfiguration config)
    • restoreFormerTaskActivityGraph

      public void restoreFormerTaskActivityGraph()
    • getLqnModel

      public LqnModelType getLqnModel()
    • getProcessor

      public ProcessorType getProcessor(String processorId)
    • isLQSimAnalysis

      public boolean isLQSimAnalysis()
    • setIsLQSimAnalysis

      public void setIsLQSimAnalysis(boolean isQLSim)
    • addActivityToPostAnd

      public void addActivityToPostAnd(String startId, PrecedenceType ptBegin)
    • addActivityToPreAnd

      public void addActivityToPreAnd(String stopId, PrecedenceType ptEnd)
    • setPoolCapacity

      public void setPoolCapacity(Integer poolCapacity)