Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

RS::ActuatorInterface Class Reference

This class is the interface between the decision maker and the actuators. More...

Collaboration diagram for RS::ActuatorInterface:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void init (Actuators *actuators)
 Initialize the actuator interface.

virtual bool addToPlan (Command *command)
 Add a command to the current step in the current plan.

virtual bool addToPlan (Step step)
 Add a step to the current step in the current plan.

virtual bool addToPlan (AgentStep step)
 Add a step to the current step in the current plan.

virtual bool replacePlan (const Plan &plan)
 Tries to replace the current plan with a new plan.

Step getNextStep () const
 Returns the next step in the plan.

bool empty () const
 Returns true iff the current plan is empty.


Protected Member Functions

 ActuatorInterface (const ActuatorInterface &)
ActuatorInterface & operator= (const ActuatorInterface &)

Protected Attributes

ActuatorstheActuators
Plan currentPlan

Detailed Description

This class is the interface between the decision maker and the actuators.

Unit:
BasicSystem
Revision
1.4
Author
petan
Date
2004/08/18 12:05:17

Definition at line 80 of file ActuatorInterface.h.


Member Function Documentation

bool RS::ActuatorInterface::addToPlan Command   command [virtual]
 

Add a command to the current step in the current plan.

The ActuatorInterface will take control of the command so don't delete it locally. This is currently implemented as sending this command this step.

Definition at line 78 of file ActuatorInterface.cc.

References RS::Actuators::executeCommand().

Referenced by addToPlan().

bool RS::ActuatorInterface::addToPlan Step    step [virtual]
 

Add a step to the current step in the current plan.

This is currently implemented as sending all the commands in the step right away.

Definition at line 99 of file ActuatorInterface.cc.

References addToPlan(), RS::Command::clone(), RS::Step::empty(), RS::Step::getNextCommand(), and RS::Step::removeNextCommand().

bool RS::ActuatorInterface::addToPlan AgentStep    step [virtual]
 

Add a step to the current step in the current plan.

This is currently implemented as sending all the commands in the step right away.

Definition at line 110 of file ActuatorInterface.cc.

References addToPlan(), RS::Command::clone(), RS::AgentStep::empty(), RS::AgentStep::getNextCommand(), and RS::AgentStep::removeNextCommand().

bool RS::ActuatorInterface::replacePlan const Plan   plan [inline, virtual]
 

Tries to replace the current plan with a new plan.

This is currently *not* implemented!

Definition at line 72 of file ActuatorInterface.icc.


The documentation for this class was generated from the following files:
Generated on Mon Aug 29 08:22:56 2011 for RoboSoc by doxygen1.3-rc3