metaglue
Class AgentID

java.lang.Object
  |
  +--metaglue.AgentID
All Implemented Interfaces:
Serializable, Speakable

public class AgentID
extends Object
implements Serializable, Speakable

See Also:
Serialized Form

Constructor Summary
AgentID(String occupation)
           
AgentID(String society, String occupation)
           
AgentID(String society, String occupation, Object designation)
           
 
Method Summary
 boolean equals(Object o)
           
static AgentID fromString(String s)
           
static AgentID fromString(String society, String s)
          This takes a default society if one is not specified.
 Object getDesignation()
           
 String getName()
          This returns just the name of the class without the package name (so for agentland.device.Phone it will return Phone);
 String getNameAndDesignation()
           
 String getOccupation()
           
 String getOccupationAndDesignation()
           
 String getPackage()
           
 String getSociety()
           
 int hashCode()
           
 void setShortName(String n)
           
 String shortName()
           
 String toSpeech()
          Returns a string representation of this that is speakable by a speech synthesizer.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentID

public AgentID(String occupation)

AgentID

public AgentID(String society,
               String occupation)

AgentID

public AgentID(String society,
               String occupation,
               Object designation)
Method Detail

getSociety

public String getSociety()

getOccupation

public String getOccupation()

getDesignation

public Object getDesignation()

getPackage

public String getPackage()

getName

public String getName()
This returns just the name of the class without the package name (so for agentland.device.Phone it will return Phone);

getNameAndDesignation

public String getNameAndDesignation()

getOccupationAndDesignation

public String getOccupationAndDesignation()

toString

public String toString()
Overrides:
toString in class Object

toSpeech

public String toSpeech()
Returns a string representation of this that is speakable by a speech synthesizer.
Specified by:
toSpeech in interface Speakable
Returns:
a String value

shortName

public String shortName()

setShortName

public void setShortName(String n)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

fromString

public static AgentID fromString(String society,
                                 String s)
                          throws IllegalArgumentException
This takes a default society if one is not specified.

fromString

public static AgentID fromString(String s)
                          throws IllegalArgumentException

hashCode

public int hashCode()
Overrides:
hashCode in class Object