Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

SIGEL_Simulation::SIG_CommandInterface Class Reference

This interface is used to communicate commands to the Simulation-Data. More...

#include <SIG_CommandInterface.h>

Inheritance diagram for SIGEL_Simulation::SIG_CommandInterface:

SIGEL_Simulation::SIG_DynaMechsCommandInterface SIGEL_Simulation::SIG_DynaMoCommandInterface List of all members.

Public Methods

 SIG_CommandInterface ()
 The constructor. More...

virtual void moveDrive (int driveNo, QVector<SIG_Register> const& registers) = 0
 Interpretes a "MOVE" from the program. More...


Detailed Description

This interface is used to communicate commands to the Simulation-Data.

To perform commands (e.g. enacting forces) in the simulator one has to use this class. This is the class needed to change the simulation.

Definition at line 16 of file SIG_CommandInterface.h.


Constructor & Destructor Documentation

SIGEL_Simulation::SIG_CommandInterface::SIG_CommandInterface ( )
 

The constructor.

Precondition:
theSimulationData has been created
Postcondition:
the SIG_CommandInterface will be created, simulationData will be set to theSimulationData.
Parameters:
theSimulationData   A reference to the simulator's simulationData

Definition at line 6 of file SIG_CommandInterface.cpp.


Member Function Documentation

void SIGEL_Simulation::SIG_CommandInterface::moveDrive ( int driveNo,
QVector< SIG_Register >const & registers ) [pure virtual]
 

Interpretes a "MOVE" from the program.

Precondition:
none
Postcondition:
new forces will be added to the simulation
Parameters:
driveNo   Number of the Drive to be modified
registers   The interpreter's registers. The Force(s)/Angle(s) of the Drive is/are interpreted values from the first (n) registers.

Reimplemented in SIGEL_Simulation::SIG_DynaMechsCommandInterface, and SIGEL_Simulation::SIG_DynaMoCommandInterface.


The documentation for this class was generated from the following files:
Generated at Mon Sep 3 01:32:35 2001 for PG 368 - SIGEL by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000