public class Agent extends SimpleAgent
Constructor and Description |
---|
Agent(javax.vecmath.Vector3d pos,
java.lang.String name)
Constructs an Agent.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asString()
Returns printable description of the agent.
|
AgentInspector |
getAgentInspector() |
double |
getOdometer()
Returns the agent's odometer in meters.
|
double |
getRotationalVelocity() |
double |
getTranslationalVelocity() |
javax.swing.JPanel |
getUIPanel()
Returns the UI panel previously set with
setUIPanel |
void |
setAgentInspector(AgentInspector ai) |
void |
setRotationalVelocity(double rv) |
void |
setTranslationalVelocity(double tv) |
void |
setUIPanel(javax.swing.JPanel panel)
Add a UI panel to the agent.
|
anOtherAgentIsVeryNear, collisionDetected, getActuatorDevice, getActuatorList, getCoords, getCounter, getFramesPerSecond, getHeight, getLifeTime, getMass, getName, getRadius, getSensorDevice, getSensorList, getVeryNearAgent, interactionDetected, moveToPosition, moveToPosition, moveToStartPosition
attach, detach, getCanBeTraversed, getRotationTransform, getTranslationTransform, rotateY, setCanBeTraversed, setColor, translateTo
public Agent(javax.vecmath.Vector3d pos, java.lang.String name)
pos
- start position in 3D world.name
- name of the agent.public java.lang.String asString()
asString
in class SimpleAgent
public AgentInspector getAgentInspector()
public double getOdometer()
public final double getRotationalVelocity()
public final double getTranslationalVelocity()
public javax.swing.JPanel getUIPanel()
setUIPanel
public void setAgentInspector(AgentInspector ai)
public final void setRotationalVelocity(double rv)
rv
- Sets rotational velocity in radians per second.public final void setTranslationalVelocity(double tv)
tv
- Sets translational velocity in meter per second.public void setUIPanel(javax.swing.JPanel panel)
panel
- p