|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--simworldobjects.BasicSimObject
Abstract class for SimObjects, provides a base implementation of the SimObject interface which more complex objects can extend. (e.g SimRCX and SimLight).
SimObject
Constructor Summary | |
BasicSimObject(double height,
double width,
double length,
java.lang.String type,
double x,
double y,
double z,
double bearingXY,
double bearingXZ)
|
Method Summary | |
double |
getActualBearingVelocityXY()
Returns this objects actual bearing velocity in the XY plane |
double |
getActualBearingVelocityXZ()
Returns this objects actual bearing velocity in the XZ plane |
double |
getActualBearingXY()
Returns this objects actual bearing in the XY plane |
double |
getActualBearingXZ()
Returns this objects actual bearing in the XZ plane |
double |
getActualVelocity()
Returns this objects actual velocity. |
double |
getDesiredBearingVelocityXY()
Returns this objects desired bearing velocity in the XY plane |
double |
getDesiredBearingVelocityXZ()
Returns this objects desired bearing velocity in the XZ plane |
double |
getDesiredVelocity()
Returns this objects desired velocity. |
double |
getHeight()
Returns this object's height |
double |
getLength()
Returns this object's length |
java.lang.String |
getType()
Returns a string describing this object's type |
double |
getWidth()
Returns this object's width |
double |
getXCoord()
Returns this objects X coordinate |
double |
getYCoord()
Returns this objects Y coordinate |
double |
getZCoord()
Returns this objects Z coordinate |
void |
setActualBearingVelocityXY(double b)
Sets the actual 'bearing velocity' of this object in the XY plane. |
void |
setActualBearingVelocityXZ(double b)
Sets the actual 'bearing velocity' of this object in the XZ plane. |
void |
setActualBearingXY(double b)
Sets the actual bearing of this object in the XY plane |
void |
setActualBearingXZ(double b)
Sets the actual bearing of this object in the XZ plane |
void |
setActualVelocity(double v)
Sets the actual velocity of this object. |
void |
setDesiredBearingVelocityXY(double v)
Sets the desired 'bearing velocity' of this object in the XY plane. |
void |
setDesiredBearingVelocityXZ(double v)
Sets the desired 'bearing velocity' of this object in the XZ plane - a bearing velocity is the rate at which the object wants to turn. |
void |
setDesiredVelocity(double v)
Sets the desired velocity of this object - the SimWorld will then set its actual velocity accordingly (depending on wheher the object is colliding with another object etc.) Positive values mean the objet wants to move forward, and negative values mean the object wants to move backward. |
void |
setXCoord(double x)
Sets this objects X coordinate |
void |
setYCoord(double y)
Sets this objects Y coordinate |
void |
setZCoord(double z)
Sets this objects Z coordinate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicSimObject(double height, double width, double length, java.lang.String type, double x, double y, double z, double bearingXY, double bearingXZ)
Method Detail |
public void setDesiredVelocity(double v)
SimObject
setDesiredVelocity
in interface SimObject
interfaces.SimObject
v
- the desired velocitypublic void setActualVelocity(double v)
SimObject
setActualVelocity
in interface SimObject
interfaces.SimObject
v
- the actual velocitypublic void setXCoord(double x)
SimObject
setXCoord
in interface SimObject
interfaces.SimObject
x
- the X coordinatepublic void setYCoord(double y)
SimObject
setYCoord
in interface SimObject
interfaces.SimObject
y
- the Y coordinatepublic void setZCoord(double z)
SimObject
setZCoord
in interface SimObject
interfaces.SimObject
z
- the Z coordinatepublic double getDesiredVelocity()
SimObject
getDesiredVelocity
in interface SimObject
interfaces.SimObject
public double getActualVelocity()
SimObject
getActualVelocity
in interface SimObject
interfaces.SimObject
public double getXCoord()
SimObject
getXCoord
in interface SimObject
interfaces.SimObject
public double getYCoord()
SimObject
getYCoord
in interface SimObject
interfaces.SimObject
public double getZCoord()
SimObject
getZCoord
in interface SimObject
interfaces.SimObject
public void setDesiredBearingVelocityXZ(double v)
SimObject
setDesiredBearingVelocityXZ
in interface SimObject
interfaces.SimObject
v
- the desired bearing velocity in the XZ planepublic void setDesiredBearingVelocityXY(double v)
SimObject
setDesiredBearingVelocityXY
in interface SimObject
interfaces.SimObject
v
- the desired bearing velocity in the XY planepublic void setActualBearingVelocityXZ(double b)
SimObject
setActualBearingVelocityXZ
in interface SimObject
interfaces.SimObject
b
- the actual bearing velocity in the XZ planepublic void setActualBearingVelocityXY(double b)
SimObject
setActualBearingVelocityXY
in interface SimObject
interfaces.SimObject
b
- the actual bearing velocity in the XY planepublic void setActualBearingXZ(double b)
SimObject
setActualBearingXZ
in interface SimObject
interfaces.SimObject
b
- the bearingpublic void setActualBearingXY(double b)
SimObject
setActualBearingXY
in interface SimObject
interfaces.SimObject
b
- the bearingpublic double getDesiredBearingVelocityXZ()
SimObject
getDesiredBearingVelocityXZ
in interface SimObject
interfaces.SimObject
public double getDesiredBearingVelocityXY()
SimObject
getDesiredBearingVelocityXY
in interface SimObject
interfaces.SimObject
public double getActualBearingVelocityXZ()
SimObject
getActualBearingVelocityXZ
in interface SimObject
interfaces.SimObject
public double getActualBearingVelocityXY()
SimObject
getActualBearingVelocityXY
in interface SimObject
interfaces.SimObject
public double getActualBearingXZ()
SimObject
getActualBearingXZ
in interface SimObject
interfaces.SimObject
public double getActualBearingXY()
SimObject
getActualBearingXY
in interface SimObject
interfaces.SimObject
public double getHeight()
SimObject
getHeight
in interface SimObject
interfaces.SimObject
public double getWidth()
SimObject
getWidth
in interface SimObject
interfaces.SimObject
public double getLength()
SimObject
getLength
in interface SimObject
interfaces.SimObject
public java.lang.String getType()
SimObject
getType
in interface SimObject
interfaces.SimObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |