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

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

public class SensorEncoder
extends SuperSensor

Sensor message representative for Victim 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
SensorEncoder()
          Ctor.
 
Method Summary
 Set<String> getEncoderNames()
          String is the sensor name.
 int getEncodersSize()
          Returns Encoder tick list size.
 int getTickByName(String Name)
          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

SensorEncoder

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

getTickByName

public int getTickByName(String Name)
String is the sensor name. Integer is the tick count. Example: SEN {Type Encoder} {Name ECLeft Tick -61} {Name ECRight Tick -282} {Name ECTilt Tick 0} {Name ECPan Tick 0}

Parameters:
Name - String representation of Tick.
Returns:
Returns Tick value by input Name.

getEncoderNames

public Set<String> getEncoderNames()
String is the sensor name. Integer is the tick count. Example: SEN {Type Encoder} {Name ECLeft Tick -61} {Name ECRight Tick -282} {Name ECTilt Tick 0} {Name ECPan Tick 0}

Returns:
Returns KeySet representing the Encoder Tick names.

getEncodersSize

public int getEncodersSize()
Returns Encoder tick list size.

Returns:
Returns Encoder tick list size.


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