Class JobSlotStrategyHelper


  • public class JobSlotStrategyHelper
    extends Object
    • Field Detail

      • MIDDLEWARE_PASSIVE_RESOURCE_COMPONENT_NAME

        public static final String MIDDLEWARE_PASSIVE_RESOURCE_COMPONENT_NAME
        See Also:
        Constant Field Values
      • REQUIRED_SLOTS_PARAMETER_SPECIFICATION

        public static final String REQUIRED_SLOTS_PARAMETER_SPECIFICATION
        See Also:
        Constant Field Values
      • resourceContainerSlots

        public final Map<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer,​Long> resourceContainerSlots
      • isActive

        public boolean isActive
      • systemAssemblyContext

        public org.palladiosimulator.pcm.core.composition.AssemblyContext systemAssemblyContext
    • Constructor Detail

      • JobSlotStrategyHelper

        @Inject
        public JobSlotStrategyHelper​(org.palladiosimulator.simulizar.runtimestate.ComponentInstanceRegistry componentRegistry)
    • Method Detail

      • jobFinished

        public void jobFinished​(org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyFinished,
                                org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context)
      • hasToBeQueued

        public boolean hasToBeQueued​(long requiredSlots)
      • reset

        public void reset()
      • getResourceContainerForBranch

        public org.palladiosimulator.pcm.resourceenvironment.ResourceContainer getResourceContainerForBranch​(LoadbalancingBranchTransition branchTransition,
                                                                                                             org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context)
      • getFreeSlotsOfContainer

        public Long getFreeSlotsOfContainer​(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container,
                                            org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context)
      • activateFitting

        public void activateFitting​(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container)