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, removeObserver
equals, getCapacity, getId, getName, hashCode, toString
getModel
getEncapsulatedEntity, isScheduled, reschedule
getId, getName
public SimFCFSResource(SchedulerModel model, String name, String id, long capacity)
public void scheduleNextEvent()
public void start()
IActiveResource
public double getRemainingDemand(ISchedulableProcess process)
IActiveResource
public void updateDemand(ISchedulableProcess process, double demand)
IActiveResource
public void stop()
public void registerProcess(ISchedulableProcess process)
public int getQueueLengthFor(SchedulerEntity schedulerEntity, int coreID)
IActiveResource