org.commonreality.sensors
Interface ISensor

All Superinterfaces:
IIdentifiable, IParticipant, java.io.Serializable
All Known Implementing Classes:
AbstractSensor, DefaultAuralSensor, DefaultKeyboardSensor, DefaultSpeechSensor, DefaultSwingSensor, ProgrammaticSensor, XMLSensor

public interface ISensor
extends IParticipant

The sensor provides afferent and efferent objects to all the IAgent instances that it wants to communicate with. Only ISensor and IReality are permitted to create objects. In order to create objects, the sensor should use IRequestableEfferentObjectManager and IRequestableAfferentObjectManager to request new object instances. For more details, see XMLSensor

Author:
developer

Method Summary
 IRequestableAfferentObjectManager getAfferentObjectManager()
           
 IRequestableEfferentObjectManager getEfferentObjectManager()
           
 void setCredentials(ICredentials credentials)
           
 
Methods inherited from interface org.commonreality.participant.IParticipant
configure, connect, disconnect, getAgentObjectManager, getClock, getEfferentCommandManager, getRealObjectManager, getSensorObjectManager, initialize, isConnected, isInitialized, isStarted, isSuspended, reset, resume, send, shutdown, start, stop, suspend, waitForConnection, waitForResumption, waitForStart, waitForStop, waitForSuspension
 
Methods inherited from interface org.commonreality.identifier.IIdentifiable
getIdentifier
 

Method Detail

setCredentials

void setCredentials(ICredentials credentials)

getEfferentObjectManager

IRequestableEfferentObjectManager getEfferentObjectManager()
Specified by:
getEfferentObjectManager in interface IParticipant

getAfferentObjectManager

IRequestableAfferentObjectManager getAfferentObjectManager()
Specified by:
getAfferentObjectManager in interface IParticipant