org.commonreality.sensors.prog
Class ProgrammaticSensor
java.lang.Object
org.commonreality.participant.impl.AbstractParticipant
org.commonreality.sensors.AbstractSensor
org.commonreality.sensors.prog.ProgrammaticSensor
- All Implemented Interfaces:
- java.io.Serializable, IIdentifiable, IParticipant, ISensor
public class ProgrammaticSensor
- extends AbstractSensor
- Author:
- developer
- See Also:
- Serialized Form
| Methods inherited from class org.commonreality.participant.impl.AbstractParticipant |
addClientService, addServerService, configure, getAgentObjectManager, getClock, getEfferentCommandManager, getIdentifier, getSensorObjectManager, isConnected, isInitialized, isStarted, isSuspended, reset, resume, send, 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, isConnected, isInitialized, isStarted, isSuspended, reset, resume, send, stop, suspend, waitForConnection, waitForResumption, waitForStart, waitForStop, waitForSuspension |
ProgrammaticSensor
public ProgrammaticSensor()
getName
public java.lang.String getName()
- Specified by:
getName in class AbstractParticipant
- See Also:
AbstractParticipant.getName()
initialize
public void initialize()
throws java.lang.Exception
- Description copied from class:
AbstractParticipant
- called in response to a command from Reality to get everything ready to
run.
- Specified by:
initialize in interface IParticipant- Overrides:
initialize in class AbstractParticipant
- Throws:
java.lang.Exception
shutdown
public void shutdown()
throws java.lang.Exception
- Specified by:
shutdown in interface IParticipant- Overrides:
shutdown in class AbstractParticipant
- Throws:
java.lang.Exception
start
public void start()
throws java.lang.Exception
- Description copied from class:
AbstractParticipant
- called to actually start this participant
- Specified by:
start in interface IParticipant- Overrides:
start in class AbstractParticipant
- Throws:
java.lang.Exception
newAfferent
public IAfferentObject newAfferent(IIdentifier agentId)
add
public void add(IAfferentObject object)
add
public void add(java.util.Collection<IAfferentObject> objects)
remove
public void remove(IAfferentObject object)
remove
public void remove(java.util.Collection<IAfferentObject> objects)
update
public void update(IObjectDelta delta)
update
public void update(java.util.Collection<IObjectDelta> deltas)
commit
public void commit(IIdentifier agentId)
- commit all the changes..