Class LqnBuilder
java.lang.Object
org.palladiosimulator.solver.transformations.pcm2lqn.LqnBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddActivityDef(String id) addActivityMakingCall(String callId, String targetId, org.palladiosimulator.solver.transformations.pcm2lqn.CallType callType) Add or reuse an activity making call with call means = 1.0addActivityMakingCall(String callId, String targetId, org.palladiosimulator.solver.transformations.pcm2lqn.CallType callType, double callMeans) Add or reuse an activity making calladdActivityOrType(String startId, String branchProb, PrecedenceType pt) voidaddActivityToPostAnd(String startId, PrecedenceType ptBegin) voidaddActivityToPreAnd(String stopId, PrecedenceType ptEnd) addActivityType(String stopId, PrecedenceType pt) addProcessor(String id) Creates a new processor if no processor with the given id exists yet.addReplyActivity(String id, String startId, String stopId) addSemaphoreTask(String id, ProcessorType pt, int capacity) Checks whether the passedProcessorTypecontains a task.addSequencePrecedence(String firstId, String secondId) addTask(String id, ProcessorType pt) Checks whether the passedProcessorTypecontains a task.voidgetProcessor(String processorId) getTaskForProcessor(String processorId) booleanvoidvoidsetIsLQSimAnalysis(boolean isQLSim) voidsetPoolCapacity(Integer poolCapacity)
-
Constructor Details
-
LqnBuilder
public LqnBuilder(boolean isInfTask)
-
-
Method Details
-
addProcessor
Creates a new processor if no processor with the given id exists yet. Otherwise, returns the matching existing processor. SeegetProcessorTypeFromModel(String)for how to match the id.- Parameters:
id-- Returns:
-
addSemaphoreTask
Checks whether the passedProcessorTypecontains 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 thePassiveResourcept-capacity- ThePassiveResource's capacity- Returns:
-
addTask
Checks whether the passedProcessorTypecontains 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
-
addEntry
-
addTaskActivityGraph
-
addOutputEntryDistributionType
-
addReplyActivity
-
addSequencePrecedence
-
addActivityDef
-
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
-
addBeginForkPrecedence
-
addEndForkPrecedence
-
addEndBranchPrecedence
-
addActivityOrType
-
addActivityType
-
addPhaseActivities
-
addActivityPhases
-
getTaskForProcessor
-
finalizeLqnModel
-
restoreFormerTaskActivityGraph
public void restoreFormerTaskActivityGraph() -
getLqnModel
-
getProcessor
-
isLQSimAnalysis
public boolean isLQSimAnalysis() -
setIsLQSimAnalysis
public void setIsLQSimAnalysis(boolean isQLSim) -
addActivityToPostAnd
-
addActivityToPreAnd
-
setPoolCapacity
-