public interface IActiveResource
Modifier and Type | Method and Description |
---|---|
void |
addObserver(IActiveResourceStateSensor observer) |
String |
getId()
Unique identifier of the resource.
|
String |
getName()
Name of the resource.
|
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 |
notifyTerminated(ISchedulableProcess simProcess) |
void |
process(ISchedulableProcess process,
int resourceServiceId,
Map<String,Serializable> parameterMap,
double demand)
Processes the specified demand of the process.
|
void |
registerProcess(ISchedulableProcess runningProcess) |
void |
removeObserver(IActiveResourceStateSensor observer) |
void |
start()
Creates the initial events for the resource.
|
void |
stop() |
void |
updateDemand(ISchedulableProcess process,
double demand)
Update (currently consuming) demand for a process.
|
void process(ISchedulableProcess process, int resourceServiceId, Map<String,Serializable> parameterMap, double demand)
double getRemainingDemand(ISchedulableProcess process)
void updateDemand(ISchedulableProcess process, double demand)
void start()
String getId()
String getName()
void stop()
void registerProcess(ISchedulableProcess runningProcess)
void notifyTerminated(ISchedulableProcess simProcess)
int getQueueLengthFor(SchedulerEntity schedulerEntity, int coreID)
schedulerEntity
- void addObserver(IActiveResourceStateSensor observer)
void removeObserver(IActiveResourceStateSensor observer)