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

SIGEL_Simulation::SIG_DynaMoCommandInterface Class Reference

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

#include <SIG_DynaMoCommandInterface.h>

Inheritance diagram for SIGEL_Simulation::SIG_DynaMoCommandInterface:

SIGEL_Simulation::SIG_CommandInterface List of all members.

Public Methods

 SIG_DynaMoCommandInterface (SIG_DynaMoSimulationData& theSimulationData)
 The constructor. More...

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


Private Attributes

SIG_DynaMoSimulationDatasimulationData
 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_DynaMoCommandInterface.h.


Constructor & Destructor Documentation

SIGEL_Simulation::SIG_DynaMoCommandInterface::SIG_DynaMoCommandInterface ( SIG_DynaMoSimulationData & 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 6 of file SIG_DynaMoCommandInterface.cpp.


Member Function Documentation

void SIGEL_Simulation::SIG_DynaMoCommandInterface::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_DynaMoCommandInterface.cpp.


Member Data Documentation

SIG_DynaMoSimulationData & SIGEL_Simulation::SIG_DynaMoCommandInterface::simulationData [private]
 

The reference to the simulator's simulationData.

Definition at line 23 of file SIG_DynaMoCommandInterface.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