Package OpenCAGE.GIF.RFG.Viewmasters

Class RFG_Observer

extends RFGs.RFG_Observer

Attributes

private OpenCAGE.GIF.RFG.Viewmasters.RFG_View_Master_Model RFG_View_Master_Model 

Operations

public Destroying( RFGs.RFG Old_RFG);

This message is send if the RFG is destroying itself. [This description is adopted from 'RFGs.RFG_Observer'.]

public Child_Added( RFGs.RFG RFG, RFGs.View Child_View);

Class RFG_View_Master_Model

extends OpenCAGE.GIF.Root_Node_Models.Root_Node_Model

throws View_Not_Found .

This class is the entry point to the graph. Thus, it is a node without any edges. It holds a list of all views.

Attributes

private OpenCAGE.GIF.Node_Models_Lists.List View_Nodes 

private RFGs.RFG The_Rfg 

private OpenCAGE.GIF.OC_ID ID 

private OpenCAGE.GIF.RFG.Viewmasters.RFG_Observer RFG_Observer 

private OpenCAGE.GIF.RFG.Viewmasters.View_Observer View_Observer 

Operations

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 OpenCAGE.GIF.Edge_Models_Lists.List Get_Incoming_Edges(void);

A list of all incoming edges. [This description is adopted from 'OpenCAGE.GIF.Node_Model'.]

public OpenCAGE.GIF.Edge_Models_Lists.List Get_Outgoing_Edges(void);

A list of all outgoing edges. [This description is adopted from 'OpenCAGE.GIF.Node_Model'.]

public Ada.Strings.Unbounded.Unbounded_String Get_Annotation( Ada.Strings.Unbounded.Unbounded_String Key);

Get a node annotation. [This description is adopted from 'OpenCAGE.GIF.Node_Model'.]

public Set_Annotation( Ada.Strings.Unbounded.Unbounded_String Key, Ada.Strings.Unbounded.Unbounded_String Value);

Set a node annotation. If it exists already, it is updated, else it is created. [This description is adopted from 'OpenCAGE.GIF.Node_Model'.]

public Integer Get_Annotation( Ada.Strings.Unbounded.Unbounded_String Key);

Get a node annotation. [This description is adopted from 'OpenCAGE.GIF.Node_Model'.]

public Set_Annotation( Ada.Strings.Unbounded.Unbounded_String Key, Integer Value);

Set a node annotation. If it exists already, it is updated, else it is created. [This description is adopted from 'OpenCAGE.GIF.Node_Model'.]

public Boolean Get_Annotation( Ada.Strings.Unbounded.Unbounded_String Key);

Get a node annotation. [This description is adopted from 'OpenCAGE.GIF.Node_Model'.]

public Set_Annotation( Ada.Strings.Unbounded.Unbounded_String Key, Boolean Value);

Set a node annotation. If it exists already, it is updated, else it is created. [This description is adopted from 'OpenCAGE.GIF.Node_Model'.]

private Add_View( RFGs.View View);

Add a view to the View_Master

public OpenCAGE.GIF.RFG.Viewmasters.RFG_View_Master_Model Create(void);

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'.]

public OpenCAGE.General.String_List.List Get_Attributes(void);

Return a list of attributes, which are grouped to this viewmaster

public OpenCAGE.GIF.OC_ID Create_ID(void);

Creates a unique OC_ID for the nodes.

public OpenCAGE.GIF.RFG.Views.RFG_View_Node_Model Get_View( Ada.Strings.Unbounded.Unbounded_String Name);

Returns the view with the given Name

public OpenCAGE.GIF.Node_Model_Pot_Element Create_Pot_Element(void);

Create a pot element with the node contained in the pot element [This description is adopted from 'OpenCAGE.GIF.Node_Model'.]

public OpenCAGE.GIF.Node_Model Get_Node( String Name);

Returns a node for the given name. If the name is not known (i.e. Is_Known_Node retuns False for the given name), an Unknown_Node_Exception is thrown. [This description is adopted from 'OpenCAGE.GIF.Root_Node_Models.Root_Node_Model'.]

public Boolean Is_Known_Node( String Name);

Returns True if the given name is a known node, False otherwise. [This description is adopted from 'OpenCAGE.GIF.Root_Node_Models.Root_Node_Model'.]

public Boolean Is_Readonly(void);

Return the read/write status of a node. True = read only False = read and write [This description is adopted from 'OpenCAGE.GIF.Node_Model'.]

public Set_Readonly( Boolean Status);

Sets the read/write status of a node True = read only False = read and write [This description is adopted from 'OpenCAGE.GIF.Node_Model'.]

private Remove_View( OpenCAGE.GIF.RFG.Views.RFG_View_Node_Model View);

Add a view to the View_Master

Class View_Observer

extends OpenCAGE.GIF.Node_Model_Observer

Attributes

private OpenCAGE.GIF.RFG.Viewmasters.RFG_View_Master_Model RFG_View_Master_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);

Only listens to Destroying.