|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWorldConnection<ADDRESS extends IWorldConnectionAddress>
Interface for the connection to a remote world.
Simple methods that are needed to make connection read/write messages.
Implementor is required to implement the interface as reusable. Meaning that one instance of object may serve first as the connection to one server and then to another.
Control the object through IControllable
interface.
Example scenario 1:
Or more advance scenario 2 (reconnection):
Method Summary | |
---|---|
ADDRESS |
getAddress()
Get the descriptor of the connection's remote side. |
void |
setAddress(ADDRESS address)
Sets the connection address to the object. |
void |
setLogMessages(boolean logMessages)
Sets whether to log the messages that are sent/received through writer/reader. |
Methods inherited from interface cz.cuni.amis.pogamut.base.communication.connection.IWorldReaderProvider |
---|
getReader |
Methods inherited from interface cz.cuni.amis.pogamut.base.component.IComponent |
---|
getComponentId |
Methods inherited from interface cz.cuni.amis.pogamut.base.communication.connection.IWorldWriterProvider |
---|
getWriter |
Method Detail |
---|
void setLogMessages(boolean logMessages)
logMessages
- ADDRESS getAddress()
void setAddress(ADDRESS address) throws CommunicationException
If the object is connected - it throws exception AlreadyConnectedException
address
-
CommunicationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |