public interface DistributedActor
DistributedActorWrapper
,
Actor
,
Executable
Modifier and Type | Method and Description |
---|---|
void |
fire()
Fire the distributed actor.
|
java.net.InetAddress |
getAddress()
Return the Internet Address where the distributed actor is executing.
|
void |
initialize()
Begin execution of the actor.
|
int |
iterate(int count)
Invoke a specified number of iterations of the actor.
|
boolean |
loadMoML(java.lang.String moml)
Load a moml representation of an actor.
|
boolean |
postfire()
This method should be invoked once per iteration, after the last
invocation of fire() in that iteration.
|
boolean |
prefire()
This method should be invoked once per iteration, before the first
invocation of fire() in that iteration.
|
void |
preinitialize()
This method should be invoked exactly once per execution
of a model, before any of these other methods are invoked.
|
void |
put(java.util.HashMap data)
Puts copies of the token received into the Receivers included in the
IDlist.
|
void |
setConnections(java.util.HashMap connections)
Set the "virtual connections" concerning the wrapped actor.
|
void |
setPortTypes(java.util.HashMap portTypes)
Set the port types of the wrapped actor.
|
void |
stop()
Request that execution of the wrapped actor to stop as
soon as possible.
|
void |
stopFire()
Request that execution of the current iteration of the
wrapped actor complete.
|
void |
terminate()
Terminate any currently executing model with extreme prejudice.
|
void |
wrapup()
This method is invoked exactly once per execution
of an application.
|
void fire() throws java.rmi.RemoteException
java.rmi.RemoteException
- If a communication-related exception may
occur during the execution of a remote method call.java.net.InetAddress getAddress() throws java.rmi.RemoteException
java.rmi.RemoteException
- If a communication-related exception may
occur during the execution of a remote method call.void initialize() throws java.rmi.RemoteException
java.rmi.RemoteException
- If a communication-related exception may
occur during the execution of a remote method call.int iterate(int count) throws java.rmi.RemoteException
count
- The number of iterations to perform.java.rmi.RemoteException
- If a communication-related exception may
occur during the execution of a remote method call.boolean loadMoML(java.lang.String moml) throws java.rmi.RemoteException
moml
- The moml code representing the actor to be loaded.java.rmi.RemoteException
- If a communication-related exception may
occur during the execution of a remote method call.boolean postfire() throws java.rmi.RemoteException
java.rmi.RemoteException
- If a communication-related exception may
occur during the execution of a remote method call.boolean prefire() throws java.rmi.RemoteException
java.rmi.RemoteException
- If a communication-related exception may
occur during the execution of a remote method call.void preinitialize() throws java.rmi.RemoteException
java.rmi.RemoteException
- If a communication-related exception may
occur during the execution of a remote method call.void put(java.util.HashMap data) throws java.rmi.RemoteException, IllegalActionException
data
- contains a token and a list of IDs.java.rmi.RemoteException
- If a communication-related exception may
occur during the execution of a remote method call.IllegalActionException
- If the transaction fails (e.g.
the data type is incompatible).void setConnections(java.util.HashMap connections) throws java.rmi.RemoteException
connections
- a mapping of ports, services and receiver IDs (see
before).java.rmi.RemoteException
- If a communication-related exception may
occur during the execution of a remote method call.void setPortTypes(java.util.HashMap portTypes) throws java.rmi.RemoteException
portTypes
- is a Map of ports to port types.java.rmi.RemoteException
- If a communication-related exception may
occur during the execution of a remote method call.void stop() throws java.rmi.RemoteException
java.rmi.RemoteException
- If a communication-related exception may
occur during the execution of a remote method call.void stopFire() throws java.rmi.RemoteException
java.rmi.RemoteException
- If a communication-related exception may
occur during the execution of a remote method call.void terminate() throws java.rmi.RemoteException
java.rmi.RemoteException
- If a communication-related exception may
occur during the execution of a remote method call.void wrapup() throws java.rmi.RemoteException
java.rmi.RemoteException
- If a communication-related exception may
occur during the execution of a remote method call.