Package OpenCAGE.GIF.RFG.Nodes.Composite

Class RFG_Composite_Node_Model

extends OpenCAGE.GIF.RFG.Nodes.RFG_Node_Model

This class represents Composite nodes. Thus, it holds a list of RFG_Node_Models. The nodes of the list are part of the current Composite-Node. Moreover, it knows the specification of RFG Composite Nodes and has direct access to them.

Attributes

private OpenCAGE.GIF.Node_Models_Lists.List Nodes 

The children of this composite node.

private Boolean Children_Read 

This flag indicates, if the node has already read his children (Get_Children has been called)

Operations

public OpenCAGE.GIF.RFG.Nodes.Composite.RFG_Composite_Node_Model Create( RFGs.Node_Ptr Rfg_Node);

public Boolean Has_Children(void);

Returns true if not Is_Leaf() and Count(Children) > 0, false otherwise. [This description is adopted from 'OpenCAGE.GIF.Node_Model'.]

public OpenCAGE.GIF.Node_Models_Lists.List Get_Children(void);

Returns a list of all children of this node if Is_Leaf() == false, null otherwise. [This description is adopted from 'OpenCAGE.GIF.Node_Model'.]

public Add_Child( OpenCAGE.GIF.RFG.Nodes.RFG_Node_Model Child);

Adds a children to the node [This description is adopted from 'OpenCAGE.GIF.RFG.Nodes.RFG_Node_Model'.]

public Remove_Child( OpenCAGE.GIF.RFG.Nodes.RFG_Node_Model Child);

Removes a children from the node [This description is adopted from 'OpenCAGE.GIF.RFG.Nodes.RFG_Node_Model'.]

public OpenCAGE.Actions.Action Get_Action( String Name);

This method returns an Action matching the given name. E.g. if you give "Foo" as the name, you will get a Foo_Action. If this action is not supported by the model behind Node_Model it will throw an Unsupported_Action_Exception. So you either get an Action which is a Foo_Action (i.e. you are allowed to cast and you can be sure the cast works) or an exception is raised. [This description is adopted from 'OpenCAGE.GIF.Node_Model'.]

public Boolean Is_Supported_Action( String Name);

This method returns true if the given action name is supported, i.e. of Get_Action will return an appropriate Action. Otherwise false is returned. [This description is adopted from 'OpenCAGE.GIF.Node_Model'.]

Class Node_Model_Observer

extends OpenCAGE.GIF.RFG.Views.Node_Model_Observer

Only listens to Destroying

Attributes

private OpenCAGE.GIF.RFG.Nodes.RFG_Node_Model RFG_Node_Model 

Operations

public Destroying( OpenCAGE.GIF.Node_Model Old_Node);

Is called by the observed node when it is asked to destroy itself. [This description is adopted from 'OpenCAGE.GIF.Node_Model_Observer'.]

public Changed( OpenCAGE.GIF.Node_Model Node);

Is called by the observed node when it has changed. [This description is adopted from 'OpenCAGE.GIF.Node_Model_Observer'.]

public Child_Added( OpenCAGE.GIF.Node_Model Node, OpenCAGE.GIF.Node_Model Child_Node);

Is called by the observed node when a child is added. [This description is adopted from 'OpenCAGE.GIF.Node_Model_Observer'.]

public Child_Removed( OpenCAGE.GIF.Node_Model Node, OpenCAGE.GIF.Node_Model Child_Node);

Is called by the observed node when a child is removed. [This description is adopted from 'OpenCAGE.GIF.Node_Model_Observer'.]

public Incoming_Edge_Added( OpenCAGE.GIF.Node_Model Node, OpenCAGE.GIF.Edge_Model New_Edge);

Is called by the observed node when an incoming edge was added. [This description is adopted from 'OpenCAGE.GIF.Node_Model_Observer'.]

public Outgoing_Edge_Added( OpenCAGE.GIF.Node_Model Node, OpenCAGE.GIF.Edge_Model New_Edge);

Is called by the observed node when an outgoing edge was added. [This description is adopted from 'OpenCAGE.GIF.Node_Model_Observer'.]

public Incoming_Edge_Removed( OpenCAGE.GIF.Node_Model Node, OpenCAGE.GIF.Edge_Model Old_Edge);

Is called by the observed node when an incoming edge was removed. [This description is adopted from 'OpenCAGE.GIF.Node_Model_Observer'.]

public Outgoing_Edge_Removed( OpenCAGE.GIF.Node_Model Node, OpenCAGE.GIF.Edge_Model Old_Edge);

Is called by the observed node when an outgoing edge was removed. [This description is adopted from 'OpenCAGE.GIF.Node_Model_Observer'.]