|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--simworldobjects.SimSensor
Abstract class for SimSensors. A SimSensor is a different sort of object to a BasicSimObject. It has single 'owning' SimObject (normally a SimRCX) and all of its parameters are derived from this object. Many of its methods therefore do nothing - they are simply included here to fulfill the requirements of a SimObject.
SimObject
Constructor Summary | |
SimSensor()
|
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 sensor's XZ bearing (the same as the owning SimObject's bearing) |
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 |
abstract int |
getValue()
Returns this sensor's current value |
double |
getWidth()
Returns this object's width |
double |
getXCoord()
Returns this sensor's X coordinate - derived from its owning SimObject |
double |
getYCoord()
Returns this sensor's X coordinate |
double |
getZCoord()
Returns this sensor's Z coordinate - derived from its owning SimObject |
void |
initSimSensor(SimObject object,
double xOffset,
double zOffset,
double height,
double width,
double length,
java.lang.String type)
Initialises this SimSensor |
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 SimSensor()
Method Detail |
public void initSimSensor(SimObject object, double xOffset, double zOffset, double height, double width, double length, java.lang.String type)
public abstract int getValue()
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()
getXCoord
in interface SimObject
interfaces.SimObject
public double getYCoord()
getYCoord
in interface SimObject
interfaces.SimObject
public double getZCoord()
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()
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 |