|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--MicroTAPAS.mobility.Node
This class is a representation of a node in the MicroTAPAS system.
| Field Summary | |
private java.util.Hashtable |
actors
Register of all registered actors at this node. |
private CapabilitySet |
caps
The offered capabilities of this node. |
GAI |
dirGAI
Address of current director. |
private boolean |
isConnected
Variable to hold information about this node's connection status. |
private static java.lang.String |
LF
LineFeed contstant. |
static int |
MA
MobilityAgent node type variable. |
GAI |
maGAI
Current MA - changes as the node is moved around. |
static int |
MM
MobilityManager node type variable. |
GAI |
mmGAI
Current MM - changes as the node is moved around. |
java.lang.String |
nodeID
Uniquie ID of this node. |
private int |
type
Type of terminal (MA or MM). |
static int |
UNDEFINED
Undefined node type variable. |
| Constructor Summary | |
Node()
Constructor |
|
| Method Summary | |
boolean |
actorMove(java.lang.String aID,
GAI oldGAI,
GAI newGAI)
Method to delete an actor entry in the actor registry when an actor has moved to a different node. |
RequestResult |
addActor(RequestPars pRP)
Adds an actor (really ActorPlugInReq) to to the actor register. |
Item |
getActorStatus()
Status report of registered actors in this entity in Item hierarchy of information elements. |
java.util.Vector |
getAllActorGAI()
Returns a vector of all registered actors GAI's. |
CapabilitySet |
getCaps()
Returns the CapabilitySet of this node. |
boolean |
getConnected()
Returns whether this node is connected or not. |
int |
getType()
|
private int |
nodeType()
Method to determine what kind of mobility node this node is. |
RequestResult |
removeActor(RequestPars pRP)
Removes a previously added actor from the actor registry. |
void |
setConnected(boolean pIsConnected)
Sets the connection status of this node. |
Item |
status()
Status report of this entity in Item hierarchy of information elements. |
void |
terminalMove(java.lang.String oldNode,
java.lang.String newNode)
Updates this object whenever the terminal is moved from one node to another. |
java.lang.String |
toString()
Overloaded toString mehtod. |
void |
updateCapabilities()
Updates the node capabilities for this node by reading them from file. |
private java.lang.String |
vector2String(java.util.Vector v)
Method to convert a vector of Strings into a comma-separated string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final java.lang.String LF
public static final int UNDEFINED
public static final int MM
public static final int MA
private int type
public java.lang.String nodeID
public GAI maGAI
public GAI mmGAI
public GAI dirGAI
private CapabilitySet caps
private java.util.Hashtable actors
private boolean isConnected
| Constructor Detail |
public Node()
| Method Detail |
public void setConnected(boolean pIsConnected)
pIsConnected - True if the node is connected, false otherwise.public boolean getConnected()
public CapabilitySet getCaps()
public void updateCapabilities()
public void terminalMove(java.lang.String oldNode,
java.lang.String newNode)
oldNode - The old nodenewNode - The new nodepublic RequestResult addActor(RequestPars pRP)
pRP - TAPAS-style request parameters.
public RequestResult removeActor(RequestPars pRP)
pRP - TAPAS-style request parameters.
public java.util.Vector getAllActorGAI()
public boolean actorMove(java.lang.String aID,
GAI oldGAI,
GAI newGAI)
aID - The unique actor identificator.oldGAI - The old GAI of the actor.newGAI - The new GAI of the actor.
private int nodeType()
public int getType()
public java.lang.String toString()
toString in class java.lang.Objectpublic Item status()
public Item getActorStatus()
private java.lang.String vector2String(java.util.Vector v)
v - A vector containing String elements
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||