org.commonreality.agents
Class AbstractAgent
java.lang.Object
org.commonreality.participant.impl.AbstractParticipant
org.commonreality.agents.AbstractAgent
- All Implemented Interfaces:
- java.io.Serializable, IAgent, IIdentifiable, IParticipant
public abstract class AbstractAgent
- extends AbstractParticipant
- implements IAgent
- Author:
- developer
- See Also:
- Serialized Form
| Methods inherited from class org.commonreality.participant.impl.AbstractParticipant |
addClientService, addServerService, configure, getAfferentObjectManager, getAgentObjectManager, getClock, getEfferentCommandManager, getEfferentObjectManager, getIdentifier, getRealObjectManager, getSensorObjectManager, initialize, isConnected, isInitialized, isStarted, isSuspended, reset, resume, send, shutdown, start, stop, suspend, waitForConnection, waitForInitialization, waitForResumption, waitForStart, waitForStop, waitForSuspension |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.commonreality.participant.IParticipant |
configure, getAfferentObjectManager, getAgentObjectManager, getClock, getEfferentCommandManager, getEfferentObjectManager, getRealObjectManager, getSensorObjectManager, initialize, isConnected, isInitialized, isStarted, isSuspended, reset, resume, send, shutdown, start, stop, suspend, waitForConnection, waitForResumption, waitForStart, waitForStop, waitForSuspension |
AbstractAgent
public AbstractAgent()
- Parameters:
type -
getCredentials
public ICredentials getCredentials()
- Specified by:
getCredentials in class AbstractParticipant
- See Also:
AbstractParticipant.getCredentials()
getName
public abstract java.lang.String getName()
- Specified by:
getName in class AbstractParticipant
- See Also:
AbstractParticipant.getName()
setCredentials
public void setCredentials(ICredentials credentials)
- Specified by:
setCredentials in interface IAgent
- See Also:
IAgent.setCredentials(org.commonreality.message.credentials.ICredentials)
getAddressingInformation
public IAddressingInformation getAddressingInformation()
- by default, we dont accept connections so return null
- Specified by:
getAddressingInformation in class AbstractParticipant
- See Also:
AbstractParticipant.getAddressingInformation()
setIdentifier
public void setIdentifier(IIdentifier identifier)
- Description copied from class:
AbstractParticipant
- called after the connection has been established..
- Overrides:
setIdentifier in class AbstractParticipant
connect
public void connect()
throws java.lang.Exception
- Specified by:
connect in interface IParticipant- Overrides:
connect in class AbstractParticipant
- Throws:
java.lang.Exception- See Also:
IParticipant.connect()
disconnect
public void disconnect()
throws java.lang.Exception
- Specified by:
disconnect in interface IParticipant- Overrides:
disconnect in class AbstractParticipant
- Throws:
java.lang.Exception