|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.reticular.agentBuilder.agent.mentalState.Agent
Description : The Agent class stores the information about an agent, e.g., the agent's name, address, the agencies to which it belongs, its communication type, etc.
Constructor Summary | |
Agent(AgentInfo agentInfo)
Description : TEMPORARY Constructor for the Agent object, to be used until we develop support for arrays. |
|
Agent(AgentInfo agentInfo,
java.lang.String[] agencies)
Description : Constructor for the Agent object. |
Method Summary | |
java.lang.Object |
clone()
Description : Clone the Agent object |
boolean |
equals(java.lang.Object agent)
Description : If its the correct type and the fields are equals then return true. |
AgentInfo |
getAgentInfo()
Description : Returns a reference to the AgentInfo object stored in this Agent object. |
java.lang.String |
getCommType()
Description : Get the current comm type. |
java.lang.String |
getIPAddress()
Description : Get the current IP address. |
java.security.KeyPair |
getKeyPair()
Description : Get the current key pair. |
java.lang.String |
getName()
Description : Get the current agent name. |
java.security.PrivateKey |
getPrivateKey()
Description : Get the private key from the current key pair. |
java.security.PublicKey |
getPublicKey()
Description : Get the public key from the current key pair. |
java.lang.String |
getUserName()
Description : getter |
void |
print()
Description : Print the agent name and address. |
void |
setAgentInfo(AgentInfo agentInfo)
Description : Set the reference in this Agent object to the input AgentInfo object. |
void |
setIPAddress(java.lang.String IPAddress)
Description : Set the IP address to the input string. |
void |
setKeyPair(java.security.KeyPair keyPair)
Description : Set the key pair to the input key pair. |
void |
setName(java.lang.String agentName)
Description : Set the agent name to the input string. |
void |
setUserName(java.lang.String newName)
Description : setter |
java.lang.String |
toBNFString()
Description : |
java.lang.String |
toString()
Description : |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Agent(AgentInfo agentInfo, java.lang.String[] agencies)
- public Agent(AgentInfo agentInfo)
- Method Detail |
public boolean equals(java.lang.Object agent)
equals
in class java.lang.Object
Object
- The instance to compare against.public void setUserName(java.lang.String newName)
newName
- - The new name of the user.public java.lang.String getUserName()
- public AgentInfo getAgentInfo()
- public void setAgentInfo(AgentInfo agentInfo)
agentInfo
- - AgentInfo
- public java.lang.String getName()
- public void setName(java.lang.String agentName)
agentName
- - String
- public java.lang.String getIPAddress()
- public void setIPAddress(java.lang.String IPAddress)
IPAddress
- - String
- public java.lang.String getCommType()
- public java.security.KeyPair getKeyPair()
- public void setKeyPair(java.security.KeyPair keyPair)
keyPair
- - KeyPair
- public java.security.PublicKey getPublicKey()
- public java.security.PrivateKey getPrivateKey()
- public java.lang.Object clone()
clone
in class java.lang.Object
- public void print()
- public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toBNFString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |