public interface Constellation
Modifier and Type | Method and Description |
---|---|
boolean |
activate()
Activate this Constellation implementation.
|
void |
done()
Terminate Constellation.
|
Timer |
getOverallTimer()
Returns the overall timer.
|
Timer |
getTimer()
Creates a
Timer without device, thread, or action name. |
Timer |
getTimer(java.lang.String device,
java.lang.String thread,
java.lang.String action)
Creates a
Timer with the specified device, thread, and action name. |
ConstellationIdentifier |
identifier()
Returns a unique identifier for this Constellation instance.
|
boolean |
isMaster()
Returns
true if this Constellation instance is the master, false otherwise. |
void |
send(Event e)
Send an event.
|
ActivityIdentifier |
submit(Activity activity)
Submit an activity.
|
ActivityIdentifier submit(Activity activity) throws NoSuitableExecutorException
activity
- the Activity to submitNoSuitableExecutorException
- is thrown when the system has detected that no suitable executor can be found.void send(Event e)
e
- the Event to send.boolean activate()
void done()
boolean isMaster()
true
if this Constellation instance is the master, false
otherwise.ConstellationIdentifier identifier()
Timer getTimer(java.lang.String device, java.lang.String thread, java.lang.String action)
Timer
with the specified device, thread, and action name.device
- the device namethread
- the thread nameaction
- the action nameTimer getTimer()
Timer
without device, thread, or action name.Timer getOverallTimer()