Variable.
More...
#include <TermVariable.h>
Public Member Functions |
| Term * | differentiate (TermVariable *variable) throw (ProblemMismatchException) |
| | Diffentiates this term by variable.
|
| bool | less (const Term *term) const |
| | Compares this variable with a term.
|
| const double | getLowerBound () |
| | Gets lower bound.
|
| void | setLowerBound (const double lowerBound) |
| | Sets lower bound.
|
| const int | getVariableIndex () |
| | Gets index of variable.
|
| const std::string | getName () |
| | Gets name of this variable.
|
| const double | getUpperBound () |
| | Gets upper bound.
|
| void | setUpperBound (const double upperBound) |
| | Sets upper bound.
|
| std::string | toString () const |
| | Convert term to string.
|
| double | evaluate (const DoubleVector *variableValues) |
| | Evaluates term.
|
| double | evaluate (const DoubleVector *variableValues, TermValueSet *termValues) |
| | Evaluates term.
|
| virtual Problem * | getProblem () const |
| | Returns the problem to which the term belongs.
|
| const int | getTermIndex () |
| | Get term index.
|
Protected Member Functions |
| double | eval (const DoubleVector *variableValues, TermValueSet *termValues) |
| | Evaluates term.
|
| void | setVariableIndex (const int variableIndex) |
| | Sets index of variable.
|
| | TermVariable (Problem *problem, const std::string &name) |
| | Creates variable.
|
|
virtual | ~TermVariable () |
| | Destroys variable.
|
| void | setTermIndex (const int termIndex) |
| | Set term index.
|
| | Term (Problem *problem) |
| | Creates a term.
|
|
virtual | ~Term () |
| | Destroys a term.
|
Additional Inherited Members |
|
static const int | INVALID_INDEX = -1 |
Detailed Description
Variable.
Definition at line 32 of file TermVariable.h.
Constructor & Destructor Documentation
| TermVariable::TermVariable |
( |
Problem * |
problem, |
|
|
const std::string & |
name |
|
) |
| |
|
protected |
Creates variable.
- Parameters
-
| problem | problem |
| name | name of variable |
Definition at line 29 of file TermVariable.cc.
Member Function Documentation
Creates variable.
- Parameters
-
| problem | problem |
| name | name of variable |
- Returns
Definition at line 67 of file TermVariable.cc.
Diffentiates this term by variable.
- Parameters
-
- Returns
- derivative
Reimplemented from Term.
Definition at line 78 of file TermVariable.cc.
| double TermVariable::eval |
( |
const DoubleVector * |
variableValues, |
|
|
TermValueSet * |
termValues |
|
) |
| |
|
protectedvirtual |
Evaluates term.
- Parameters
-
| variableValues | values of the variables |
| termValues | values of the terms |
- Returns
Reimplemented from Term.
Definition at line 91 of file TermVariable.cc.
| const double TermVariable::getLowerBound |
( |
| ) |
|
| const std::string TermVariable::getName |
( |
| ) |
|
| const double TermVariable::getUpperBound |
( |
| ) |
|
| const int TermVariable::getVariableIndex |
( |
| ) |
|
| bool TermVariable::less |
( |
const Term * |
term | ) |
const |
|
virtual |
Compares this variable with a term.
- Parameters
-
- Returns
- this variable is before term.
Reimplemented from Term.
Definition at line 47 of file TermVariable.cc.
| void TermVariable::setLowerBound |
( |
const double |
lowerBound | ) |
|
| void TermVariable::setUpperBound |
( |
const double |
upperBound | ) |
|
| void TermVariable::setVariableIndex |
( |
const int |
variableIndex | ) |
|
|
protected |
| std::string TermVariable::toString |
( |
| ) |
const |
|
virtual |
Convert term to string.
- Returns
- string
Reimplemented from Term.
Definition at line 153 of file TermVariable.cc.
The documentation for this class was generated from the following files: