|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcat.sig.Profile
This class represents the profile for an Agent. A profile contains information about an agent that the agent is willing to share.
Field Summary | |
private boolean |
available
True if the agent is available for communication. |
private java.lang.String |
displayname
The agent's nickname/psuedoname. |
private java.lang.String |
location
The agent's gps location. |
Constructor Summary | |
Profile()
This constructor initializes the profile with no information |
|
Profile(java.lang.String displayname,
java.lang.String location,
boolean available)
This constructor initializes the profile with the given information. |
Method Summary | |
boolean |
equals(Profile a)
returns true if the agents have the same id. |
java.lang.String |
getLocation()
Returns the agent's location (gps nmea format). |
java.lang.String |
getName()
Returns the agent's nickname. |
boolean |
isAvailable()
Returns whether the agent is available for communication. |
void |
setAvailable(boolean s)
Set's whether the agent is available for communication. |
void |
setLocation(java.lang.String s)
Set's the agent's location (gps nmea format). |
void |
setName(java.lang.String s)
Set's the agent's nickname. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.String displayname
private java.lang.String location
private boolean available
Constructor Detail |
public Profile()
public Profile(java.lang.String displayname, java.lang.String location, boolean available)
displayname
- The nick name of the agent.location
- The port this agent using for communicatingMethod Detail |
public java.lang.String getName()
public boolean isAvailable()
public java.lang.String getLocation()
public void setLocation(java.lang.String s)
s
- The gps name location.public void setName(java.lang.String s)
s
- The name.public void setAvailable(boolean s)
s
- True if available.public boolean equals(Profile a)
a
-
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |