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

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

public class SensorRange
extends SuperSensor

Sensor message representative for Range 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
SensorRange()
          Ctor.
 
Method Summary
 double getRangeByName(String Name)
          Map indexed by string is used to collect data of range sensor.
 Set<String> getRangeNames()
          Map indexed by string is used to collect data of range sensor.
 Map<String,Double> getRanges()
          Map indexed by string is used to collect data of range sensor.
 int getSize()
          Returns size of Ranges.
 
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

SensorRange

public SensorRange()
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

getRangeByName

public double getRangeByName(String Name)
Map indexed by string is used to collect data of range sensor. �Dtring’ is the sensor name, �Double’ is the range value in meters.

Parameters:
Name - String representation of Range Name.
Returns:
Returns range from range sensor(Sonar) matching input Name.

getRangeNames

public Set<String> getRangeNames()
Map indexed by string is used to collect data of range sensor. �Dtring’ is the sensor name, �Double’ is the range value in meters.

Returns:
Returns Keyset of the map representing names of range ranges.

getSize

public int getSize()
Returns size of Ranges.

Returns:
Returns size of Ranges.

getRanges

public Map<String,Double> getRanges()
Map indexed by string is used to collect data of range sensor. �Dtring’ is the sensor name, �Double’ is the range value in meters.

Returns:
Returns Map of ranges from range sensor(Sonar).


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