|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ControllerRemote
Remote (RMI) interface that Controllers implement and use to interoperate.
Method Summary | |
---|---|
void |
addEvent(Event ev)
Insert event in into event queue. |
void |
addEvent(java.lang.reflect.Method meth,
EntityRef ref,
java.lang.Object[] params)
Insert event in into event queue (performance: avoids need to get controller instance to create event - shaves off around 10%). |
void |
addEvent(java.lang.reflect.Method meth,
EntityRef ref,
java.lang.Object[] params,
long time)
Insert event in into event queue (performance: avoids need to get controller instance to create event - shaves off around 10%). |
void |
endAt(long time)
End simulation after given time-step. |
java.lang.Class |
getEntityClass(int index)
Return type of specific entity at this Controller. |
void |
log(java.lang.String s)
Emit message in JisT log. |
void |
setSimUnits(long ticks,
java.lang.String name)
Set the simulation time units. |
void |
start()
Start the Controller processing thread with given rewriter instance. |
java.lang.String |
toStringEntity(int index)
Return toString of a specific entity at this Controller. |
Method Detail |
---|
void start() throws java.rmi.RemoteException
java.rmi.RemoteException
- rpc failurevoid endAt(long time) throws java.rmi.RemoteException
time
- simulation time to end
java.rmi.RemoteException
- rpc failurevoid setSimUnits(long ticks, java.lang.String name) throws java.rmi.RemoteException
ticks
- number of simulation quantaname
- unit of time name
java.rmi.RemoteException
- rpc failurevoid addEvent(Event ev) throws java.rmi.RemoteException
ev
- event to schedule
java.rmi.RemoteException
- rpc failurevoid addEvent(java.lang.reflect.Method meth, EntityRef ref, java.lang.Object[] params) throws java.rmi.RemoteException
meth
- method of event to scheduleref
- entity reference of event to scheduleparams
- parameters of event to schedule
java.rmi.RemoteException
- rpc failurevoid addEvent(java.lang.reflect.Method meth, EntityRef ref, java.lang.Object[] params, long time) throws java.rmi.RemoteException
meth
- method of event to scheduleref
- entity reference of event to scheduleparams
- parameters of event to scheduletime
- event invocation time
java.rmi.RemoteException
- rpc failurejava.lang.Class getEntityClass(int index) throws java.rmi.RemoteException
index
- local entity identifier
java.rmi.RemoteException
- rpc failurejava.lang.String toStringEntity(int index) throws java.rmi.RemoteException
index
- local entity identifier
java.rmi.RemoteException
- rpc failurevoid log(java.lang.String s) throws java.rmi.RemoteException
s
- string to log
java.rmi.RemoteException
- rpc failure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |