|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IResourceInstance
This class represents an instance of an active resources. It got a unique ID and knows the process it is currently executing.
| Method Summary | |
|---|---|
void |
addObserver(IActiveResourceStateSensor observer)
|
void |
assign(IRunningProcess process)
Assigns a new process to this instance. |
void |
cancelSchedulingEvent()
Removes a pending SchedulingEvent. |
IRunningProcess |
getLastRunningProcess()
|
String |
getName()
Unique name of the resource instance. |
double |
getNextSchedEventTime()
|
IRunningProcess |
getRunningProcess()
|
boolean |
isIdle()
|
boolean |
isScheduling()
|
boolean |
processAssigned()
|
void |
release()
Releases the current resource instance. |
void |
removeObserver(IActiveResourceStateSensor observer)
|
void |
scheduleSchedulingEvent(double time)
Schedules the next SchedulingEvent for the instance at the specified time. |
void |
schedulingInterrupt(double time)
Schedules a SchedulingInterrupt. |
void |
setIsScheduling(boolean b)
|
void |
start()
|
void |
stop()
|
| Method Detail |
|---|
String getName()
IRunningProcess getRunningProcess()
boolean processAssigned()
void assign(IRunningProcess process)
process - Process to execute on the resource instance.void release()
void scheduleSchedulingEvent(double time)
time - Time the event shall occur.void schedulingInterrupt(double time)
time - b - void cancelSchedulingEvent()
double getNextSchedEventTime()
void start()
void stop()
void setIsScheduling(boolean b)
boolean isScheduling()
void addObserver(IActiveResourceStateSensor observer)
void removeObserver(IActiveResourceStateSensor observer)
boolean isIdle()
IRunningProcess getLastRunningProcess()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||