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
Modifier and TypeFieldDescriptionprotected SimActiveResource
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
ConstructorDescriptionSimAbstractPassiveResource
(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 TypeMethodDescriptionprotected void
boostPriority
(de.uka.ipd.sdq.scheduler.IRunningProcess process) protected void
fromRunningToWaiting
(WaitingProcess waiting_process, boolean inFront) protected void
fromWaitingToReady
(WaitingProcess waiting_process, IResourceInstance current) 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) toString()
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
-
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
-
fromRunningToWaiting
-
boostPriority
protected void boostPriority(de.uka.ipd.sdq.scheduler.IRunningProcess process) -
punish
protected void punish(de.uka.ipd.sdq.scheduler.IRunningProcess process) -
getWaitingProcesses
- Specified by:
getWaitingProcesses
in interfacede.uka.ipd.sdq.scheduler.IPassiveResource
-
toString
- Overrides:
toString
in classde.uka.ipd.sdq.scheduler.resources.AbstractSimResource
-
getResource
public org.palladiosimulator.pcm.repository.PassiveResource getResource()- Specified by:
getResource
in interfacede.uka.ipd.sdq.scheduler.IPassiveResource
-
getAssemblyContext
public org.palladiosimulator.pcm.core.composition.AssemblyContext getAssemblyContext()- Specified by:
getAssemblyContext
in interfacede.uka.ipd.sdq.scheduler.IPassiveResource
-