Simple implementation for the observer registering and updating and notifying for Edge_Model and Node_Model. These may be replaced if more complex implementations are necessary or a underlying graph model implementation provides already this functionality.
extends OpenCAGE.GIF.Edge_Model
private OpenCAGE.GIF.Simple.Edge_Model_Observers_Lists.List Observers |
The attached observers to update when this model changed.
Attach the given observer to the observer list. [This description is adopted from 'OpenCAGE.GIF.Edge_Model'.]
Detach the given observer from the observer list. [This description is adopted from 'OpenCAGE.GIF.Edge_Model'.]
Returns the start node of the edge.
Returns the end node of the edge.
Get a node annotation.
Set a node annotation. If it exists already, it is updated, else it is created.
Get a node annotation.
Set a node annotation. If it exists already, it is updated, else it is created.
Get a node annotation.
Set a node annotation. If it exists already, it is updated, else it is created.
Observer-Pattern. This method is protected, i.e. it should not be called from outside. Unfortunatly Ada doesn't support this feature.
Postcondition: all attached Observers are notified
Observer-Pattern. This method is protected, i.e. it should not be called from outside. Unfortunatly Ada doesn't support this feature.
Postcondition: all attached Observers are notified
extends OpenCAGE.GIF.Node_Model
private OpenCAGE.GIF.Node_Model Parent |
The parent of this node.
private Boolean Leaf |
true if this node is a leaf, false otherwise
private OpenCAGE.GIF.Simple.Node_Model_Observers_Lists.List Observers |
The attached observers to update when this model changed.
private Boolean Events_Enabled |
Events are only sent, when this is set to True (which is the default)
Attach the given observer to the observer list. [This description is adopted from 'OpenCAGE.GIF.Node_Model'.]
Detach the given observer from the observer list. [This description is adopted from 'OpenCAGE.GIF.Node_Model'.]
Observer-Pattern. This method is protected, i.e. it should not be called from outside. Unfortunatly Ada doesn't support this feature.
Postcondition: all attached Observers are notified
Observer-Pattern. This method is protected, i.e. it should not be called from outside. Unfortunatly Ada doesn't support this feature.
Postcondition: all attached Observers are notified
Observer-Pattern. This method is protected, i.e. it should not be called from outside. Unfortunatly Ada doesn't support this feature.
Postcondition: all attached Observers are notified
Observer-Pattern. This method is protected, i.e. it should not be called from outside. Unfortunatly Ada doesn't support this feature.
Postcondition: all attached Observers are notified
Observer-Pattern. This method is protected, i.e. it should not be called from outside. Unfortunatly Ada doesn't support this feature.
Postcondition: all attached Observers are notified
Observer-Pattern. This method is protected, i.e. it should not be called from outside. Unfortunatly Ada doesn't support this feature.
Postcondition: all attached Observers are notified
Observer-Pattern. This method is protected, i.e. it should not be called from outside. Unfortunatly Ada doesn't support this feature.
Postcondition: all attached Observers are notified
Observer-Pattern. This method is protected, i.e. it should not be called from outside. Unfortunatly Ada doesn't support this feature.
Postcondition: all attached Observers are notified
Destroys all node models in the given list. This method is protected. ATTENTION: We assume that all children are derived from Simple_Node_Model. If you use your very own implementation, don't call this method!
Enables the events. This method is protected, i.e. it should not be called from outside. Unfortunatly Ada doesn't support this feature.
Disables the events. This method is protected, i.e. it should not be called from outside. Unfortunatly Ada doesn't support this feature.