javaclient
Class AbstractPositionDevice

java.lang.Object
  extended by javaclient.PlayerDevice
      extended by javaclient.AbstractPositionDevice
Direct Known Subclasses:
Position2DInterface, Position3DInterface, PositionInterface

public abstract class AbstractPositionDevice
extends PlayerDevice

Abstract class for all Player Position* interfaces. Used for PositionControl and HeadingControl.

Author:
Radu Bogdan Rusu

Field Summary
 
Fields inherited from class javaclient.PlayerDevice
device, DIFFERENCE_SYNCH_FACTOR, index, is, os, pc, PLAYER_MAX_REQREP_SIZE, PLAYER_STXX, reserved, size, t_sec, t_usec, ts_sec, ts_usec
 
Constructor Summary
AbstractPositionDevice(PlayerClient plc)
          Abstract constructor for each AbstractPositionDevice.
 
Method Summary
abstract  int getX()
           
abstract  int getY()
           
abstract  int getYaw()
           
abstract  void setSpeed(int speed, int turnrate)
           
 
Methods inherited from class javaclient.PlayerDevice
getTimeForDataSampled_sec, getTimeForDataSampled_usec, getTimeForDataSampled, getTimeForDataSent_sec, getTimeForDataSent_usec, getTimeForDataSent, handleEARMessage, handleNARMessage, handleResponse, readData, readHeader, sendHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPositionDevice

public AbstractPositionDevice(PlayerClient plc)
Abstract constructor for each AbstractPositionDevice.

Parameters:
plc - a reference to the PlayerClient object
Method Detail

getX

public abstract int getX()

getY

public abstract int getY()

getYaw

public abstract int getYaw()

setSpeed

public abstract void setSpeed(int speed,
                              int turnrate)