Class LqnBuilder
java.lang.Object
org.palladiosimulator.solver.transformations.pcm2lqn.LqnBuilder
-
Constructor Summary
-
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) void
addActivityToPostAnd
(String startId, PrecedenceType ptBegin) void
addActivityToPreAnd
(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 passedProcessorType
contains a task.addSequencePrecedence
(String firstId, String secondId) addTask
(String id, ProcessorType pt) Checks whether the passedProcessorType
contains a task.void
getProcessor
(String processorId) getTaskForProcessor
(String processorId) boolean
void
void
setIsLQSimAnalysis
(boolean isQLSim) void
setPoolCapacity
(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 passedProcessorType
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 thePassiveResource
pt
-capacity
- ThePassiveResource
's capacity- Returns:
-
addTask
Checks whether the passedProcessorType
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
-
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
-