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_Node Class Reference

This class describes a node. More...

#include <GPM_Node.h>

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

Public Member Functions

virtual SP::GPM_GraphElement NewInstance () const
 create a new instance More...
 
virtual SP::GPM_Node NewCopyInstance () const
 create a new instance More...
 
virtual void copy (const GPM_GraphElement &node)
 copy More...
 
virtual void clearVariables ()
 clear the variables More...
 
virtual tString getGroupTypeName () const
 get the default group type name More...
 
virtual tString toString () const
 to string More...
 
void setCoordinates (const double &x, const double &y, const double &z)
 set coordinate More...
 
void setCoordinates (const tReal *X)
 set coordinates More...
 
void setCoordinates (const double *X)
 set coordinates More...
 
void setCoordinate (const tFlag &k, const double &x)
 set coordinate More...
 
const double * getCoordinates () const
 get coordinates More...
 
double * getCoordinates ()
 get coordinates More...
 
void getCoordinates (double coord[3]) const
 get coordinates More...
 
double getCoordinate (const tFlag &k) const
 get k-coordinate More...
 
virtual tBoolean setTriggerCoordinates (const tFlag &action, const double *value)
 set trigger coordinate action More...
 
tBoolean setTriggerCoordinates (const tFlag &action, const double &x, const double &y, const double &z)
 set trigger coordinates action More...
 
const double * getTriggerCoordinates () const
 get trigger coordinate More...
 
virtual tBoolean setTriggerCoordinate (const tFlag &action, const int &k, const double &v)
 set trigger coordinates action More...
 
virtual void clearActions ()
 clear actions More...
 
virtual void executeTriggerActions ()
 execute trigger actions More...
 
virtual tString getGroupCoordinatesName (const tReal &eps) const
 update the group name using coordinate More...
 
tString getGroupCoordinatesName () const
 update the group name using coordinate More...
 
virtual tBoolean canMerge (const GPM_Vertex &elt) const
 return true if the graph element can be merge with elt More...
 
virtual void saveToStream (ofstream &f) const
 
virtual tBoolean loadFromStream (tString &tokenizer)
 
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...
 
virtual void updateEnvironment (const map< tString, SP::GPM_Variable > &env)
 update 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...
 
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...
 
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...
 

Static Public Member Functions

static SP::GPM_Node New ()
 create a node More...
 
static SP::GPM_Node New (const int &id)
 create a node More...
 
static SP::GPM_Node New (const tString &groupName, const int &id)
 create a node 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 Public Attributes

static const tFlag X =0
 
static const tFlag Y =1
 
static const tFlag Z =2
 
static double R =1.e-6
 
static tBoolean mIsMemoryTesting =false
 indicator to store all classes created and deleted only for debuging version More...
 

Protected Member Functions

 GPM_Node (void)
 create an object More...
 
virtual ~GPM_Node (void)
 destroy an object. 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 node.

Author
Stéphane Despréaux
Version
1.

Constructor & Destructor Documentation

GPM_Node::GPM_Node ( void  )
protected

create an object

References GPM_Vertex::setCoordinates(), and CORE_Object::setType().

Referenced by New().

Here is the call graph for this function:

Here is the caller graph for this function:

GPM_Node::~GPM_Node ( void  )
protectedvirtual

destroy an object.

Member Function Documentation

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:

tBoolean GPM_Vertex::canMerge ( const GPM_Vertex elt) const
virtualinherited

return true if the graph element can be merge with elt

  • same group id

same variable

References GPM_GraphElement::getGroupTypeName(), GPM_GraphElement::getVariableNames(), GPM_GraphElement::getVariables(), and tBoolean.

Here is the call graph for this function:

virtual void GPM_Vertex::clearActions ( )
inlinevirtualinherited

clear actions

Reimplemented from GPM_GraphElement.

References GPM_GraphElement::clearActions().

Here is the call graph for this function:

virtual void GPM_Node::clearVariables ( )
inlinevirtual

clear the variables

Reimplemented from GPM_GraphElement.

References GPM_GraphElement::clearVariables().

Here is the call graph for this function:

void GPM_Node::copy ( const GPM_GraphElement node)
virtual

copy

Reimplemented from GPM_Vertex.

Reimplemented in GPM_ModelNode.

References GPM_Vertex::copy().

Referenced by GPM_ModelNode::copy().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void GPM_Vertex::executeTriggerActions ( )
inlinevirtualinherited

execute trigger actions

Reimplemented from GPM_GraphElement.

References GPM_GraphElement::executeTriggerActions(), null, and GPM_Vertex::setCoordinate().

Here is the call 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:

double GPM_Vertex::getCoordinate ( const tFlag k) const
inlineinherited

get k-coordinate

Referenced by GPM_Vertex::getGroupCoordinatesName(), and GPM_ConwayFunction::updatePatternGraphStates().

Here is the caller graph for this function:

const double* GPM_Vertex::getCoordinates ( ) const
inlineinherited
double* GPM_Vertex::getCoordinates ( )
inlineinherited

get coordinates

void GPM_Vertex::getCoordinates ( double  coord[3]) const
inlineinherited

get coordinates

GPM_Graph * GPM_GraphElement::getGraph ( ) const
inherited
tString GPM_Vertex::getGroupCoordinatesName ( const tReal eps) const
virtualinherited

update the group name using coordinate

References GPM_Vertex::getCoordinate(), CORE_Real::toString(), and tString.

Referenced by GPM_PortGraph::initGroupNames().

Here is the call graph for this function:

Here is the caller graph for this function:

tString GPM_Vertex::getGroupCoordinatesName ( ) const
inlineinherited

update the group name using coordinate

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_Node::getGroupTypeName ( ) const
inlinevirtual

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:

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

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:

const double* GPM_Vertex::getTriggerCoordinates ( ) const
inlineinherited

get trigger coordinate

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_Vertex::loadFromStream ( tString tokenizer)
virtualinherited

brief save the port into stream

Reimplemented from GPM_GraphElement.

Reimplemented in GPM_Port.

References GPM_GraphElement::loadFromStream(), CORE_Real::parseReal(), GPM_Vertex::setCoordinate(), GPM_Vertex::setCoordinates(), tBoolean, and tString.

Referenced by GPM_Port::loadFromStream().

Here is the call graph for this function:

Here is the caller graph for this function:

static SP::GPM_Node GPM_Node::New ( )
inlinestatic

create a node

References GPM_Node().

Referenced by New(), NewCopyInstance(), GPM_ClassFactory::NewInstance(), NewInstance(), and GPM_Graph::newNode().

Here is the call graph for this function:

Here is the caller graph for this function:

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

create a node

References New().

Here is the call graph for this function:

static SP::GPM_Node GPM_Node::New ( const tString groupName,
const int &  id 
)
inlinestatic

create a node

References New().

Here is the call graph for this function:

virtual SP::GPM_Node GPM_Node::NewCopyInstance ( ) const
inlinevirtual

create a new instance

References New().

Here is the call graph for this function:

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

create a new instance

Implements GPM_GraphElement.

Reimplemented in GPM_ModelNode.

References New().

Here is the call 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_GraphElement::removeVariable ( const tString varName)
inlineinherited

remove the variable

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

brief save the port into stream

Reimplemented from GPM_GraphElement.

References GPM_Vertex::toString().

Here is the call graph for this function:

void GPM_Vertex::setCoordinate ( const tFlag k,
const double &  x 
)
inlineinherited

set coordinate

Referenced by GPM_Vertex::executeTriggerActions(), and GPM_Vertex::loadFromStream().

Here is the caller graph for this function:

void GPM_Vertex::setCoordinates ( const double &  x,
const double &  y,
const double &  z 
)
inlineinherited
void GPM_Vertex::setCoordinates ( const tReal X)
inlineinherited

set coordinates

References GPM_Vertex::setCoordinates().

Here is the call graph for this function:

void GPM_Vertex::setCoordinates ( const double *  X)
inlineinherited

set coordinates

References GPM_Vertex::setCoordinates().

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

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_Vertex::setTriggerCoordinate ( const tFlag action,
const int &  k,
const double &  v 
)
virtualinherited

set trigger coordinates action

Reimplemented in GPM_Port.

References null, GPM_Vertex::R, and tFlag.

Referenced by GPM_Port::setTriggerCoordinate().

Here is the caller graph for this function:

virtual tBoolean GPM_Vertex::setTriggerCoordinates ( const tFlag action,
const double *  value 
)
virtualinherited

set trigger coordinate action

Reimplemented in GPM_Port.

Referenced by GPM_Port::setTriggerCoordinates(), GPM_Vertex::setTriggerCoordinates(), and GPM_ConwayFunction::updatePatternGraphStates().

Here is the caller graph for this function:

tBoolean GPM_Vertex::setTriggerCoordinates ( const tFlag action,
const double &  x,
const double &  y,
const double &  z 
)
inlineinherited

set trigger coordinates action

References GPM_Vertex::setTriggerCoordinates().

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:

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_Node::toString ( ) const
virtual

to string

Reimplemented from GPM_Vertex.

References GPM_Vertex::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::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:

void GPM_GraphElement::updateEnvironment ( const map< tString, SP::GPM_Variable > &  env)
virtualinherited

update environment

Reimplemented in GPM_ModelEdge, GPM_ModelPort, and GPM_ModelNode.

References GPM_Variable::New(), tBoolean, tFlag, and tString.

Referenced by GPM_ModelNode::updateEnvironment(), GPM_ModelPort::updateEnvironment(), GPM_ModelEdge::updateEnvironment(), and GPM_PortGraph::updateGraphElementsEnvironment().

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().

double GPM_Vertex::R =1.e-6
staticinherited
const tFlag GPM_Vertex::X =0
staticinherited
const tFlag GPM_Vertex::Y =1
staticinherited
const tFlag GPM_Vertex::Z =2
staticinherited

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