|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object simbad.sim.BaseObject simbad.sim.SimpleAgent simbad.sim.Agent
This is the base class for all robot and is considered to be a heavy agent.
When deriving a new robot's class from this class, one should override the following methods:
Constructor Summary | |
Agent(javax.vecmath.Vector3d pos,
java.lang.String name)
Constructs an Agent. |
Method Summary | |
java.lang.String |
asString()
Returns printable description of the agent. |
AgentInspector |
getAgentInspector()
|
double |
getOdometer()
Returns the agent's odometer in meters. |
double |
getRotationalVelocity()
Gets rotational velocity in radians per second |
double |
getTranslationalVelocity()
Gets translational velocity in meter per second. |
javax.swing.JPanel |
getUIPanel()
Returns the UI panel previously set with setUIPanel |
void |
setAgentInspector(AgentInspector ai)
|
void |
setRotationalVelocity(double rv)
Sets rotational velocity in radians per second. |
void |
setTranslationalVelocity(double tv)
Sets translational velocity in meter per second. |
void |
setUIPanel(javax.swing.JPanel panel)
Add a UI panel to the agent. |
Methods inherited from class simbad.sim.SimpleAgent |
anOtherAgentIsVeryNear, attach, collisionDetected, detach, getActuatorDevice, getActuatorList, getCanBeTraversed, getCoords, getCounter, getHeight, getLifeTime, getMass, getName, getRadius, getRotationTransform, getSensorDevice, getSensorList, getTranslationTransform, getVeryNearAgent, interactionDetected, moveToStartPosition, rotateY, setCanBeTraversed, setColor, translateTo |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Agent(javax.vecmath.Vector3d pos, java.lang.String name)
pos
- start position in 3D world.name
- name of the agent.Method Detail |
public double getOdometer()
public final void setRotationalVelocity(double rv)
public final void setTranslationalVelocity(double tv)
public final double getRotationalVelocity()
public final double getTranslationalVelocity()
public void setUIPanel(javax.swing.JPanel panel)
panel
- public javax.swing.JPanel getUIPanel()
setUIPanel
public AgentInspector getAgentInspector()
public void setAgentInspector(AgentInspector ai)
public java.lang.String asString()
asString
in class SimpleAgent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |