Class JobSlotFirstFitStrategy
java.lang.Object
org.palladiosimulator.loadbalancingaction.strategy.AbstractStrategy
org.palladiosimulator.loadbalancingaction.strategy.JobSlotFirstFitStrategy
- All Implemented Interfaces:
Strategy
Determines branch transition based on the free job slots on the resource containers. If no slots
are free, jobs are put into a queue. Caution: Makes assumptions about the model, should only be
used in combination with LoadbalancingActionMiddlewarePassiveResource AT and
LoadbalancingActionStaticResourceContainer AT.
-
Field Summary
Fields inherited from class org.palladiosimulator.loadbalancingaction.strategy.AbstractStrategy
context
-
Constructor Summary
ConstructorDescriptionJobSlotFirstFitStrategy
(org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context, JobSlotStrategyHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
determineBranch
(EList<LoadbalancingBranchTransition> branchTransitions) void
setTargetContainer
(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container)
-
Constructor Details
-
JobSlotFirstFitStrategy
public JobSlotFirstFitStrategy(org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context, JobSlotStrategyHelper helper)
-
-
Method Details
-
determineBranch
public LoadbalancingBranchTransition determineBranch(EList<LoadbalancingBranchTransition> branchTransitions) -
setTargetContainer
public void setTargetContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container) -
activate
public void activate() -
getRequiredSlots
-