Class SimAbstractPassiveResource

java.lang.Object
de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
de.uka.ipd.sdq.scheduler.entities.SchedulerEntity
de.uka.ipd.sdq.scheduler.resources.AbstractSimResource
edu.kit.ipd.sdq.pcm.simulation.scheduler.exact.resources.passive.SimAbstractPassiveResource
All Implemented Interfaces:
de.uka.ipd.sdq.scheduler.IPassiveResource, de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
Direct Known Subclasses:
SimFairPassiveResource, SimUnfairPassiveResource

public abstract class SimAbstractPassiveResource extends de.uka.ipd.sdq.scheduler.resources.AbstractSimResource implements de.uka.ipd.sdq.scheduler.IPassiveResource
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    protected Deque<de.uka.ipd.sdq.scheduler.processes.IWaitingProcess>
     

    Fields inherited from class de.uka.ipd.sdq.scheduler.resources.AbstractSimResource

    capacity

    Fields inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator

    delegate

    Fields inherited from interface de.uka.ipd.sdq.simulation.abstractsimengine.IEntity

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    SimAbstractPassiveResource(de.uka.ipd.sdq.scheduler.SchedulerModel model, long capacity, org.palladiosimulator.pcm.repository.PassiveResource passiveResource, IPriorityBoost priority_boost, SimActiveResource managing_resource, org.palladiosimulator.pcm.core.composition.AssemblyContext assCtx)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    boostPriority(de.uka.ipd.sdq.scheduler.IRunningProcess process)
     
    protected void
    fromRunningToWaiting(WaitingProcess waiting_process, boolean inFront)
     
    protected void
     
    org.palladiosimulator.pcm.core.composition.AssemblyContext
     
    org.palladiosimulator.pcm.repository.PassiveResource
     
    Queue<de.uka.ipd.sdq.scheduler.processes.IWaitingProcess>
     
    protected void
    punish(de.uka.ipd.sdq.scheduler.IRunningProcess process)
     
     

    Methods inherited from class de.uka.ipd.sdq.scheduler.resources.AbstractSimResource

    equals, getCapacity, getId, getName, hashCode

    Methods inherited from class de.uka.ipd.sdq.scheduler.entities.SchedulerEntity

    getModel

    Methods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator

    getEncapsulatedEntity, isScheduled, reschedule

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface de.uka.ipd.sdq.scheduler.IPassiveResource

    acquire, addObserver, getAvailable, getCapacity, getId, getName, release, removeObserver
  • Field Details

    • waiting_queue

      protected Deque<de.uka.ipd.sdq.scheduler.processes.IWaitingProcess> waiting_queue
    • main_resource

      protected SimActiveResource main_resource
  • Constructor Details

    • SimAbstractPassiveResource

      public SimAbstractPassiveResource(de.uka.ipd.sdq.scheduler.SchedulerModel model, long capacity, org.palladiosimulator.pcm.repository.PassiveResource passiveResource, IPriorityBoost priority_boost, SimActiveResource managing_resource, org.palladiosimulator.pcm.core.composition.AssemblyContext assCtx)
  • Method Details

    • fromWaitingToReady

      protected void fromWaitingToReady(WaitingProcess waiting_process, IResourceInstance current)
    • fromRunningToWaiting

      protected void fromRunningToWaiting(WaitingProcess waiting_process, boolean inFront)
    • boostPriority

      protected void boostPriority(de.uka.ipd.sdq.scheduler.IRunningProcess process)
    • punish

      protected void punish(de.uka.ipd.sdq.scheduler.IRunningProcess process)
    • getWaitingProcesses

      public Queue<de.uka.ipd.sdq.scheduler.processes.IWaitingProcess> getWaitingProcesses()
      Specified by:
      getWaitingProcesses in interface de.uka.ipd.sdq.scheduler.IPassiveResource
    • toString

      public String toString()
      Overrides:
      toString in class de.uka.ipd.sdq.scheduler.resources.AbstractSimResource
    • getResource

      public org.palladiosimulator.pcm.repository.PassiveResource getResource()
      Specified by:
      getResource in interface de.uka.ipd.sdq.scheduler.IPassiveResource
    • getAssemblyContext

      public org.palladiosimulator.pcm.core.composition.AssemblyContext getAssemblyContext()
      Specified by:
      getAssemblyContext in interface de.uka.ipd.sdq.scheduler.IPassiveResource