net.jinx.action.input.robot
Class Robot
java.lang.Object
net.jinx.action.Actor
net.jinx.action.input.Participant
net.jinx.action.input.robot.Robot
- All Implemented Interfaces:
- ClockSensitive
public class Robot
- extends Participant
Robot is a Participant extension that is suitable for simulating robots and
vehicles. Each Robot has a name (since it's an Actor) and a collection of
RobotSystem objects.
API Stability: Alpha.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Robot
public Robot(java.lang.String name,
RobotSystem[] systems)
Robot
public Robot(java.lang.String name,
RobotSystem[] systems,
Behavior b)
getSystem
protected RobotSystem getSystem(java.lang.String name)
getReadout
public Readout getReadout(java.lang.String name)
getControl
protected Control getControl(java.lang.String name)
getCondition
public Condition getCondition()
- Description copied from class:
Participant
- Provides the Condition object for this Participant.
- Specified by:
getCondition
in class Participant
- Returns:
- the Condition object.
processAction
public void processAction(Action action)
- Description copied from class:
Participant
- Should be called by Behavior to process the actions it produces.
- Specified by:
processAction
in class Participant
- Parameters:
action
- the Action object.
step
protected void step(float dt)
- Description copied from class:
Participant
- Calls the Behavior's act(Participant, float) method. Subclasses can
override this to do more if needed.
- Overrides:
step
in class Participant
- Parameters:
dt
- the change in time value.