Crevice  0.1
 All Classes Functions Variables Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
TermSign Class Reference

Sign of a term. More...

#include <TermSign.h>

Inheritance diagram for TermSign:
Inheritance graph
Collaboration diagram for TermSign:
Collaboration graph

Public Member Functions

Termdifferentiate (TermVariable *variable) throw (ProblemMismatchException)
 Determines the partial derivative of the term.
double evaluate ()
bool less (const Term *term) const
 Compares this term to an other term.
std::string toString () const
 Convert term to string.
- Public Member Functions inherited from Term
double evaluate (const DoubleVector *variableValues)
 Evaluates term.
double evaluate (const DoubleVector *variableValues, TermValueSet *termValues)
 Evaluates term.
virtual ProblemgetProblem () const
 Returns the problem to which the term belongs.
const int getTermIndex ()
 Get term index.

Static Public Member Functions

static TermSigncreate (Problem *problem, Term *term) throw (ProblemMismatchException)
 Creates term.

Protected Member Functions

double eval (const DoubleVector *variableValues, TermValueSet *termValues)
 Evaluates term.
 TermSign (Problem *problem, Term *term)
 Creates sign term.
virtual ~TermSign ()
 Destroys term.
- Protected Member Functions inherited from Term
void setTermIndex (const int termIndex)
 Set term index.
 Term (Problem *problem)
 Creates a term.
virtual ~Term ()
 Destroys a term.

Additional Inherited Members

- Static Public Attributes inherited from Term
static const int INVALID_INDEX = -1

Detailed Description

Sign of a term.

Definition at line 27 of file TermSign.h.

Constructor & Destructor Documentation

TermSign::TermSign ( Problem problem,
Term term 
)
protected

Creates sign term.

Parameters
problemproblem
valuevalue

Definition at line 29 of file TermSign.cc.

Member Function Documentation

TermSign * TermSign::create ( Problem problem,
Term term 
) throw (ProblemMismatchException)
static

Creates term.

Parameters
problemproblem
valuevalue
Returns
term

Definition at line 46 of file TermSign.cc.

Here is the caller graph for this function:

Term * TermSign::differentiate ( TermVariable variable) throw (ProblemMismatchException)
virtual

Determines the partial derivative of the term.

Parameters
variablevariable with respect to which the derivative shall be calculated
Returns
partial derivative

Reimplemented from Term.

Definition at line 53 of file TermSign.cc.

Here is the call graph for this function:

double TermSign::eval ( const DoubleVector *  variableValues,
TermValueSet *  termValues 
)
protectedvirtual

Evaluates term.

Parameters
variableValuesvalues of the variables
termValuesvalues of the terms
Returns

Reimplemented from Term.

Definition at line 58 of file TermSign.cc.

Here is the call graph for this function:

bool TermSign::less ( const Term term) const
virtual

Compares this term to an other term.

Parameters
termterm to compare this term with
Returns
true if this term is before the other term

Reimplemented from Term.

Definition at line 71 of file TermSign.cc.

Here is the call graph for this function:

std::string TermSign::toString ( ) const
virtual

Convert term to string.

Returns
string

Reimplemented from Term.

Definition at line 83 of file TermSign.cc.

Here is the call graph for this function:


The documentation for this class was generated from the following files: