org.commonreality.sensors.prog
Class ProgrammaticSensor

java.lang.Object
  extended by org.commonreality.participant.impl.AbstractParticipant
      extended by org.commonreality.sensors.AbstractSensor
          extended by 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

Constructor Summary
ProgrammaticSensor()
           
 
Method Summary
 void add(java.util.Collection<IAfferentObject> objects)
           
 void add(IAfferentObject object)
           
 void commit(IIdentifier agentId)
          commit all the changes..
 java.lang.String getName()
           
 void initialize()
          called in response to a command from Reality to get everything ready to run.
 IAfferentObject newAfferent(IIdentifier agentId)
           
 void remove(java.util.Collection<IAfferentObject> objects)
           
 void remove(IAfferentObject object)
           
 void shutdown()
           
 void start()
          called to actually start this participant
 void update(java.util.Collection<IObjectDelta> deltas)
           
 void update(IObjectDelta delta)
           
 
Methods inherited from class org.commonreality.sensors.AbstractSensor
connect, disconnect, getAddressingInformation, getAfferentObjectManager, getCredentials, getEfferentObjectManager, getInterfacedAgents, getRealObjectManager, setCredentials, setIdentifier
 
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
 
Methods inherited from interface org.commonreality.identifier.IIdentifiable
getIdentifier
 

Constructor Detail

ProgrammaticSensor

public ProgrammaticSensor()
Method Detail

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..