public class SimProcessorSharingResource extends AbstractActiveResource
| Constructor and Description |
|---|
SimProcessorSharingResource(SchedulerModel model,
String name,
String id,
long i) |
| 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 SimProcessorSharingResource(SchedulerModel model, String name, String id, long i)
public void scheduleNextEvent()
public void start()
IActiveResourcepublic double getRemainingDemand(ISchedulableProcess process)
IActiveResourcepublic void updateDemand(ISchedulableProcess process, double demand)
IActiveResourcepublic void registerProcess(ISchedulableProcess process)
public int getQueueLengthFor(SchedulerEntity schedulerEntity, int coreID)
IActiveResourcepublic void stop()