Class SimProcessorSharingResourceWindows
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
de.uka.ipd.sdq.scheduler.resources.active.AbstractActiveResource
de.uka.ipd.sdq.scheduler.resources.active.special.SimProcessorSharingResourceWindows
- All Implemented Interfaces:
IActiveResource,de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
This class is for testing purposes only. It is used for the MASCOTS paper case study.
-
Field Summary
Fields inherited from class de.uka.ipd.sdq.scheduler.resources.AbstractSimResource
capacityFields inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
delegateFields inherited from interface de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
NULL -
Constructor Summary
ConstructorsConstructorDescriptionSimProcessorSharingResourceWindows(SchedulerModel model, String name, String id, long numberOfCores, IResourceTableManager resourceTableManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddequeue(ISchedulableProcess process) protected voiddoProcessing(ISchedulableProcess process, int resourceServiceID, double demand) protected voidenqueue(ISchedulableProcess process) intgetQueueLengthFor(SchedulerEntity schedulerEntity, int coreID) Get the number of processes currently having requests issued to this resource and waiting for the request to complete.doublegetRemainingDemand(ISchedulableProcess process) Returns the remaining demand for a process.voidregisterProcess(ISchedulableProcess process) voidvoidstart()Creates the initial events for the resource.voidstop()voidupdateDemand(ISchedulableProcess process, double demand) Update (currently consuming) demand for a process.Methods inherited from class de.uka.ipd.sdq.scheduler.resources.active.AbstractActiveResource
addObserver, doProcessing, fireDemandCompleted, fireStateChange, notifyTerminated, process, removeObserverMethods inherited from class de.uka.ipd.sdq.scheduler.resources.AbstractSimResource
equals, getCapacity, getId, getName, hashCode, toStringMethods inherited from class de.uka.ipd.sdq.scheduler.entities.SchedulerEntity
getModelMethods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
getEncapsulatedEntity, isScheduled, rescheduleMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.uka.ipd.sdq.scheduler.IActiveResource
getId, getName
-
Constructor Details
-
SimProcessorSharingResourceWindows
public SimProcessorSharingResourceWindows(SchedulerModel model, String name, String id, long numberOfCores, IResourceTableManager resourceTableManager)
-
-
Method Details
-
scheduleNextEvent
public void scheduleNextEvent() -
getRemainingDemand
Description copied from interface:IActiveResourceReturns the remaining demand for a process. -
updateDemand
Description copied from interface:IActiveResourceUpdate (currently consuming) demand for a process. -
start
public void start()Description copied from interface:IActiveResourceCreates the initial events for the resource. -
dequeue
- Specified by:
dequeuein classAbstractActiveResource
-
doProcessing
- Specified by:
doProcessingin classAbstractActiveResource
-
enqueue
- Specified by:
enqueuein classAbstractActiveResource
-
stop
public void stop() -
registerProcess
-
getQueueLengthFor
Description copied from interface:IActiveResourceGet the number of processes currently having requests issued to this resource and waiting for the request to complete.- Returns:
-