|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--MicroTAPAS.MicroActor
|
+--MicroTAPAS.mobility.MobilitySupportActor
|
+--MicroTAPAS.mobility.MobilityAgent1
| Field Summary | |
protected static boolean |
DEBUG
Determines whether debug info to be sent to debug-server |
protected static boolean |
isConnected
|
protected Node |
node
Object to hold information about THIS node |
protected java.lang.String |
nodeID
Unique ID for this terminal |
protected static MicroPingClient |
pc
|
protected static MicroPingServer |
ps
|
protected GAI |
registryGAI
Address of the registry where this node is registered |
| Fields inherited from class MicroTAPAS.MicroActor |
bf, context, debug, fh, properties |
| Constructor Summary | |
MobilityAgent1()
Constructor |
|
| Method Summary | |
RequestResult |
actorEntry(RequestPars rp)
Common enrty point of this actor to invoke some activity from outside |
void |
cleanUp()
|
RequestResult |
control(java.lang.String command,
java.lang.String[] pars)
Controls this entity through text commands and paramters. |
boolean |
getConnected()
Returns the connection status of this entity |
java.util.Vector |
getPingNodes()
Returns a vector of pingable nodes |
void |
init(ActorContext pAC)
To leave constructor empty, this method is used to initialize Object data |
private void |
locateNewMM(java.lang.String oldNode,
java.lang.String newNode)
|
RequestResult |
mobilityActorEntry(RequestPars pRP)
Common enrty point of this actor to invoke some activity from outside |
private RequestResult |
registerNode()
Method to register this node with MM. |
protected RequestResult |
registerNodeCancel()
Method method to RegisterNodeCancel this node with MM. |
protected RequestResult |
requestToActor(RequestPars pRP)
Common method for most types of requests from actors to other actors |
void |
setConnected(boolean pIsConnected,
Node pNode)
Method that allows changing the connection status. |
void |
start()
Starts this entity |
Item |
status()
Status report of this entity in Item hierarchy of information elements. |
void |
term()
Gives this actor a chance to clean up before closing down. |
void |
terminalMoveLocation(java.lang.String oldNode,
java.lang.String newNode)
Method to handle the detected moving of a terminal, i.e. that a terminal has received a new IP address. |
| Methods inherited from class MicroTAPAS.MicroActor |
findRoleSession, getGAI, 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 GAI registryGAI
protected java.lang.String nodeID
protected static MicroPingClient pc
protected static MicroPingServer ps
protected static boolean isConnected
protected Node node
| Constructor Detail |
public MobilityAgent1()
| Method Detail |
public void init(ActorContext pAC)
init in class MobilitySupportActorpAC - context data for this actorpublic void start()
start in interface MicroActorInterfacestart in class MobilitySupportActor
public RequestResult control(java.lang.String command,
java.lang.String[] pars)
throws java.lang.Exception
control in interface ControlInterfacecontrol in class MobilitySupportActorcommand - the command to be performed
java.lang.Exceptionpublic RequestResult mobilityActorEntry(RequestPars pRP)
mobilityActorEntry in class MobilitySupportActorpRP - Parameters for the activity this actorEntry will attempt to carry out
public java.util.Vector getPingNodes()
getPingNodes in class MobilitySupportActorprivate RequestResult registerNode()
protected RequestResult registerNodeCancel()
public void terminalMoveLocation(java.lang.String oldNode,
java.lang.String newNode)
terminalMoveLocation in class MobilitySupportActoroldNode - The old address.newNode - The new address.
private void locateNewMM(java.lang.String oldNode,
java.lang.String newNode)
public void setConnected(boolean pIsConnected,
Node pNode)
setConnected in class MobilitySupportActorpIsConnected - Boolean indicating whether the specified node is connected.pNode - The node that has no connection (for MA=this node)public Item status()
status in class MobilitySupportActorpublic void term()
term in interface MicroActorInterfaceterm in class MobilitySupportActorpublic RequestResult actorEntry(RequestPars rp)
actorEntry in interface MicroActorInterfacerp - Parameters for the activity this actorEntry will attempt to carry out
public boolean getConnected()
false indicates no connection.protected RequestResult requestToActor(RequestPars pRP)
pRP - The request
public void cleanUp()
cleanUp in interface ControlInterface
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||