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

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

public class SensorTouch
extends SuperSensor

Sensor message representative for Touch 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
SensorTouch()
          Ctor.
 
Method Summary
 boolean getTouchByName(String Name)
          String is the sensor name.
 int getTouchesSize()
          Returns size of touch map.
 Set<String> getTouchNames()
          String is the sensor name.
 
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

SensorTouch

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

getTouchByName

public boolean getTouchByName(String Name)
String is the sensor name. Boolean indicates whether the sensor is touching something. Value �True’ means the sensor is touching something.

Parameters:
Name - String representation of touch sensor name.
Returns:
Returns Boolean value matching Name.

getTouchNames

public Set<String> getTouchNames()
String is the sensor name. Boolean indicates whether the sensor is touching something. Value �True’ means the sensor is touching something.

Returns:
Returns KeySet of Touch Map.

getTouchesSize

public int getTouchesSize()
Returns size of touch map.

Returns:
Returns size of touch map.


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