org.commonreality.sensors
Class AbstractSensor
java.lang.Object
org.commonreality.participant.impl.AbstractParticipant
org.commonreality.sensors.AbstractSensor
- All Implemented Interfaces:
- java.io.Serializable, IIdentifiable, IParticipant, ISensor
- Direct Known Subclasses:
- DefaultAuralSensor, DefaultKeyboardSensor, DefaultSpeechSensor, DefaultSwingSensor, ProgrammaticSensor, XMLSensor
public abstract class AbstractSensor
- extends AbstractParticipant
- implements ISensor
- Author:
- developer
- See Also:
- Serialized Form
| Methods inherited from class org.commonreality.participant.impl.AbstractParticipant |
addClientService, addServerService, configure, getAgentObjectManager, getClock, getEfferentCommandManager, getIdentifier, getName, 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, getAgentObjectManager, getClock, getEfferentCommandManager, getSensorObjectManager, initialize, isConnected, isInitialized, isStarted, isSuspended, reset, resume, send, shutdown, start, stop, suspend, waitForConnection, waitForResumption, waitForStart, waitForStop, waitForSuspension |
AbstractSensor
public AbstractSensor()
- Parameters:
type -
setCredentials
public void setCredentials(ICredentials credentials)
- Specified by:
setCredentials in interface ISensor
getInterfacedAgents
public java.util.Collection<IIdentifier> getInterfacedAgents()
setIdentifier
public void setIdentifier(IIdentifier identifier)
- Description copied from class:
AbstractParticipant
- called after the connection has been established..
- Overrides:
setIdentifier in class AbstractParticipant
getEfferentObjectManager
public IRequestableEfferentObjectManager getEfferentObjectManager()
- Specified by:
getEfferentObjectManager in interface IParticipant- Specified by:
getEfferentObjectManager in interface ISensor- Overrides:
getEfferentObjectManager in class AbstractParticipant
getAfferentObjectManager
public IRequestableAfferentObjectManager getAfferentObjectManager()
- Specified by:
getAfferentObjectManager in interface IParticipant- Specified by:
getAfferentObjectManager in interface ISensor- Overrides:
getAfferentObjectManager in class AbstractParticipant
getRealObjectManager
public IRequestableRealObjectManager getRealObjectManager()
- Specified by:
getRealObjectManager in interface IParticipant- Overrides:
getRealObjectManager in class AbstractParticipant
getCredentials
public ICredentials getCredentials()
- Specified by:
getCredentials in class AbstractParticipant
getAddressingInformation
public IAddressingInformation getAddressingInformation()
- by default, we dont open any listeners, so we return null
- Specified by:
getAddressingInformation in class AbstractParticipant
- See Also:
AbstractParticipant.getAddressingInformation()
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