|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.reticular.agentBuilder.agent.perception.CommInfo | +--com.reticular.agentBuilder.agent.perception.RmiCommInfo
Class provides the information needed to initialize RMI communications.
Fields inherited from class com.reticular.agentBuilder.agent.perception.CommInfo |
CORBA_COMM_TYPE, DEFAULT_CORBA_PORT, DEFAULT_ESPEAK_PORT, DEFAULT_RMI_PORT, DEFAULT_SOCKET_PORT, ESPEAK_COMM_TYPE, RMI_COMM_TYPE, SOCKET_COMM_TYPE |
Constructor Summary | |
RmiCommInfo()
Creates a RmiCommInfo with a random port number between 1000 and 6000. |
|
RmiCommInfo(int port)
Constructor for RmiCommInfo |
Method Summary | |
java.lang.Object |
clone()
Returns a clone of this object. |
boolean |
equals(java.lang.Object other)
Returns true if the input object is an RmiCommInfo object and if the _rmiRegistryPort values match. |
java.lang.String |
getCommType()
Get the comm type of this actual agent info object. |
boolean |
getIsSupported()
Indicates whether this agent will support this comm type. |
int |
getPort()
Get the port the registry is using. |
int |
getRmiRegistryPort()
Get the port the registry is using. |
void |
setIsSupported(boolean isSupported)
Indicates whether this agent will support this comm type. |
void |
setRmiRegistryPort(int port)
Sets the rmiregistry port. |
java.lang.String |
toBNFString()
Encodes the RmiCommInfo object in a BNF compatible way. |
Methods inherited from class com.reticular.agentBuilder.agent.perception.CommInfo |
getRandomPort |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RmiCommInfo()
public RmiCommInfo(int port)
int
- boolean
- Method Detail |
public boolean equals(java.lang.Object other)
equals
in class CommInfo
other
- - Object, a instance of a subclass of CommInfopublic java.lang.String toBNFString()
toBNFString
in class CommInfo
public java.lang.String getCommType()
getCommType
in class CommInfo
public int getPort()
getPort
in class CommInfo
public void setIsSupported(boolean isSupported)
boolean
- public boolean getIsSupported()
getIsSupported
in class CommInfo
public int getRmiRegistryPort()
public void setRmiRegistryPort(int port)
port
- - The port number. Defaults to 1199.public java.lang.Object clone()
clone
in class CommInfo
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |