public class SimProcessorSharingResourceWindows extends AbstractActiveResource
| Constructor and Description |
|---|
SimProcessorSharingResourceWindows(SchedulerModel model,
String name,
String id,
long numberOfCores) |
| Modifier and Type | Method and Description |
|---|---|
int |
getQueueLengthFor(SchedulerEntity schedulerEntity,
int coreID)
Get the number of processes currently having requests issued to this resource and waiting for
the request to complete.
|
double |
getRemainingDemand(ISchedulableProcess process)
Returns the remaining demand for a process.
|
void |
registerProcess(ISchedulableProcess process) |
void |
scheduleNextEvent() |
void |
start()
Creates the initial events for the resource.
|
void |
stop() |
void |
updateDemand(ISchedulableProcess process,
double demand)
Update (currently consuming) demand for a process.
|
addObserver, cleanProcesses, notifyTerminated, process, removeObserverequals, getCapacity, getId, getName, hashCode, toStringgetModelgetEncapsulatedEntity, isScheduled, reschedulegetId, getNamepublic SimProcessorSharingResourceWindows(SchedulerModel model, String name, String id, long numberOfCores)
public void scheduleNextEvent()
public double getRemainingDemand(ISchedulableProcess process)
IActiveResourcepublic void updateDemand(ISchedulableProcess process, double demand)
IActiveResourcepublic void start()
IActiveResourcepublic void stop()
public void registerProcess(ISchedulableProcess process)
public int getQueueLengthFor(SchedulerEntity schedulerEntity, int coreID)
IActiveResource