This class represents a wind instrument, that is built from several ARTelement:s which are put together in a certain order.
ARTcircuit does not have a direct connection to a hornelement, so prototype_ is NULL, its default value.
Public Member Functions |
| ARTcircuit (ARTsimulator *simulator, const string name, const string sds="", const string lds="", const string htm="") |
virtual void | Rename (const string newname) |
int | GetElementPosition (ARTelement *el) |
void | AppendElement (ARTelement *element) |
void | AppendElementBefore (ARTelement *before, ARTelement *element) |
void | AppendElementAfter (ARTelement *after, ARTelement *element) |
int | DeleteElement (ARTelement *element) |
| deletes element from circuits element list, when the element itself is destroyed. This will leave a NULL-pointer in the vector, so the user knows something is missing. Always remove elements before destroying them!
|
int | RemoveElement (ARTelement *element) |
| removes element from circuits element list
|
int | ReplaceElement (ARTelement *search, ARTelement *replace) |
int | RemoveAllElements () |
virtual void | PrepareCalculation () |
| propagated impedance using functionoids
|
virtual void | RadiationImpedance (WaveObjectInterface *&out) |
| This function should prepare the calculation for the radiation impedance of the model.
|
virtual void | InputImpedance (WaveObjectInterface *in, WaveObjectInterface *&out) |
| This function should prepare the calculation of the input impedance of the model by propagating the wave specified in the waveobject in.
|
virtual bool | HasBends () |
| ARTelement (const string name, const string sds="", const string lds="", const string htm="", ARTmodelInterface *prototype=NULL, ARTsimulator *sim=NULL) |
virtual void | Pressure (WaveObjectInterface *, WaveObjectInterface *&) |
| This function should prepare the calculation of the pressure matrix of the model by propagating the wave specified in the waveobject in.
|
void | SetScope (ARTsimulator *sim) |
virtual ARTmodelInterface * | CloneModel () |
| A function creating exact copies must be provied.
|
bool | IsPrototypeProperty (ARTproperty *p) |
| ARTmodelInterface (const string name, const string sds, const string lds, const string htm) |
| Use this constructor to fill the fields of super classes and initialize other fields.
|
| ARTmodelInterface (const ARTmodelInterface &orig) |
| The copy constructor.
|
virtual void | InputImpedance (vector< WaveObjectInterface * > &in, WaveObjectInterface *&oSignal) |
virtual void | Pressure (vector< WaveObjectInterface * > &in, WaveObjectInterface *&oSignal) |
void | SetSimulator (ARTsimulator *sim) |
| Sets the simulator of the model to sim.
|
void | SetCircuit (ARTcircuit *cir) |
| Sets the circuit of the model to cir.
|
| ARTobject (const string name, const string sds="", const string lds="", const string htm="") |
| objects must have a name, the rest is optional
|
| ARTobject (const ARTobject &orig) |
| copy constructor
|
virtual ARTcell * | clone () |
ARTproperty * | GetProperties (ARTproperty *pos) |
| iterate through property list (pass NULL to restart iteration, receive NULL after last element)
|
ARTproperty * | FindProperty (const string nam) |
| find and return named property (or return NULL if no match)
|
ARTproperty * | AppendProperty (const string name, const string sds="", const string lds="", const string htm="") |
| Append new property with given name to ARTobject.
|
ARTdataProp * | AppendDataProp (const string name, ARTvariant *val, const string sds="", const string lds="", const string htm="") |
| append new data property with given name to ARTobject
|
ARTdataProp * | AppendDataProp (const string name, const double val, const string sds="", const string lds="", const string htm="") |
ARTdataProp * | AppendDataProp (const string name, const float val, const string sds="", const string lds="", const string htm="") |
ARTdataProp * | AppendDataProp (const string name, const string val, const string sds="", const string lds="", const string htm="") |
ARTdataProp * | AppendDataProp (const string name, const int val, const string sds="", const string lds="", const string htm="") |
ARTdataProp * | AppendDataProp (const string name, const string *val, const string sds="", const string lds="", const string htm="") |
ARTdataProp * | AppendDataProp (ARTdataProp *dataProp) |
ARTlistProp * | AppendListProp (const string name, const string sds="", const string lds="", const string htm="") |
| append new listableProperty with given name
|
bool | DeleteProperty (ARTproperty *prp) |
| delete current property (which was recently accessed by GetProperties, FindProperty or AppendProperty)
|
ARTmethod * | GetMethods (ARTmethod *pos) |
| iterate through method list (pass NULL to restart iteration, receive NULL after last element)
|
ARTmethod * | FindMethod (const string nam) |
| find and return named method (or return NULL if no match)
|
ARTmethod * | AppendMethod (const string name, const string sds="", const string lds="", const string htm="") |
| append new method with given name
|
bool | DeleteMethod (ARTmethod *mtd) |
| delete current method (which was recently accessed by GetProperties, FindProperty or AppendProperty)
|
void | SetPropertyList (list< ARTproperty * > &l) |
void | CopyPropertyListEntries (ARTobject *obj) |
| copies properties from other objects (also copying the objects of all list-entries). OVERWRITES list own list!
|
void | CopyMethodListEntries (ARTobject *obj) |
| copies methods from other objects (also copying the objects of all list-entries). OVERWRITES list own list!
|
list< ARTproperty * > | GetPropertyList () |
list< ARTmethod * > | GetMethodList () |
| ARTcell (const string name="", const string sds="", const string lds="", const string htm="") |
| ARTcell (const ARTcell &orig) |
const string & | GetName () const |
const string & | GetShortDescription () const |
const string & | GetLongDescription () const |
const string & | GetHelpFilename () const |
void | SetName (const string name) |