|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaa.core.ActorName
This class creates a window for MAA (Multi-Actor Architecture).
An actor name is represented in two different types:
History:
Field Summary | |
private boolean |
m_bValid
|
private int |
m_iID
|
private java.lang.String |
m_strHostAddress
|
private java.lang.String |
m_strLocationAddress
|
Constructor Summary | |
ActorName(ActorName p_anActor)
Creates unique actor name for an actor with another actor name. |
|
ActorName(java.lang.String p_strUAN)
Creates unique actor name for an actor with string representation of a UAN. |
|
ActorName(java.lang.String p_strHostAddress,
int p_iID)
Creates unique actor name for an actor with host address of the platform where the actor is created, and unique identifier ot the actor. |
Method Summary | |
int |
compareTo(java.lang.Object p_objOther)
Compares this actor name with the specified actor name for ordering. |
boolean |
equals(ActorName p_anOther)
Checkes whether this actor name is same as the specified actor name. |
boolean |
equals(java.lang.Object p_objOther)
Checkes whether this actor name is same as the specified object. |
java.lang.String |
getHostAddress()
Returns the host address of this actor name. |
int |
getID()
Returns the identification number of this actor name. |
java.lang.String |
getLAN()
Returns the LAN of this actor name. |
java.lang.String |
getLocationAddress()
Returns the current location address. |
java.lang.String |
getUAN()
Returns the UAN of this actor name. |
boolean |
isValid()
Checkes wheter the current actor name is valid. |
void |
setLocationAddress(java.lang.String p_strLocationAddress)
Sets the current location address. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int m_iID
private java.lang.String m_strHostAddress
private java.lang.String m_strLocationAddress
private boolean m_bValid
Constructor Detail |
public ActorName(java.lang.String p_strHostAddress, int p_iID)
p_strHostAddress
- the host address of this platform.p_iID
- a unique identifier of this actor.public ActorName(ActorName p_anActor)
p_anActor
- another actor name to be copied.public ActorName(java.lang.String p_strUAN)
p_strUAN
- the string representation of a UAN.Method Detail |
public int compareTo(java.lang.Object p_objOther)
compareTo
in interface java.lang.Comparable
p_objOther
- another object to be compared.
public boolean equals(java.lang.Object p_objOther)
p_objOther
- the reference to actor name of another actor to be checked
true
if this actor name is the same as the specified object; false
otherwise.public boolean equals(ActorName p_anOther)
p_anOther
- the name of another actor to be checked.
true
if this actor name is the same as the specified actor name; false
otherwise.public int getID()
public java.lang.String getHostAddress()
public void setLocationAddress(java.lang.String p_strLocationAddress)
p_strLocationAddress
- the current location address.public java.lang.String getLocationAddress()
public boolean isValid()
public java.lang.String getUAN()
public java.lang.String getLAN()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |