|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--MicroTAPAS.MicroActor
|
+--MicroTAPAS.MicroApplicationActor
|
+--MicroTAPAS.mobility.MobilityApplicationActor
This abstract class adds a layer of mobility to the actor hierarchy
| Field Summary | |
private CapsMonitorAgent |
cma
Instance of the capability monitor agent used for monitoring node vs. actor capabilities. |
protected static boolean |
DEBUG
Determines whether debug info to be sent to debug-server |
protected boolean |
doRegister
Variable to that tells the actor to register. |
protected boolean |
isRegistered
This boolean is set to true if the actor is registered. |
private java.util.Vector |
reqQueue
Queue to hold requests while in a move phase. |
private java.lang.String |
selectedStrategy
The currently selected move strategy. |
| Fields inherited from class MicroTAPAS.MicroActor |
bf, context, debug, fh, properties |
| Constructor Summary | |
MobilityApplicationActor()
Constructor |
|
| Method Summary | |
RequestResult |
actorChangeBehaviour(java.lang.String pRoleId,
java.lang.Object ai)
Request to perform an actor change behaviour for own actor. |
RequestResult |
actorChangeBehaviour(java.lang.String pRoleId,
java.lang.String[] pars)
Deprecated. Replaced by actorChangeBehaviour(String, Object) |
RequestResult |
actorMove(GAI moveTo)
Received from CapsMonitorAgent when the offered capabilites of this node has become 'less' than the required capabilites for this actor, or as a explicit command. |
protected RequestResult |
actorRegister()
Method used to register this actor with both MA and MM. |
protected RequestResult |
actorRegisterCancel(boolean isMoved)
Method used to registerCancel this actor with both local MicroPNES and homeInterface MicroPNES (director node). |
RequestResult |
applicationActorEntry(RequestPars pRP)
Common entry point for all actors of this type |
void |
cleanUp()
Gives this Actor instance a chance to clean up when the DebugWindow is closed. |
RequestResult |
control(java.lang.String cmd,
java.lang.String[] pars)
Overloaded mehtod that controls the actor, invokes its functionality, BaseFrame input field can trigger it, as can RoleSessionActions, or the ScriptHandler. |
abstract void |
createInterface(java.lang.Object actorInterface)
Mehtod that enables the (re-)creation of an interface at an actor. |
abstract java.lang.Object |
getInterface()
Method to retrieve the interface of an actor. |
GAI |
getMAGAI()
|
GAI |
getMMGAI()
|
Item |
help()
Method to display a hierarchy of available commands |
void |
init(ActorContext pAC)
To leave constructor empty, this method is used to initialize Object data |
abstract RequestResult |
mobilityActorEntry(RequestPars rp)
Common entry point for all actors who subclass this class. |
private RequestResult |
sendCreateInterface(GAI receiver)
Deprecated. Replaced by sendCreateInterface(GAI,ActorContext,Object) |
private RequestResult |
sendCreateInterface(GAI receiver,
ActorContext ac,
java.lang.Object oldActInterface)
Method to re-create this actor's interface at another actor |
Item |
status()
Report this actor's status through Item elements |
void |
term()
Terminate method from the ActorInterface. |
| Methods inherited from class MicroTAPAS.MicroApplicationActor |
actorBehaviourPlugIn, actorBehaviourPlugOut, ActorCapabilities, actorEntry, ActorPlay, actorPlugIn, actorPlugOut, anyOtherRequestType, closeBF, playChangesPlugIn, playPlugIn, playPlugOut, requestToActor, RoleSessionAction, subscribeCancel, subscribeReport, subscribeRequest |
| Methods inherited from class MicroTAPAS.MicroActor |
findRoleSession, getGAI, start, terminalMove |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final boolean DEBUG
protected boolean doRegister
protected boolean isRegistered
private CapsMonitorAgent cma
private java.lang.String selectedStrategy
private java.util.Vector reqQueue
| Constructor Detail |
public MobilityApplicationActor()
| Method Detail |
public void init(ActorContext pAC)
init in class MicroApplicationActorpAC - context data for this actor
public abstract RequestResult mobilityActorEntry(RequestPars rp)
throws java.lang.Exception
java.lang.Exceptionpublic abstract void createInterface(java.lang.Object actorInterface)
public abstract java.lang.Object getInterface()
public GAI getMAGAI()
public GAI getMMGAI()
public RequestResult control(java.lang.String cmd,
java.lang.String[] pars)
throws java.lang.Exception
control in interface ControlInterfacecontrol in class MicroApplicationActorcmd - First command line argument, used to denote a command name.
java.lang.Exception
public RequestResult applicationActorEntry(RequestPars pRP)
throws java.lang.Exception
applicationActorEntry in class MicroApplicationActorjava.lang.Exception
public RequestResult actorChangeBehaviour(java.lang.String pRoleId,
java.lang.String[] pars)
throws java.lang.Exception
actorChangeBehaviour(String, Object)
actorChangeBehaviour in class MicroApplicationActorpRoleId - New role to be assigned to actorpars - The data withdraw from existing to upgraded actor
java.lang.Exception
public RequestResult actorChangeBehaviour(java.lang.String pRoleId,
java.lang.Object ai)
throws java.lang.Exception
actorChangeBehaviour in class MicroApplicationActorpRoleId - New role to be assigned to actorai - The actor interface
java.lang.Exceptionprotected RequestResult actorRegister()
protected RequestResult actorRegisterCancel(boolean isMoved)
isMoved - Indicated if this actor has been terminated, or has just moved
public RequestResult actorMove(GAI moveTo)
moveTo - New GAI of actor after move
private RequestResult sendCreateInterface(GAI receiver)
sendCreateInterface(GAI,ActorContext,Object)
receiver - The foreign actor whose interface should be replaced by this
actor's interface.
private RequestResult sendCreateInterface(GAI receiver,
ActorContext ac,
java.lang.Object oldActInterface)
receiver - The foreign actor whose interface should be replaced by this
actor's interface.oldActInterface - The interface to be plugged into new actor. If null
a new interface will be queried from actor.
public void cleanUp()
public void term()
MicroActor
term in interface MicroActorInterfaceterm in class MicroActorpublic Item status()
status in class MicroActorpublic Item help()
help in class MicroApplicationActor
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||