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

MODEL::Modulator Class Reference

#include <modulator.h>

Inheritance diagram for MODEL::Modulator:

Inheritance graph
[legend]
Collaboration diagram for MODEL::Modulator:

Collaboration graph
[legend]
List of all members.

Public Methods

template<integer dims, typename nelem, class NT>  Modulator (TimeFrame &T, VectorFunction< dims, nelem, NT > &v, string param)
virtual void tick ()
virtual number modulate (void)=0

Private Attributes

number* _p

Detailed Description

Base class for modulators. These are objects which update a certain Parameter as a function of time. You can add these to ODESystem, if you want them to be executed for each integrator step, or to another TimeFrame if the granularity isn't that important
Parameters:
T   the TimeFrame to be added to.
v   the VectorFunction that will supply the Parameter to be modulated.
param   A string describing the Parameter.
Todo:
add a check to see if the Parameter exists.

Definition at line 45 of file modulator.h.


Member Function Documentation

number modulate ( void ) [pure virtual]
 

to be written for each modulator

Reimplemented in MODEL::LinearMod, MODEL::BlockMod, MODEL::StepMod, and MODEL::TriangleFadeMod.

Referenced by tick().

void tick ( ) [inline, virtual]
 

called by master to make thing work, for each modulator

Reimplemented from MODEL::TickTock.

Definition at line 57 of file modulator.h.


The documentation for this class was generated from the following file:
To get the sources or tarballs, please go to SourceForge or you can use the CVS repository.

More Info? Michael Peeters. Also, check our research website: www.alna.vub.ac.be

Last update: June 2002.


Looking for Open Source? Check out SourceForge Logo !