|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ObjectInfo
Holds the necessary information about field objects, which were parsed
Field Summary | |
private double |
bodyDir
|
private double |
dirChng
|
protected double |
direction
|
protected double |
distance
|
private double |
distChng
|
private boolean |
gotChanges
|
private double |
headDir
|
private java.lang.String |
objectName
|
private int |
timeStamp
|
Constructor Summary | |
ObjectInfo()
Constructs a new ObjectInfo object with all fields initialized to null or 0. |
|
ObjectInfo(java.lang.String objectName,
int timeStamp)
Constructs a new ObjectInfo object initializing the objectName and timeStamp fields. |
|
ObjectInfo(java.lang.String objectName,
int timeStamp,
double distance,
double direction,
double distChng,
double dirChng)
Constructs a new ObjectInfo object initializing all fields. |
Method Summary | |
double |
getBodyDir()
Returns the direction the body is facing |
double |
getDirChng()
Returns the approximate change of direction from the last update of the directions by the server |
double |
getDirection()
Returns the direction of the object from the agent's facing direction. |
double |
getDistance()
Returns the distance of the object from the agent |
double |
getDistChng()
Returns the approximate change of distance from the last update of positions by the server |
double |
getHeadDir()
Returns the returns the direction the head is facing relative to the body |
java.lang.String |
getObjectName()
Returns the objectName |
boolean |
isGotChanges()
Get the value of gotChanges |
void |
setBodyDir(double bodyDir)
Sets the body direction |
void |
setDirChng(double dirChng)
Sets the direction change |
void |
setDirection(double direction)
Sets the direction |
void |
setDistance(double distance)
Sets the distance |
void |
setDistChng(double distChng)
Sets the distance change |
void |
setGotChanges(boolean v)
Set the value of gotChanges. |
void |
setHeadDir(double headDir)
Sets the head direction |
void |
setObjectName(java.lang.String objectName)
Sets the object name |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.lang.String objectName
protected double distance
protected double direction
private boolean gotChanges
private double distChng
private double dirChng
private double bodyDir
private double headDir
private int timeStamp
Constructor Detail |
public ObjectInfo()
public ObjectInfo(java.lang.String objectName, int timeStamp)
public ObjectInfo(java.lang.String objectName, int timeStamp, double distance, double direction, double distChng, double dirChng)
Method Detail |
public boolean isGotChanges()
public void setGotChanges(boolean v)
v
- Value to assign to gotChangespublic java.lang.String getObjectName()
public double getDistance()
public double getDirection()
public double getDistChng()
public double getDirChng()
public double getBodyDir()
public double getHeadDir()
public void setObjectName(java.lang.String objectName)
public void setDistance(double distance)
public void setDirection(double direction)
public void setDistChng(double distChng)
public void setDirChng(double dirChng)
public void setBodyDir(double bodyDir)
public void setHeadDir(double headDir)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |