|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.reticular.agentBuilder.agent.perception.AgentInfo
Class for storing the common agent information used to initialize communications.
Constructor Summary | |
AgentInfo()
It initializes the _commInfoArray and sets the IP address to the CURRENT_IP_ADDRESS. |
|
AgentInfo(java.lang.String agentName,
java.lang.String IPAddress,
CommInfo commInfo)
Constructor for the abstract AgentInfo object, to be invoked from the constructors of the subclasses. |
|
AgentInfo(java.lang.String agentName,
java.lang.String IPAddress,
CommInfo[] commInfoArray,
java.security.KeyPair keyPair)
Constructor for the abstract AgentInfo object, to be invoked from the constructors of the subclasses. |
|
AgentInfo(java.lang.String agentName,
java.lang.String IPAddress,
CommInfo commInfo,
java.security.KeyPair keyPair)
Constructor for the abstract AgentInfo object, to be invoked from the constructors of the subclasses. |
Method Summary | |
java.lang.Object |
clone()
THE KEYPAIR CLONING IS NOT IMPLEMENTED. |
boolean |
equals(java.lang.Object other)
Returns true if *this* AgentInfo object and the input other AgentInfo object have the same name, IP Address, comm type, and port number. |
java.lang.String |
getAgentName()
Deprecated. Use getName instead. |
CommInfo[] |
getCommInfoArray()
Get the comm type of the actual agent info object. |
CorbaCommInfo |
getCorbaCommInfo()
Convenience routine for the interface. |
ESpeakCommInfo |
getESpeakCommInfo()
Convenience routine for the interface. |
java.lang.String |
getIPAddress()
Get the current IP address. |
java.security.KeyPair |
getKeyPair()
Get the current key pair. |
java.lang.String |
getName()
Get the agent name. |
CommInfo |
getPrimaryCommInfo()
Returns the primary CommInfo object for this AgentInfo object. |
java.lang.String |
getPrimaryCommType()
Returns the primary comm type for this agent info object. |
RmiCommInfo |
getRmiCommInfo()
Convenience routine for the interface. |
SocketCommInfo |
getSocketCommInfo()
Convenience routine for the interface. |
void |
setAgentName(java.lang.String agentName)
Deprecated. Use setName method instead. |
void |
setCommInfoArray(CommInfo[] commInfoArray)
Set the CommInfo array in this AgentInfo object. |
void |
setCorbaCommInfo(CorbaCommInfo info)
Convenience routine for the interface. |
void |
setESpeakCommInfo(ESpeakCommInfo info)
Convenience routine for the interface. |
void |
setIPAddress(java.lang.String IPAddress)
Set the IP address to the input string. |
void |
setKeyPair(java.security.KeyPair keyPair)
Set the key pair to the input key pair. |
void |
setName(java.lang.String agentName)
Set the agent name to the input string. |
void |
setPrimaryCommInfo(CommInfo newCommInfo)
Sets the primary CommInfo object for this AgentInfo object. |
void |
setRmiCommInfo(RmiCommInfo info)
Convenience routine for the interface. |
void |
setSocketCommInfo(SocketCommInfo info)
Convenience routine for the interface. |
java.lang.String |
toBNFString()
Makes a string from the name, address, and all comm-infos for the agent. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AgentInfo()
public AgentInfo(java.lang.String agentName, java.lang.String IPAddress, CommInfo[] commInfoArray, java.security.KeyPair keyPair)
agentName
- - StringIPAddress
- - String, can be either the host name, e.g.,
"quincy.reticular.com", or the address string, e.g., "199.106.0.6".commInfoArray
- - CommInfo[]keyPair
- - KeyPairpublic AgentInfo(java.lang.String agentName, java.lang.String IPAddress, CommInfo commInfo, java.security.KeyPair keyPair)
agentName
- - StringIPAddress
- - String, can be either the host name, e.g.,
"quincy.reticular.com", or the address string, e.g., "199.106.0.6".commInfo
- - a single CommInfo objectkeyPair
- - KeyPairpublic AgentInfo(java.lang.String agentName, java.lang.String IPAddress, CommInfo commInfo)
agentName
- - StringIPAddress
- - String, can be either the host name, e.g.,
"quincy.reticular.com", or the address string, e.g., "199.106.0.6".commInfo
- - a single CommInfo objectMethod Detail |
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- - Object, will be another AgentInfo objectpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toBNFString()
public java.lang.String getName()
public void setName(java.lang.String agentName)
agentName
- - Stringpublic java.lang.String getAgentName()
public void setAgentName(java.lang.String agentName)
agentName
- - Stringpublic java.lang.String getIPAddress()
public void setIPAddress(java.lang.String IPAddress)
IPAddress
- - Stringpublic java.lang.String getPrimaryCommType()
public CommInfo getPrimaryCommInfo()
public void setPrimaryCommInfo(CommInfo newCommInfo)
newCommInfo
- - CommInfopublic void setCommInfoArray(CommInfo[] commInfoArray)
CommInfo[]
- public CommInfo[] getCommInfoArray()
public void setRmiCommInfo(RmiCommInfo info)
RmiCommInfo
- public RmiCommInfo getRmiCommInfo()
public void setSocketCommInfo(SocketCommInfo info)
SocketCommInfo
- public SocketCommInfo getSocketCommInfo()
public void setCorbaCommInfo(CorbaCommInfo info)
ESpeakCommInfo
- public CorbaCommInfo getCorbaCommInfo()
public void setESpeakCommInfo(ESpeakCommInfo info)
ESpeakCommInfo
- public ESpeakCommInfo getESpeakCommInfo()
public java.security.KeyPair getKeyPair()
public void setKeyPair(java.security.KeyPair keyPair)
keyPair
- - KeyPairpublic java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |