org.commonreality.sensors.aural
Class DefaultAuralSensor

java.lang.Object
  extended by org.commonreality.participant.impl.AbstractParticipant
      extended by org.commonreality.sensors.AbstractSensor
          extended by org.commonreality.sensors.aural.DefaultAuralSensor
All Implemented Interfaces:
java.io.Serializable, IIdentifiable, IParticipant, ISensor

public class DefaultAuralSensor
extends AbstractSensor

See Also:
Serialized Form

Field Summary
static java.lang.String MUTATOR_PREFIX
           
 
Constructor Summary
DefaultAuralSensor()
           
 
Method Summary
 void configure(java.util.Map<java.lang.String,java.lang.String> options)
           
 java.lang.String getName()
           
 void initialize()
          called in response to a command from Reality to get everything ready to run.
 IRealObject newSound(java.lang.String[] types, java.lang.String content, double onset, double duration)
           
 IRealObject newVocalization(java.lang.String content, double onset, double duration, IIdentifier agent)
           
 void queueSound(IRealObject aural)
           
 void resume()
           
 void shutdown()
           
 void start()
          Start it up by queueing the Runnable _cycle on the Executor
 
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, getAgentObjectManager, getClock, getEfferentCommandManager, getIdentifier, getSensorObjectManager, isConnected, isInitialized, isStarted, isSuspended, reset, 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
getAgentObjectManager, getClock, getEfferentCommandManager, getSensorObjectManager, isConnected, isInitialized, isStarted, isSuspended, reset, send, stop, suspend, waitForConnection, waitForResumption, waitForStart, waitForStop, waitForSuspension
 
Methods inherited from interface org.commonreality.identifier.IIdentifiable
getIdentifier
 

Field Detail

MUTATOR_PREFIX

public static final java.lang.String MUTATOR_PREFIX
See Also:
Constant Field Values
Constructor Detail

DefaultAuralSensor

public DefaultAuralSensor()
Method Detail

configure

public void configure(java.util.Map<java.lang.String,java.lang.String> options)
               throws java.lang.Exception
Specified by:
configure in interface IParticipant
Overrides:
configure in class AbstractParticipant
Throws:
java.lang.Exception

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

start

public void start()
           throws java.lang.Exception
Start it up by queueing the Runnable _cycle on the Executor

Specified by:
start in interface IParticipant
Overrides:
start in class AbstractParticipant
Throws:
java.lang.Exception
See Also:
AbstractParticipant.start()

shutdown

public void shutdown()
              throws java.lang.Exception
Specified by:
shutdown in interface IParticipant
Overrides:
shutdown in class AbstractParticipant
Throws:
java.lang.Exception

resume

public void resume()
            throws java.lang.Exception
Specified by:
resume in interface IParticipant
Overrides:
resume in class AbstractParticipant
Throws:
java.lang.Exception

getName

public java.lang.String getName()
Specified by:
getName in class AbstractParticipant

newSound

public IRealObject newSound(java.lang.String[] types,
                            java.lang.String content,
                            double onset,
                            double duration)

newVocalization

public IRealObject newVocalization(java.lang.String content,
                                   double onset,
                                   double duration,
                                   IIdentifier agent)

queueSound

public void queueSound(IRealObject aural)