C++ main module for gpm Package  1.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
GPM_ModelEdge Class Reference

This class describes a model Edge. More...

#include <GPM_ModelEdge.h>

Inheritance diagram for GPM_ModelEdge:
Inheritance graph
[legend]
Collaboration diagram for GPM_ModelEdge:
Collaboration graph
[legend]

Public Member Functions

virtual SP::GPM_GraphElement NewInstance () const
 create a new instance More...
 
virtual void copy (const GPM_GraphElement &node)
 copy More...
 
virtual void updateEnvironment (const map< tString, SP::GPM_Variable > &env)
 update the environment More...
 
virtual SP::GPM_Edge NewCopyInstance () const
 create a new instance More...
 
virtual tString getGroupTypeName () const
 get the default group type name More...
 
void setSource (SP::GPM_Vertex v)
 set the source vertex More...
 
void setTarget (SP::GPM_Vertex v)
 set the target vertex More...
 
SP::GPM_Vertex getSource () const
 get the source vertex More...
 
SP::GPM_Vertex getTarget () const
 get the target vertex More...
 
virtual void saveToStream (ofstream &f) const
 
tBoolean loadFromStream (tString &f)
 
virtual tString toString () const
 turn the class into string More...
 
void setGraph (SP::GPM_Graph graph)
 set the attached graph More...
 
void setGraph (GPM_Graph &graph)
 set the attached graph More...
 
void setGraph (GPM_Graph *graph)
 set the attached graph More...
 
GPM_GraphgetGraph () const
 set the attached graph More...
 
void setEnvironment (const map< tString, SP::GPM_Variable > &env)
 set the environment More...
 
SV::GPM_Variable addToVariables (const tString &variableName, SP::GPM_Variable var)
 add a value of variable in the variable with multiple cardinality whose name is variableName More...
 
GPM_VariableinitVariable (const tString &variableName)
 init the variable corresponding to name: create a variable with 1 value More...
 
void setVariable (const tString &variableName, const GPM_Variable &var)
 set a value of variable in the variable with single cardinality whose name is variableName More...
 
void setVariable (const tString &variableName, SP::GPM_Variable var)
 set a value of variable in the variable with single cardinality whose name is variableName More...
 
void setVariableValue (const tString &variableName, const tString &value)
 set the string value of a variable with single cardinality whose name is variableName More...
 
void setVariableValue (const tString &variableName, const double &value)
 set the double value of a variable with single cardinality whose name is variableName More...
 
void setVariableValue (const tString &variableName, const int &n, const double *value)
 set the double list value of a variable with single cardinality whose name is variableName More...
 
void setVariableValue (const tString &variableName, const tFlag &type, const int &n, const double *value)
 set the double list value of a variable with single cardinality whose name is variableName & set the type More...
 
tBoolean setVariableValuesFromString (const tString &variableName, const tFlag &type, const tString &values)
 set multiple values of variable from a string representation & set the variable type More...
 
void removeVariable (const tString &varName)
 remove the variable More...
 
void getVariableNames (vector< tString > &names) const
 get the variable names More...
 
tBoolean getVariables (const tString &variableName, SV::GPM_Variable &variable) const
 get variables More...
 
tString getVariableValuesToString (const tString &variableName) const
 get variables into a string representation More...
 
SP::GPM_Variable getVariable (const tString &variableName) const
 get variable More...
 
tBoolean getVariableValue (const tString &variableName, tString &value) const
 get the variable value More...
 
tBoolean getVariableValue (const tString &variableName, double &value) const
 set the variable More...
 
tBoolean getVariableValue (const tString &variableName, int &n, double *value) const
 set the variable More...
 
tFlag getVariableType (const tString &variableName) const
 get the variable type More...
 
virtual void clearVariables ()
 clear the variables More...
 
void setGroupName (const tString &v)
 set group name More...
 
tString getGroupName () const
 set group name More...
 
virtual tBoolean setTopologicalAction (const tFlag &action)
 set topological action More...
 
tFlag getTopologicalAction () const
 get toppologial action More...
 
tBoolean hasTriggerCutAction () const
 return true if the element has a trigger cut action More...
 
virtual tBoolean setTriggerGroupNameAction (const tFlag &action, const tString &value)
 set group name action More...
 
virtual tBoolean setTriggerAction (const tFlag &action, const tString &varName, SP::GPM_Variable var)
 set variable action More...
 
virtual tBoolean setTriggerAction (const tFlag &action, const tString &varName, const tString &value)
 set variable action More...
 
virtual tBoolean setTriggerAction (const tFlag &action, const tString &varName, const double &value)
 set variable action More...
 
virtual tBoolean setTriggerAction (const tFlag &action, const tString &varName, const int &n, const double *value)
 set variable action More...
 
virtual tBoolean setTriggerAction (const tFlag &action, const tString &varName, const tFlag &type, const int &n, const double *value)
 set variable action More...
 
tBoolean getTriggerActionValues (const tString &variableName, SV::GPM_Variable &variable) const
 get action variables More...
 
tFlag getTriggerAction (const tString &varName) const
 get the variable action More...
 
virtual void clearActions ()
 clear actions More...
 
virtual void executeTriggerActions ()
 execute trigger actions More...
 
void setId (const int &id)
 set graph More...
 
int getId () const
 get id More...
 
tBoolean parseValues (tString &f, vector< tString > &values) const
 parse the value sof the form {variableValue1;variableValue2;...} return false if the f string is not encapsulated by {} More...
 
void getSharedPointer (SP::CORE_Object &p)
 get the shared pointer of this class into p More...
 
void getSharedPointer (SPC::CORE_Object &p) const
 get the shared pointer of this class into p More...
 
tString getClassName () const
 return the class name of the object More...
 
tString getIdentityString () const
 return the identity string of the object of the form className_at_address More...
 
tString getPointerAddress () const
 return the identity string of the object More...
 
template<class T >
tBoolean isInstanceOf () const
 return true if the object is an instance of T More...
 
virtual void print ()
 print the class More...
 
virtual ostream & print (ostream &out) const
 print the class More...
 
virtual void print (const tString &message)
 print the class More...
 
virtual void print (const tInteger &str)
 print More...
 
virtual void print (const tRelativeInteger &str)
 print More...
 
virtual void print (const tReal &str)
 print More...
 
virtual void print (const int &str)
 print More...
 
virtual void copy (const GPM_ModelGraphElement &vertex)
 copy More...
 
void clearRules ()
 clear rules More...
 
void updateRules (const GPM_ModelClassFactory &cf)
 update rules More...
 
void addRule (const tString &varName, SP::GPM_Rule r)
 add rule corresponding to varName More...
 
void removeRule (const tString &varName)
 remove rule corresponding to varName More...
 
tBoolean setRuleAction (const tString &varName, const tFlag &action)
 set rule action More...
 
void setRuleAction (const int &index, const tFlag &action)
 set rule action More...
 
void swap (const unsigned int &i, const unsigned int &j)
 swap 2 elements More...
 
int getRulesNumber () const
 get the rules number More...
 
int getRuleIndex (const tString &name) const
 
tString getRuleName (const int &index) const
 get the rule corresponding to variable name More...
 
const GPM_RulegetRule (const int &index) const
 get the rule at index More...
 
GPM_RulegetRule (const int &index)
 get the rule at index More...
 
tBoolean orderTriggerRules ()
 

Static Public Member Functions

static SP::GPM_ModelEdge New (SP::GPM_Vertex source, SP::GPM_Vertex target)
 create a test class More...
 
static SP::GPM_ModelEdge New (const int &id)
 create an edge More...
 
static SP::GPM_ModelEdge New ()
 create an edge More...
 
static void turnBodyTextToLine (tString &bdy)
 
static void turnBodyLineToText (tString &bdy)
 
static tString getClassName (const tString &identityString)
 return the class name of the object using only the identity string More...
 
template<class T >
static tString getTypeName ()
 get type name More...
 
static tBoolean is64Architecture ()
 return true if the machine is a 64 bits machine More...
 
static tBoolean is32Architecture ()
 return true if the machine is a 32 bits machine More...
 
static tString pointer2String (const void *obj)
 return the string represantation of a pointer More...
 
static void setOutput (ostream &out)
 set output More...
 
static ostream & getOutput ()
 get output More...
 
static void printObjectsInMemory ()
 print object in memory More...
 
static ostream & print (ostream &out, const tString &message)
 print the class More...
 
static void outputPrint (const tString &message)
 
static void turnBodyTextToLine (tString &bdy)
 
static void turnBodyLineToText (tString &bdy)
 

Static Public Attributes

static tBoolean mIsMemoryTesting =false
 indicator to store all classes created and deleted only for debuging version More...
 

Protected Member Functions

 GPM_ModelEdge (SP::GPM_Vertex source, SP::GPM_Vertex target)
 create More...
 
virtual ~GPM_ModelEdge (void)
 destroy More...
 
virtual void toDoAfterThisSetting ()
 method called after This setting More...
 
void setThis (SP::CORE_Object p)
 set this weak shared pointer called toDoAfterThis setting method More...
 
virtual void setType (tString type)
 set the type of the object More...
 

Detailed Description

This class describes a model Edge.

Author
Stephane Despreaux
Version
1.0

Constructor & Destructor Documentation

GPM_ModelEdge::GPM_ModelEdge ( SP::GPM_Vertex  source,
SP::GPM_Vertex  target 
)
protected

create

Referenced by New().

Here is the caller graph for this function:

GPM_ModelEdge::~GPM_ModelEdge ( void  )
protectedvirtual

destroy

Member Function Documentation

void GPM_ModelGraphElement::addRule ( const tString varName,
SP::GPM_Rule  r 
)
inherited

add rule corresponding to varName

Parameters
varName: variable name of the rule
actionaction of the rule
value: expression of the rule

References GPM_ModelGraphElement::getRuleIndex().

Here is the call graph for this function:

SV::GPM_Variable GPM_GraphElement::addToVariables ( const tString variableName,
SP::GPM_Variable  var 
)
inherited

add a value of variable in the variable with multiple cardinality whose name is variableName

Referenced by GPM_GraphElement::copy(), GPM_GraphElement::loadFromStream(), and GPM_GraphElement::setVariableValuesFromString().

Here is the caller graph for this function:

void GPM_GraphElement::clearActions ( )
virtualinherited

clear actions

Reimplemented in GPM_Vertex.

Referenced by GPM_Vertex::clearActions(), and GPM_GraphElement::loadFromStream().

Here is the caller graph for this function:

void GPM_ModelGraphElement::clearRules ( )
inlineinherited

clear rules

Referenced by GPM_ModelGraph::clearRules(), and GPM_ModelGraphElement::copy().

Here is the caller graph for this function:

virtual void GPM_GraphElement::clearVariables ( )
inlinevirtualinherited

clear the variables

Reimplemented in GPM_Node.

Referenced by GPM_Node::clearVariables(), GPM_GraphElement::copy(), GPM_GraphElement::loadFromStream(), and GPM_GraphElement::setEnvironment().

Here is the caller graph for this function:

void GPM_ModelGraphElement::copy ( const GPM_ModelGraphElement vertex)
virtualinherited

copy

References GPM_ModelGraphElement::clearRules(), GPM_ModelGraphElement::getRule(), GPM_ModelGraphElement::getRulesNumber(), GPM_Rule::NewInstance(), null, and tString.

Referenced by GPM_ModelNode::copy(), GPM_ModelPort::copy(), and copy().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void GPM_ModelEdge::copy ( const GPM_GraphElement node)
inlinevirtual

copy

Reimplemented from GPM_GraphElement.

References GPM_ModelGraphElement::copy(), GPM_GraphElement::copy(), and null.

Here is the call graph for this function:

void GPM_GraphElement::executeTriggerActions ( )
virtualinherited

execute trigger actions

Reimplemented in GPM_Vertex.

References GPM_GraphElement::setGroupName(), tFlag, and tString.

Referenced by GPM_Vertex::executeTriggerActions().

Here is the call graph for this function:

Here is the caller graph for this function:

static tString CORE_Object::getClassName ( const tString identityString)
inlinestaticinherited

return the class name of the object using only the identity string

Referenced by CORE_Object::printObjectsInMemory().

Here is the caller graph for this function:

tString CORE_Object::getClassName ( ) const
inherited

return the class name of the object

Returns
the class name of the object

References tString.

Referenced by CORE_Object::getIdentityString().

Here is the caller graph for this function:

GPM_Graph * GPM_GraphElement::getGraph ( ) const
inherited
tString GPM_GraphElement::getGroupName ( ) const
inlineinherited

set group name

Referenced by GPM_GraphElement::copy().

Here is the caller graph for this function:

virtual tString GPM_Edge::getGroupTypeName ( ) const
inlinevirtualinherited

get the default group type name

Implements GPM_GraphElement.

int GPM_GraphElement::getId ( ) const
inlineinherited
tString CORE_Object::getIdentityString ( ) const
inlineinherited

return the identity string of the object of the form className_at_address

Returns
the identity string of the object

References CORE_Object::getClassName(), CORE_Object::pointer2String(), and tString.

Referenced by CORE_Object::toString().

Here is the call graph for this function:

Here is the caller graph for this function:

static ostream& CORE_Object::getOutput ( )
inlinestaticinherited

get output

tString CORE_Object::getPointerAddress ( ) const
inlineinherited

return the identity string of the object

Returns
the identity string of the object

References CORE_Object::pointer2String().

Here is the call graph for this function:

const GPM_Rule* GPM_ModelGraphElement::getRule ( const int &  index) const
inlineinherited

get the rule at index

Parameters
indexindex of the rule to find the expression
Returns
the expression of the rule at index

References null.

Referenced by GPM_ModelGraphElement::copy(), GPM_ModelFunction::saveRulesToFile(), GPM_ModelFunction::toString(), GPM_ModelFunction::updatePatternGraphStates(), GPM_ModelFunction::updatePTEdgesStates(), GPM_ModelGraphElement::updateRules(), and GPM_ModelFunction::updateTransformerGraphStates().

Here is the caller graph for this function:

GPM_Rule* GPM_ModelGraphElement::getRule ( const int &  index)
inlineinherited

get the rule at index

Parameters
indexindex of the rule to find the expression
Returns
the expression of the rule at index

References null.

int GPM_ModelGraphElement::getRuleIndex ( const tString name) const
inlineinherited

get the rule index corresponding to variable

Returns
the index of the rule
-1 if the name has no rule.

Referenced by GPM_ModelGraphElement::addRule(), GPM_ModelGraphElement::removeRule(), and GPM_ModelGraphElement::setRuleAction().

Here is the caller graph for this function:

tString GPM_ModelGraphElement::getRuleName ( const int &  index) const
inlineinherited

get the rule corresponding to variable name

Parameters
indexindex of the rule to find the name
Returns
the rule nae of the rule at index

Referenced by GPM_ModelRootNode::orderRulesByCallTree(), GPM_ModelFunction::saveRulesToFile(), GPM_ModelFunction::toString(), GPM_ModelFunction::updatePatternGraphStates(), GPM_ModelFunction::updatePTEdgesStates(), and GPM_ModelFunction::updateTransformerGraphStates().

Here is the caller graph for this function:

int GPM_ModelGraphElement::getRulesNumber ( ) const
inlineinherited
void CORE_Object::getSharedPointer ( SP::CORE_Object &  p)
inlineinherited
void CORE_Object::getSharedPointer ( SPC::CORE_Object &  p) const
inlineinherited

get the shared pointer of this class into p

SP::GPM_Vertex GPM_Edge::getSource ( ) const
inlineinherited
SP::GPM_Vertex GPM_Edge::getTarget ( ) const
inlineinherited
tFlag GPM_GraphElement::getTopologicalAction ( ) const
inlineinherited

get toppologial action

tFlag GPM_GraphElement::getTriggerAction ( const tString varName) const
inlineinherited

get the variable action

Referenced by GPM_GraphElement::setTriggerAction().

Here is the caller graph for this function:

tBoolean GPM_GraphElement::getTriggerActionValues ( const tString variableName,
SV::GPM_Variable &  variable 
) const
inlineinherited

get action variables

Referenced by GPM_GraphElement::setTriggerAction().

Here is the caller graph for this function:

template<class T >
static tString CORE_Object::getTypeName ( )
inlinestaticinherited

get type name

References tString.

SP::GPM_Variable GPM_GraphElement::getVariable ( const tString variableName) const
inherited
void GPM_GraphElement::getVariableNames ( vector< tString > &  names) const
inlineinherited

get the variable names

Referenced by GPM_Rule::buildEnvironment(), GPM_PortGraph::buildEnvironments(), GPM_Vertex::canMerge(), GPM_GraphElement::copy(), and GPM_GraphElement::toString().

Here is the caller graph for this function:

tBoolean GPM_GraphElement::getVariables ( const tString variableName,
SV::GPM_Variable &  variable 
) const
inlineinherited

get variables

Referenced by GPM_Vertex::canMerge(), GPM_GraphElement::copy(), and GPM_GraphElement::getVariableValuesToString().

Here is the caller graph for this function:

tFlag GPM_GraphElement::getVariableType ( const tString variableName) const
inherited

get the variable type

References GPM_Variable::getType(), GPM_GraphElement::getVariable(), null, and GPM_Variable::REAL.

Referenced by GPM_ModelFunction::updatePatternGraphStates(), and GPM_ModelFunction::updateTransformerGraphStates().

Here is the call graph for this function:

Here is the caller graph for this function:

tBoolean GPM_GraphElement::getVariableValue ( const tString variableName,
tString value 
) const
inherited

get the variable value

References GPM_GraphElement::getVariable(), null, and GPM_Variable::STRING.

Referenced by GPMG_DrawPanel::computeEdgesScale(), GPMG_DrawPanel::computeNodesScale(), and GPMG_DrawPanel::computePortsScale().

Here is the call graph for this function:

Here is the caller graph for this function:

tBoolean GPM_GraphElement::getVariableValue ( const tString variableName,
double &  value 
) const
inherited

set the variable

References GPM_GraphElement::getVariable(), null, and GPM_Variable::STRING.

Here is the call graph for this function:

tBoolean GPM_GraphElement::getVariableValue ( const tString variableName,
int &  n,
double *  value 
) const
inherited

set the variable

References GPM_GraphElement::getVariable(), null, and GPM_Variable::STRING.

Here is the call graph for this function:

tString GPM_GraphElement::getVariableValuesToString ( const tString variableName) const
inherited

get variables into a string representation

References GPM_GraphElement::getVariables(), and tString.

Referenced by GPM_GraphElement::toString().

Here is the call graph for this function:

Here is the caller graph for this function:

tBoolean GPM_GraphElement::hasTriggerCutAction ( ) const
inlineinherited

return true if the element has a trigger cut action

GPM_Variable & GPM_GraphElement::initVariable ( const tString variableName)
inherited

init the variable corresponding to name: create a variable with 1 value

References GPM_Variable::New(), and GPM_GraphElement::setVariable().

Referenced by GPM_GraphElement::copy(), GPM_GraphElement::setVariable(), and GPM_GraphElement::setVariableValue().

Here is the call graph for this function:

Here is the caller graph for this function:

static tBoolean CORE_Object::is32Architecture ( )
inlinestaticinherited

return true if the machine is a 32 bits machine

References CORE_Object::is64Architecture().

Here is the call graph for this function:

tBoolean CORE_Object::is64Architecture ( )
staticinherited

return true if the machine is a 64 bits machine

Referenced by CORE_Object::is32Architecture().

Here is the caller graph for this function:

template<class T >
tBoolean CORE_Object::isInstanceOf ( ) const
inlineinherited

return true if the object is an instance of T

References null.

Referenced by MATH_BinaryOperator::insertInTree(), MATH_UnaryOperator::insertInTree(), and MATH_EndBlock::insertInTree().

Here is the caller graph for this function:

tBoolean GPM_Edge::loadFromStream ( tString f)
virtualinherited

brief load the edge from stream

Reimplemented from GPM_GraphElement.

References GPM_GraphElement::loadFromStream(), and tBoolean.

Here is the call graph for this function:

static SP::GPM_ModelEdge GPM_ModelEdge::New ( SP::GPM_Vertex  source,
SP::GPM_Vertex  target 
)
inlinestatic

create a test class

References GPM_ModelEdge().

Here is the call graph for this function:

static SP::GPM_ModelEdge GPM_ModelEdge::New ( const int &  id)
inlinestatic

create an edge

References New().

Here is the call graph for this function:

static SP::GPM_ModelEdge GPM_ModelEdge::New ( )
inlinestatic

create an edge

Referenced by New(), GPM_ModelGraph::newEdge(), NewInstance(), and GPM_ModelClassFactory::NewInstance().

Here is the caller graph for this function:

virtual SP::GPM_Edge GPM_Edge::NewCopyInstance ( ) const
inlinevirtualinherited

create a new instance

References GPM_Edge::New().

Here is the call graph for this function:

virtual SP::GPM_GraphElement GPM_ModelEdge::NewInstance ( ) const
inlinevirtual

create a new instance

Reimplemented from GPM_Edge.

References New().

Here is the call graph for this function:

tBoolean GPM_ModelGraphElement::orderTriggerRules ( )
inherited

order the rules

References GPM_ModelRootNode::New().

Referenced by GPM_ModelGraph::orderTriggerRules().

Here is the call graph for this function:

Here is the caller graph for this function:

void CORE_Object::outputPrint ( const tString message)
staticinherited

print on output

References null, and CORE_Object::print().

Referenced by CORE_Exception::CORE_Exception().

Here is the call graph for this function:

Here is the caller graph for this function:

tBoolean GPM_GraphElement::parseValues ( tString f,
vector< tString > &  values 
) const
inherited

parse the value sof the form {variableValue1;variableValue2;...} return false if the f string is not encapsulated by {}

References tString.

Referenced by GPM_Port::loadFromStream(), GPM_GraphElement::loadFromStream(), and GPM_GraphElement::setVariableValuesFromString().

Here is the caller graph for this function:

tString CORE_Object::pointer2String ( const void *  obj)
staticinherited

return the string represantation of a pointer

References tString.

Referenced by CORE_Object::CORE_Object(), CORE_Object::getIdentityString(), CORE_Object::getPointerAddress(), and CORE_Object::~CORE_Object().

Here is the caller graph for this function:

virtual void CORE_Object::print ( )
inlinevirtualinherited

print the class

References CORE_Object::toString().

Referenced by CORE_Object::outputPrint(), CORE_Out::print(), CORE_Object::print(), CORE_Out::printInt(), CORE_Out::println(), CORE_Out::printReal(), CORE_Out::printString(), and CORE_Out::setAction().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual ostream& CORE_Object::print ( ostream &  out) const
inlinevirtualinherited

print the class

References CORE_Object::print(), and CORE_Object::toString().

Here is the call graph for this function:

void CORE_Object::print ( const tString message)
virtualinherited

print the class

Reimplemented in CORE_Out.

References null, and CORE_Object::print().

Here is the call graph for this function:

void CORE_Object::print ( const tInteger str)
virtualinherited

print

References null.

void CORE_Object::print ( const tRelativeInteger str)
virtualinherited

print

References null.

void CORE_Object::print ( const tReal str)
virtualinherited

print

References null.

void CORE_Object::print ( const int &  str)
virtualinherited

print

References null.

static ostream& CORE_Object::print ( ostream &  out,
const tString message 
)
inlinestaticinherited

print the class

void CORE_Object::printObjectsInMemory ( )
staticinherited

print object in memory

References CORE_Object::getClassName(), CORE_Object::getSharedPointer(), and CORE_Object::mIsMemoryTesting.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPM_ModelGraphElement::removeRule ( const tString varName)
inherited

remove rule corresponding to varName

Parameters
varName: variable name of the rule

References GPM_ModelGraphElement::getRuleIndex().

Here is the call graph for this function:

void GPM_GraphElement::removeVariable ( const tString varName)
inlineinherited

remove the variable

void GPM_Edge::saveToStream ( ofstream &  f) const
virtualinherited

brief save the port into stream

Parameters
OUTf: file to write on

Reimplemented from GPM_GraphElement.

References GPM_GraphElement::toString().

Here is the call graph for this function:

void GPM_GraphElement::setEnvironment ( const map< tString, SP::GPM_Variable > &  env)
inherited

set the environment

References GPM_GraphElement::clearVariables(), GPM_Variable::New(), and null.

Here is the call graph for this function:

void GPM_GraphElement::setGraph ( SP::GPM_Graph  graph)
inlineinherited
void GPM_GraphElement::setGraph ( GPM_Graph graph)
inherited

set the attached graph

References CORE_Object::getSharedPointer(), and GPM_GraphElement::setGraph().

Here is the call graph for this function:

void GPM_GraphElement::setGraph ( GPM_Graph graph)
inherited

set the attached graph

References CORE_Object::getSharedPointer(), null, and GPM_GraphElement::setGraph().

Here is the call graph for this function:

void GPM_GraphElement::setGroupName ( const tString v)
inlineinherited
void GPM_GraphElement::setId ( const int &  id)
inlineinherited

set graph

get graph

set id

static void CORE_Object::setOutput ( ostream &  out)
inlinestaticinherited

set output

tBoolean GPM_ModelGraphElement::setRuleAction ( const tString varName,
const tFlag action 
)
inherited

set rule action

Parameters
varName: variable name of the rule to set the action
actionthe action to set
Returns
true if the setting succeeded

References GPM_ModelGraphElement::getRuleIndex().

Here is the call graph for this function:

void GPM_ModelGraphElement::setRuleAction ( const int &  index,
const tFlag action 
)
inlineinherited

set rule action

Parameters
index: index of variable name of the rule to set the action
actionthe action to set
void GPM_Edge::setSource ( SP::GPM_Vertex  v)
inlineinherited

set the source vertex

Referenced by GPM_Edge::GPM_Edge().

Here is the caller graph for this function:

void GPM_Edge::setTarget ( SP::GPM_Vertex  v)
inlineinherited

set the target vertex

Referenced by GPM_Edge::GPM_Edge().

Here is the caller graph for this function:

void CORE_Object::setThis ( SP::CORE_Object  p)
inlineprotectedinherited

set this weak shared pointer called toDoAfterThis setting method

References CORE_Object::toDoAfterThisSetting().

Here is the call graph for this function:

tBoolean GPM_GraphElement::setTopologicalAction ( const tFlag action)
virtualinherited

set topological action

References tBoolean.

tBoolean GPM_GraphElement::setTriggerAction ( const tFlag action,
const tString varName,
SP::GPM_Variable  var 
)
virtualinherited

set variable action

References GPM_GraphElement::getTriggerAction(), GPM_GraphElement::getTriggerActionValues(), tBoolean, and tFlag.

Referenced by GPM_GraphElement::setTriggerAction(), GPM_Snow3DFunction::updatePatternGraphStates(), and GPM_ModelFunction::updatePatternGraphStates().

Here is the call graph for this function:

Here is the caller graph for this function:

tBoolean GPM_GraphElement::setTriggerAction ( const tFlag action,
const tString varName,
const tString value 
)
virtualinherited

set variable action

References GPM_Variable::New(), and GPM_GraphElement::setTriggerAction().

Here is the call graph for this function:

tBoolean GPM_GraphElement::setTriggerAction ( const tFlag action,
const tString varName,
const double &  value 
)
virtualinherited

set variable action

References GPM_Variable::New(), and GPM_GraphElement::setTriggerAction().

Here is the call graph for this function:

tBoolean GPM_GraphElement::setTriggerAction ( const tFlag action,
const tString varName,
const int &  n,
const double *  value 
)
virtualinherited

set variable action

References GPM_Variable::New(), and GPM_GraphElement::setTriggerAction().

Here is the call graph for this function:

tBoolean GPM_GraphElement::setTriggerAction ( const tFlag action,
const tString varName,
const tFlag type,
const int &  n,
const double *  value 
)
virtualinherited

set variable action

References GPM_Variable::New(), and GPM_GraphElement::setTriggerAction().

Here is the call graph for this function:

tBoolean GPM_GraphElement::setTriggerGroupNameAction ( const tFlag action,
const tString value 
)
virtualinherited

set group name action

References tBoolean.

virtual void CORE_Object::setType ( tString  type)
inlineprotectedvirtualinherited
void GPM_GraphElement::setVariable ( const tString variableName,
const GPM_Variable var 
)
inherited

set a value of variable in the variable with single cardinality whose name is variableName

References GPM_Variable::copy(), and GPM_GraphElement::initVariable().

Referenced by GPM_GraphElement::copy(), GPM_GraphElement::initVariable(), GPM_GraphElement::loadFromStream(), and GPM_GraphElement::setVariableValuesFromString().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPM_GraphElement::setVariable ( const tString variableName,
SP::GPM_Variable  var 
)
inherited

set a value of variable in the variable with single cardinality whose name is variableName

void GPM_GraphElement::setVariableValue ( const tString variableName,
const tString value 
)
inherited

set the string value of a variable with single cardinality whose name is variableName

References GPM_GraphElement::initVariable(), and GPM_Variable::setValue().

Referenced by GPM_ModelFunction::updateTransformerGraphStates().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPM_GraphElement::setVariableValue ( const tString variableName,
const double &  value 
)
inherited

set the double value of a variable with single cardinality whose name is variableName

References GPM_GraphElement::initVariable(), and GPM_Variable::setValue().

Here is the call graph for this function:

void GPM_GraphElement::setVariableValue ( const tString variableName,
const int &  n,
const double *  value 
)
inherited

set the double list value of a variable with single cardinality whose name is variableName

References GPM_GraphElement::initVariable(), and GPM_Variable::setValue().

Here is the call graph for this function:

void GPM_GraphElement::setVariableValue ( const tString variableName,
const tFlag type,
const int &  n,
const double *  value 
)
inherited

set the double list value of a variable with single cardinality whose name is variableName & set the type

References GPM_GraphElement::initVariable(), and GPM_Variable::setValue().

Here is the call graph for this function:

tBoolean GPM_GraphElement::setVariableValuesFromString ( const tString variableName,
const tFlag type,
const tString values 
)
inherited

set multiple values of variable from a string representation & set the variable type

References GPM_GraphElement::addToVariables(), GPM_Variable::New(), GPM_GraphElement::parseValues(), GPM_GraphElement::setVariable(), tBoolean, and tString.

Here is the call graph for this function:

void GPM_ModelGraphElement::swap ( const unsigned int &  i,
const unsigned int &  j 
)
inherited

swap 2 elements

Referenced by GPM_ModelRootNode::orderRulesByCallTree().

Here is the caller graph for this function:

virtual void GPM_GraphElement::toDoAfterThisSetting ( )
inlineprotectedvirtualinherited

method called after This setting

Reimplemented from CORE_Object.

References CORE_Object::toDoAfterThisSetting().

Here is the call graph for this function:

tString GPM_Edge::toString ( ) const
virtualinherited

turn the class into string

Reimplemented from GPM_GraphElement.

References GPM_Edge::getSource(), GPM_Edge::getTarget(), null, CORE_Integer::toString(), GPM_GraphElement::toString(), and tString.

Here is the call graph for this function:

static void GPM_Object::turnBodyLineToText ( tString bdy)
inlinestaticinherited

brief turn the body from the line to text

References CORE_String::replaceAll().

Referenced by GPMG_Project::loadFromUIClass(), and GPM_ModelFunction::readRulesFromFile().

Here is the call graph for this function:

Here is the caller graph for this function:

static void GPM_Object::turnBodyLineToText ( tString bdy)
inlinestaticinherited

brief turn the body from the line to text

References CORE_String::replaceAll().

Referenced by GPMG_Project::loadFromUIClass(), and GPM_ModelFunction::readRulesFromFile().

Here is the call graph for this function:

Here is the caller graph for this function:

static void GPM_Object::turnBodyTextToLine ( tString bdy)
inlinestaticinherited

brief turn the body from the text to line

References CORE_String::replaceAll().

Referenced by GPM_ModelFunction::saveRulesToFile(), and GPMG_Project::saveToUIClass().

Here is the call graph for this function:

Here is the caller graph for this function:

static void GPM_Object::turnBodyTextToLine ( tString bdy)
inlinestaticinherited

brief turn the body from the text to line

References CORE_String::replaceAll().

Referenced by GPM_ModelFunction::saveRulesToFile(), and GPMG_Project::saveToUIClass().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void GPM_ModelEdge::updateEnvironment ( const map< tString, SP::GPM_Variable > &  env)
inlinevirtual

update the environment

Reimplemented from GPM_ModelGraphElement.

References GPM_GraphElement::updateEnvironment(), and GPM_ModelGraphElement::updateEnvironment().

Here is the call graph for this function:

void GPM_ModelGraphElement::updateRules ( const GPM_ModelClassFactory cf)
inherited

update rules

References GPM_ModelGraphElement::getRule(), GPM_ModelGraphElement::getRulesNumber(), GPM_ModelClassFactory::newRule(), null, and tString.

Referenced by GPM_ModelGraph::updateRules().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

tBoolean CORE_Object::mIsMemoryTesting =false
staticinherited

indicator to store all classes created and deleted only for debuging version

Referenced by CORE_Object::CORE_Object(), main(), CORE_Object::printObjectsInMemory(), and CORE_Object::~CORE_Object().


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