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
AgentID
public AgentID(String occupation)
AgentID
public AgentID(String society,
String occupation)
AgentID
public AgentID(String society,
String occupation,
Object designation)
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