Implements a sequence of wirings. More...
#include <wiringsequence.h>
Inherits AbstractWiring.
Public Member Functions | |
WiringSequence (std::list< AbstractWiring * >) | |
constructor: The wirings given in the list are applied in the sequence. | |
WiringSequence (AbstractWiring *w1, AbstractWiring *w2) | |
constructor provided for convinience, essentially calls addWiring(w1);addWiring(w2) | |
virtual | ~WiringSequence () |
virtual void | addWiring (AbstractWiring *wiring) |
adds a wiring to the list of wirings | |
Protected Member Functions | |
virtual bool | initIntern () |
to be overloaded by subclasses The rsensornumber and rmotornumber are already stored in the member variables. | |
virtual bool | wireSensorsIntern (const sensor *rsensors, int rsensornumber, sensor *csensors, int csensornumber, double noise) |
to be overloaded by subclasses | |
virtual bool | wireMotorsIntern (motor *rmotors, int rmotornumber, const motor *cmotors, int cmotornumber) |
to be overloaded by subclasses | |
Protected Attributes | |
std::vector< AbstractWiring * > | wirings |
bool | initialised |
Implements a sequence of wirings.
WiringSequence | ( | std::list< AbstractWiring * > | ws | ) |
constructor: The wirings given in the list are applied in the sequence.
constructor
For the sensors in normal order and for the motors in reverse order
WiringSequence | ( | AbstractWiring * | w1, | |
AbstractWiring * | w2 | |||
) |
constructor provided for convinience, essentially calls addWiring(w1);addWiring(w2)
~WiringSequence | ( | ) | [virtual] |
void addWiring | ( | AbstractWiring * | wiring | ) | [virtual] |
adds a wiring to the list of wirings
bool initIntern | ( | ) | [protected, virtual] |
to be overloaded by subclasses The rsensornumber and rmotornumber are already stored in the member variables.
The random values are to be accessed via the noiseGenerator.
Implements AbstractWiring.
bool initialised [protected] |
Reimplemented from AbstractWiring.
std::vector<AbstractWiring*> wirings [protected] |