cz.cuni.amis.pogamut.usar2004.agent.module.sensor
Class SensorSound

Package class diagram package SensorSound
java.lang.Object
  extended by cz.cuni.amis.pogamut.usar2004.agent.module.sensor.SuperSensor
      extended by cz.cuni.amis.pogamut.usar2004.agent.module.sensor.SensorSound

public class SensorSound
extends SuperSensor

Sensor message representative for Sound sensor.

Author:
vejmanm

Field Summary
static SensorType type
           
 
Fields inherited from class cz.cuni.amis.pogamut.usar2004.agent.module.sensor.SuperSensor
lastMessage, sensorType
 
Constructor Summary
SensorSound()
          Ctor.
 
Method Summary
 double getDuration()
          Duration of a sound from the sound sensor.
 double getLoudness()
          Loudnes from the sound sensor.
 
Methods inherited from class cz.cuni.amis.pogamut.usar2004.agent.module.sensor.SuperSensor
getName, getSensorType, getTime, getType, isReady, updateMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public static final SensorType type
Constructor Detail

SensorSound

public SensorSound()
Ctor. Sensor type describes particular subject about which we want to know about. It is used to distinguish incoming message from the server.

Method Detail

getLoudness

public double getLoudness()
Loudnes from the sound sensor.

Returns:
Returns loundness of a sound.

getDuration

public double getDuration()
Duration of a sound from the sound sensor.

Returns:
Returns a drutaion of a sound.


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.