Biter

biter
Class SenseBody

java.lang.Object
  |
  +--biter.Input
        |
        +--biter.SensorInput
              |
              +--biter.SenseBody

public class SenseBody
extends SensorInput

A class that contains information received from a sense_body message.

Version:
$Revision: 1.10 $, $Date: 2001/02/27 22:24:31 $
Author:
Shaun P. Wood

Field Summary
private  int dashCount
          The number of dash messages sent by the player.
private  double effort
          The player's Effort.
private  int headDirection
          The player's head direction.
private  int kickCount
          The number of kick messages sent by the player.
private  int sayCount
          The number of say messages sent by the player.
private  double speed
          Estimate of the player's speed.
private  double stamina
          The player's Stamina.
private  int turnCount
          The number of turn messages sent by the player.
private  int turnNeckCount
          The number of turn_neck messages sent by the player.
private  String viewQuality
          The ViewQuality.
private  String viewWidth
          The ViewWidth.
 
Fields inherited from class biter.Input
realTime, timeStamp
 
Constructor Summary
SenseBody()
          A simple constructor that only initializes the timeStamp.
SenseBody(String data)
           
SenseBody(String data, long timeReceived)
           
 
Method Summary
 int getDashCount()
           
 double getEffort()
           
 int getHeadDirection()
           
 int getKickCount()
           
 int getSayCount()
           
 double getSpeed()
           
 double getStamina()
           
 int getTurnCount()
           
 int getTurnNeckCount()
           
 String getViewQuality()
           
 String getViewWidth()
           
private  void parse(String data)
          Parses information in a 'sense_body' message.
 void setDashCount(int dashCount)
           
 void setEffort(double effort)
           
 void setHeadDirection(int headDirection)
           
 void setKickCount(int kickCount)
           
 void setSayCount(int sayCount)
           
 void setSpeed(double speed)
           
 void setStamina(double stamina)
           
 void setTurnCount(int turnCount)
           
 void setTurnNeckCount(int turnNeckCount)
           
 void setViewQuality(String viewQuality)
           
 void setViewWidth(String viewWidth)
           
 String toString()
          Converts the information in the class into readable output.
 
Methods inherited from class biter.Input
getRealTime, getTimeStamp, setTimeStamp
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

viewQuality

private String viewQuality
The ViewQuality.

viewWidth

private String viewWidth
The ViewWidth.

stamina

private double stamina
The player's Stamina.

effort

private double effort
The player's Effort.

speed

private double speed
Estimate of the player's speed.

headDirection

private int headDirection
The player's head direction. This is relative to the body.

kickCount

private int kickCount
The number of kick messages sent by the player.

dashCount

private int dashCount
The number of dash messages sent by the player.

turnCount

private int turnCount
The number of turn messages sent by the player.

sayCount

private int sayCount
The number of say messages sent by the player.

turnNeckCount

private int turnNeckCount
The number of turn_neck messages sent by the player.
Constructor Detail

SenseBody

public SenseBody()
A simple constructor that only initializes the timeStamp.

SenseBody

public SenseBody(String data,
                 long timeReceived)

SenseBody

public SenseBody(String data)
Method Detail

parse

private void parse(String data)
Parses information in a 'sense_body' message.

toString

public String toString()
Converts the information in the class into readable output. For debugging purposes.
Overrides:
toString in class SensorInput
Returns:
a String containing the information in the class.

setViewQuality

public void setViewQuality(String viewQuality)

setViewWidth

public void setViewWidth(String viewWidth)

setStamina

public void setStamina(double stamina)

setEffort

public void setEffort(double effort)

setSpeed

public void setSpeed(double speed)

setHeadDirection

public void setHeadDirection(int headDirection)

setKickCount

public void setKickCount(int kickCount)

setDashCount

public void setDashCount(int dashCount)

setTurnCount

public void setTurnCount(int turnCount)

setSayCount

public void setSayCount(int sayCount)

setTurnNeckCount

public void setTurnNeckCount(int turnNeckCount)

getViewQuality

public String getViewQuality()

getViewWidth

public String getViewWidth()

getStamina

public double getStamina()

getEffort

public double getEffort()

getSpeed

public double getSpeed()

getHeadDirection

public int getHeadDirection()

getKickCount

public int getKickCount()

getDashCount

public int getDashCount()

getTurnCount

public int getTurnCount()

getSayCount

public int getSayCount()

getTurnNeckCount

public int getTurnNeckCount()

Biter

From the Biter project.