net.jinx.action.input.robot
Class Robot

java.lang.Object
  extended by net.jinx.action.Actor
      extended by net.jinx.action.input.Participant
          extended by 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.


Constructor Summary
Robot(java.lang.String name, RobotSystem[] systems)
           
Robot(java.lang.String name, RobotSystem[] systems, Behavior b)
           
 
Method Summary
 Condition getCondition()
          Provides the Condition object for this Participant.
protected  Control getControl(java.lang.String name)
           
 Readout getReadout(java.lang.String name)
           
protected  RobotSystem getSystem(java.lang.String name)
           
 void processAction(Action action)
          Should be called by Behavior to process the actions it produces.
protected  void step(float dt)
          Calls the Behavior's act(Participant, float) method.
 
Methods inherited from class net.jinx.action.input.Participant
getBehavior, processEvent, setBehavior
 
Methods inherited from class net.jinx.action.Actor
checkAllowAdd, getName, getOwner, hashCode, ownerChanged, sendEvent, sendEvent, sendEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Robot

public Robot(java.lang.String name,
             RobotSystem[] systems)

Robot

public Robot(java.lang.String name,
             RobotSystem[] systems,
             Behavior b)
Method Detail

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.