org.commonreality.modalities.aural
Class DefaultAuralPropertyHandler

java.lang.Object
  extended by org.commonreality.modalities.DefaultPropertyHandler
      extended by org.commonreality.modalities.aural.DefaultAuralPropertyHandler
All Implemented Interfaces:
IAuralPropertyHandler, IModalityPropertyHandler, IPropertyHandler

public class DefaultAuralPropertyHandler
extends DefaultPropertyHandler
implements IAuralPropertyHandler

Author:
developer

Field Summary
 
Fields inherited from interface org.commonreality.modalities.aural.IAuralPropertyHandler
AURAL_MODALITY, DURATION, IS_AUDIBLE, ONSET, TOKEN, TYPE
 
Constructor Summary
DefaultAuralPropertyHandler()
           
 
Method Summary
 double getDuration(ISimulationObject object)
           
 double getOnset(ISimulationObject object)
           
 java.lang.String getToken(ISimulationObject object)
           
 java.lang.String[] getTypes(ISimulationObject object)
           
 boolean hasModality(ISensoryObject sensoryObject)
          This tests if an IAfferentObject is a aural..
 boolean isAudible(ISimulationObject object)
           
 
Methods inherited from class org.commonreality.modalities.DefaultPropertyHandler
getBoolean, getDouble, getDoubles, getInt, getInts, getString, getStrings, hasProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.commonreality.object.IPropertyHandler
getBoolean, getDouble, getDoubles, getInt, getInts, getString, getStrings, hasProperty
 

Constructor Detail

DefaultAuralPropertyHandler

public DefaultAuralPropertyHandler()
Method Detail

isAudible

public boolean isAudible(ISimulationObject object)
                  throws UnknownPropertyNameException
Specified by:
isAudible in interface IAuralPropertyHandler
Throws:
UnknownPropertyNameException
See Also:
org.commonreality.modalities.aural.IAuralPropertyHandler#isAudible()

hasModality

public boolean hasModality(ISensoryObject sensoryObject)
This tests if an IAfferentObject is a aural..

Specified by:
hasModality in interface IModalityPropertyHandler
See Also:
IModalityPropertyHandler.hasModality(org.commonreality.object.ISensoryObject)

getToken

public java.lang.String getToken(ISimulationObject object)
                          throws UnknownPropertyNameException
Specified by:
getToken in interface IAuralPropertyHandler
Throws:
UnknownPropertyNameException
See Also:
IAuralPropertyHandler.getToken(org.commonreality.object.ISimulationObject)

getTypes

public java.lang.String[] getTypes(ISimulationObject object)
                            throws UnknownPropertyNameException
Specified by:
getTypes in interface IAuralPropertyHandler
Throws:
UnknownPropertyNameException
See Also:
org.commonreality.modalities.aural.IAuralPropertyHandler#getType(org.commonreality.object.ISimulationObject)

getDuration

public double getDuration(ISimulationObject object)
                   throws UnknownPropertyNameException
Specified by:
getDuration in interface IAuralPropertyHandler
Throws:
UnknownPropertyNameException

getOnset

public double getOnset(ISimulationObject object)
                throws UnknownPropertyNameException
Specified by:
getOnset in interface IAuralPropertyHandler
Throws:
UnknownPropertyNameException