metaglue
Class AgentID

java.lang.Object
  |
  +--metaglue.AgentID

public class AgentID
extends Object
implements Serializable, Iconizable

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()
           
 Icon toIcon(String label)
           
 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

shortName

public String shortName()

setShortName

public void setShortName(String n)

toIcon

public Icon toIcon(String label)
Specified by:
toIcon in interface Iconizable

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