70 rule->setAction(action);
71 rule->setExpression(expr);
131 virtual const double*
getValue(
int& n)
const =0;
146 const vector<tVertexIID>& mappingP2L,
152 const map<tVertexIID,tVertexIID>& mappingT2L,
170 virtual void buildEnvironment(
const map<tString,SP::GPM_Variable>& gVariables,
180 const double* values,
const int& n,
const tBoolean& isGlobal)=0;
184 const double& values)=0;
194 const double* values,
const int& n,
const tBoolean& isGlobal) {
200 const double* values,
const int& n) {
208 virtual void addFunction(SP::GPM_CompositorFunction f)=0;
212 virtual void compute(SP::GPM_Rule commonRuleEnv)=0;
void setName(const tString &name)
set the name
Definition: GPM_Rule.h:91
void compute()
Definition: GPM_Rule.h:214
tFlag getAction() const
get action
Definition: GPM_Rule.h:123
virtual void setVariable(const tString &name, const tFlag &type, const double *values, const int &n, const tBoolean &isGlobal)=0
set variable in environement
void setAction(const tFlag &action)
set teh action of the rule
Definition: GPM_Rule.h:101
virtual tString getExpression() const =0
get the expression
#define tBoolean
Definition: types.h:35
tString getName() const
get the name
Definition: GPM_Rule.h:96
void addVariable(const tString &name, const tFlag &type, const double *values, const int &n, const tBoolean &isGlobal)
set variable in environement
Definition: GPM_Rule.h:193
This class describes a rule.
Definition: GPM_Rule.h:23
virtual tString toString() const =0
reture th rule to string
static const tFlag REAL
Definition: GPM_Variable.h:23
tBoolean isDependentOn(const tString &varName) const
return true if the rule depend on the variable with name
Definition: GPM_Rule.cpp:14
virtual void buildEnvironment(const GPM_Graph &largeGraph, const GPM_Graph &patternGraph, const vector< tVertexIID > &mappingP2L, CORE_Out &io)
build the environement thanks to the pattern graph
Definition: GPM_Rule.cpp:135
GPM_Rule(void)
create
Definition: GPM_Rule.cpp:7
void setVariable(const tString &name, const double *values, const int &n)
set variable in environement
Definition: GPM_Rule.h:188
virtual SP::GPM_Rule NewInstance(const tFlag &action, const tString &expr) const
create a calculator
Definition: GPM_Rule.h:68
virtual void clearEnvironment()=0
clear the envirnment
virtual void clearFunctions()=0
clear generic function of environement
virtual void setExpression(const tString &expr)=0
set the expression
void addVariable(const tString &name, const double *values, const int &n)
set variable in environement
Definition: GPM_Rule.h:199
#define tString
Definition: types.h:36
This class describes a graph which is a list of vertices, ports & edges.
Definition: GPM_PortGraph.h:22
virtual const double * getValue(int &n) const =0
get the value
this class describes the output by default write on standart output
Definition: CORE_Out.h:21
This class is the base class of all graph classes.
Definition: GPM_Object.h:17
This class describes a graph which is a list of nodes & ports.
Definition: GPM_Graph.h:19
virtual void addFunction(SP::GPM_CompositorFunction f)=0
add generic function in environement
virtual SP::GPM_Rule NewInstance() const =0
create a calculator
This class describes an element of a graph.
Definition: GPM_GraphElement.h:17
virtual void copy(const GPM_Rule &rule)
copy
Definition: GPM_Rule.h:83
virtual ~GPM_Rule(void)
destroy
Definition: GPM_Rule.cpp:11
#define tFlag
Definition: types.h:14