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

This class describes a model Port. More...

#include <GPM_ModelPort.h>

Inheritance diagram for GPM_ModelPort:
Inheritance graph
[legend]
Collaboration diagram for GPM_ModelPort:
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_Port NewCopyInstance () const
 create a new instance More...
 
virtual tString getGroupTypeName () const
 get the default group type name More...
 
tBoolean areCoordinatesComputedByDefault () const
 return true if the coordiantes of port are those computed by default More...
 
void setAreCoordinatesComputedByDefault (const tBoolean &isAutomatic)
 set to true if the coordiantes of port are computed by default More...
 
virtual tBoolean setTriggerCoordinate (const tFlag &action, const int &k, const double &v)
 set trigger coordinates action 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...
 
virtual tBoolean loadFromStream (tString &tokenizer)
 
virtual tString toString () const
 turn the class into 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...
 
const double * getTriggerCoordinates () const
 get trigger coordinate 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
 
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...
 
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_ModelPort New ()
 create a test class More...
 
static SP::GPM_Port New (const int &id)
 create a port More...
 
static SP::GPM_Port New (const tString &groupName, const int &id)
 create a port 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 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_ModelPort (void)
 create More...
 
virtual ~GPM_ModelPort (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 Port.

Author
Stephane Despreaux
Version
1.0

Constructor & Destructor Documentation

GPM_ModelPort::GPM_ModelPort ( void  )
protected

create

Referenced by New().

Here is the caller graph for this function:

GPM_ModelPort::~GPM_ModelPort ( 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:

tBoolean GPM_Port::areCoordinatesComputedByDefault ( ) const
inlineinherited

return true if the coordiantes of port are those computed by default

Referenced by GPM_Port::copy(), GPMG_DrawPanel::getCoordinates(), and GPM_Port::toString().

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:

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(), copy(), and GPM_ModelEdge::copy().

Here is the call graph for this function:

Here is the caller graph for this function:

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

copy

Reimplemented from GPM_Port.

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

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

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

brief save the port into stream

Reimplemented from GPM_Vertex.

References GPM_Vertex::loadFromStream(), GPM_GraphElement::parseValues(), GPM_Port::setAreCoordinatesComputedByDefault(), CORE_String::string2Boolean(), tBoolean, and tString.

Here is the call graph for this function:

static SP::GPM_ModelPort GPM_ModelPort::New ( )
inlinestatic

create a test class

References GPM_ModelPort().

Referenced by NewInstance(), GPM_ModelClassFactory::NewInstance(), and GPM_ModelGraph::newPort().

Here is the call graph for this function:

Here is the caller graph for this function:

static SP::GPM_Port GPM_Port::New ( const int &  id)
inlinestaticinherited

create a port

References GPM_Port::New().

Here is the call graph for this function:

static SP::GPM_Port GPM_Port::New ( const tString groupName,
const int &  id 
)
inlinestaticinherited

create a port

References GPM_Port::New().

Here is the call graph for this function:

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

create a new instance

References GPM_Port::New().

Here is the call graph for this function:

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

create a new instance

Reimplemented from GPM_Port.

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_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_Port::setAreCoordinatesComputedByDefault ( const tBoolean isAutomatic)
inlineinherited

set to true if the coordiantes of port are computed by default

Referenced by GPMG_VertexWindow::componentClicked(), GPM_Port::copy(), GPM_Port::loadFromStream(), GPM_Port::setTriggerCoordinate(), and GPM_Port::setTriggerCoordinates().

Here is the caller 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

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

virtual tBoolean GPM_Port::setTriggerCoordinate ( const tFlag action,
const int &  k,
const double &  v 
)
inlinevirtualinherited

set trigger coordinates action

Reimplemented from GPM_Vertex.

References GPM_Port::setAreCoordinatesComputedByDefault(), and GPM_Vertex::setTriggerCoordinate().

Here is the call graph for this function:

virtual tBoolean GPM_Port::setTriggerCoordinates ( const tFlag action,
const double *  value 
)
inlinevirtualinherited

set trigger coordinate action

Reimplemented from GPM_Vertex.

References GPM_Port::setAreCoordinatesComputedByDefault(), and GPM_Vertex::setTriggerCoordinates().

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

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_Port::toString ( ) const
virtualinherited

turn the class into string

Reimplemented from GPM_Vertex.

References GPM_Port::areCoordinatesComputedByDefault(), CORE_String::boolean2String(), 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::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_ModelPort::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().

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: