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

SIGEL_Simulation::SIG_DynaMechsCommandInterface Class Reference

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

#include <SIG_DynaMechsCommandInterface.h>

Inheritance diagram for SIGEL_Simulation::SIG_DynaMechsCommandInterface:

SIGEL_Simulation::SIG_CommandInterface List of all members.

Public Methods

 SIG_DynaMechsCommandInterface (SIG_DynaMechsSimulationData& theSimulationData)
 The constructor. More...

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


Private Attributes

SIG_DynaMechsSimulationDatasimulationData
 The reference to the simulator's simulationData. 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 18 of file SIG_DynaMechsCommandInterface.h.


Constructor & Destructor Documentation

SIGEL_Simulation::SIG_DynaMechsCommandInterface::SIG_DynaMechsCommandInterface ( SIG_DynaMechsSimulationData & theSimulationData )
 

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 7 of file SIG_DynaMechsCommandInterface.cpp.


Member Function Documentation

void SIGEL_Simulation::SIG_DynaMechsCommandInterface::moveDrive ( int driveNo,
QVector< SIG_Register >const & registers ) [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 from SIGEL_Simulation::SIG_CommandInterface.

Definition at line 11 of file SIG_DynaMechsCommandInterface.cpp.


Member Data Documentation

SIG_DynaMechsSimulationData & SIGEL_Simulation::SIG_DynaMechsCommandInterface::simulationData [private]
 

The reference to the simulator's simulationData.

Definition at line 23 of file SIG_DynaMechsCommandInterface.h.


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