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