1 package cz.cuni.amis.pogamut.usar2004.agent.module.sensor;
2
3 import cz.cuni.amis.pogamut.usar2004.agent.module.datatypes.SensorType;
4
5
6
7
8
9
10 public class SensorSound extends SuperSensor
11 {
12
13 public static final SensorType type = SensorType.SOUND_SENSOR;
14
15
16
17
18
19 public SensorSound()
20 {
21 super(type);
22 }
23
24
25
26
27
28
29 public double getLoudness()
30 {
31 return lastMessage.getLoudness();
32 }
33
34
35
36
37
38
39 public double getDuration()
40 {
41 return lastMessage.getDuration();
42 }
43 }