1------------------------------------------------------------------------------ 2-- -- 3-- Matreshka Project -- 4-- -- 5-- Ada Modeling Framework -- 6-- -- 7-- Runtime Library Component -- 8-- -- 9------------------------------------------------------------------------------ 10-- -- 11-- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> -- 12-- All rights reserved. -- 13-- -- 14-- Redistribution and use in source and binary forms, with or without -- 15-- modification, are permitted provided that the following conditions -- 16-- are met: -- 17-- -- 18-- * Redistributions of source code must retain the above copyright -- 19-- notice, this list of conditions and the following disclaimer. -- 20-- -- 21-- * Redistributions in binary form must reproduce the above copyright -- 22-- notice, this list of conditions and the following disclaimer in the -- 23-- documentation and/or other materials provided with the distribution. -- 24-- -- 25-- * Neither the name of the Vadim Godunko, IE nor the names of its -- 26-- contributors may be used to endorse or promote products derived from -- 27-- this software without specific prior written permission. -- 28-- -- 29-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- 30-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- 31-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- 32-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- 33-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- 34-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- 35-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- 36-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- 37-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- 38-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- 39-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- 40-- -- 41------------------------------------------------------------------------------ 42-- $Revision: 2937 $ $Date: 2012-05-01 21:07:27 +0400 (Tue, 01 May 2012) $ 43------------------------------------------------------------------------------ 44with AMF.Internals.UML_Named_Elements; 45with AMF.UML.Activities; 46with AMF.UML.Activity_Edges.Collections; 47with AMF.UML.Activity_Final_Nodes; 48with AMF.UML.Activity_Groups.Collections; 49with AMF.UML.Activity_Nodes.Collections; 50with AMF.UML.Activity_Partitions.Collections; 51with AMF.UML.Classifiers.Collections; 52with AMF.UML.Dependencies.Collections; 53with AMF.UML.Interruptible_Activity_Regions.Collections; 54with AMF.UML.Named_Elements; 55with AMF.UML.Namespaces; 56with AMF.UML.Packages.Collections; 57with AMF.UML.Redefinable_Elements.Collections; 58with AMF.UML.String_Expressions; 59with AMF.UML.Structured_Activity_Nodes; 60with AMF.Visitors; 61 62package AMF.Internals.UML_Activity_Final_Nodes is 63 64 type UML_Activity_Final_Node_Proxy is 65 limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy 66 and AMF.UML.Activity_Final_Nodes.UML_Activity_Final_Node with null record; 67 68 overriding function Get_Activity 69 (Self : not null access constant UML_Activity_Final_Node_Proxy) 70 return AMF.UML.Activities.UML_Activity_Access; 71 -- Getter of ActivityNode::activity. 72 -- 73 -- Activity containing the node. 74 75 overriding procedure Set_Activity 76 (Self : not null access UML_Activity_Final_Node_Proxy; 77 To : AMF.UML.Activities.UML_Activity_Access); 78 -- Setter of ActivityNode::activity. 79 -- 80 -- Activity containing the node. 81 82 overriding function Get_In_Group 83 (Self : not null access constant UML_Activity_Final_Node_Proxy) 84 return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group; 85 -- Getter of ActivityNode::inGroup. 86 -- 87 -- Groups containing the node. 88 89 overriding function Get_In_Interruptible_Region 90 (Self : not null access constant UML_Activity_Final_Node_Proxy) 91 return AMF.UML.Interruptible_Activity_Regions.Collections.Set_Of_UML_Interruptible_Activity_Region; 92 -- Getter of ActivityNode::inInterruptibleRegion. 93 -- 94 -- Interruptible regions containing the node. 95 96 overriding function Get_In_Partition 97 (Self : not null access constant UML_Activity_Final_Node_Proxy) 98 return AMF.UML.Activity_Partitions.Collections.Set_Of_UML_Activity_Partition; 99 -- Getter of ActivityNode::inPartition. 100 -- 101 -- Partitions containing the node. 102 103 overriding function Get_In_Structured_Node 104 (Self : not null access constant UML_Activity_Final_Node_Proxy) 105 return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access; 106 -- Getter of ActivityNode::inStructuredNode. 107 -- 108 -- Structured activity node containing the node. 109 110 overriding procedure Set_In_Structured_Node 111 (Self : not null access UML_Activity_Final_Node_Proxy; 112 To : AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access); 113 -- Setter of ActivityNode::inStructuredNode. 114 -- 115 -- Structured activity node containing the node. 116 117 overriding function Get_Incoming 118 (Self : not null access constant UML_Activity_Final_Node_Proxy) 119 return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge; 120 -- Getter of ActivityNode::incoming. 121 -- 122 -- Edges that have the node as target. 123 124 overriding function Get_Outgoing 125 (Self : not null access constant UML_Activity_Final_Node_Proxy) 126 return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge; 127 -- Getter of ActivityNode::outgoing. 128 -- 129 -- Edges that have the node as source. 130 131 overriding function Get_Redefined_Node 132 (Self : not null access constant UML_Activity_Final_Node_Proxy) 133 return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node; 134 -- Getter of ActivityNode::redefinedNode. 135 -- 136 -- Inherited nodes replaced by this node in a specialization of the 137 -- activity. 138 139 overriding function Get_Is_Leaf 140 (Self : not null access constant UML_Activity_Final_Node_Proxy) 141 return Boolean; 142 -- Getter of RedefinableElement::isLeaf. 143 -- 144 -- Indicates whether it is possible to further redefine a 145 -- RedefinableElement. If the value is true, then it is not possible to 146 -- further redefine the RedefinableElement. Note that this property is 147 -- preserved through package merge operations; that is, the capability to 148 -- redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in 149 -- the resulting RedefinableElement of a package merge operation where a 150 -- RedefinableElement with isLeaf=false is merged with a matching 151 -- RedefinableElement with isLeaf=true: the resulting RedefinableElement 152 -- will have isLeaf=false. Default value is false. 153 154 overriding procedure Set_Is_Leaf 155 (Self : not null access UML_Activity_Final_Node_Proxy; 156 To : Boolean); 157 -- Setter of RedefinableElement::isLeaf. 158 -- 159 -- Indicates whether it is possible to further redefine a 160 -- RedefinableElement. If the value is true, then it is not possible to 161 -- further redefine the RedefinableElement. Note that this property is 162 -- preserved through package merge operations; that is, the capability to 163 -- redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in 164 -- the resulting RedefinableElement of a package merge operation where a 165 -- RedefinableElement with isLeaf=false is merged with a matching 166 -- RedefinableElement with isLeaf=true: the resulting RedefinableElement 167 -- will have isLeaf=false. Default value is false. 168 169 overriding function Get_Redefined_Element 170 (Self : not null access constant UML_Activity_Final_Node_Proxy) 171 return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element; 172 -- Getter of RedefinableElement::redefinedElement. 173 -- 174 -- The redefinable element that is being redefined by this element. 175 176 overriding function Get_Redefinition_Context 177 (Self : not null access constant UML_Activity_Final_Node_Proxy) 178 return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier; 179 -- Getter of RedefinableElement::redefinitionContext. 180 -- 181 -- References the contexts that this element may be redefined from. 182 183 overriding function Get_Client_Dependency 184 (Self : not null access constant UML_Activity_Final_Node_Proxy) 185 return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency; 186 -- Getter of NamedElement::clientDependency. 187 -- 188 -- Indicates the dependencies that reference the client. 189 190 overriding function Get_Name_Expression 191 (Self : not null access constant UML_Activity_Final_Node_Proxy) 192 return AMF.UML.String_Expressions.UML_String_Expression_Access; 193 -- Getter of NamedElement::nameExpression. 194 -- 195 -- The string expression used to define the name of this named element. 196 197 overriding procedure Set_Name_Expression 198 (Self : not null access UML_Activity_Final_Node_Proxy; 199 To : AMF.UML.String_Expressions.UML_String_Expression_Access); 200 -- Setter of NamedElement::nameExpression. 201 -- 202 -- The string expression used to define the name of this named element. 203 204 overriding function Get_Namespace 205 (Self : not null access constant UML_Activity_Final_Node_Proxy) 206 return AMF.UML.Namespaces.UML_Namespace_Access; 207 -- Getter of NamedElement::namespace. 208 -- 209 -- Specifies the namespace that owns the NamedElement. 210 211 overriding function Get_Qualified_Name 212 (Self : not null access constant UML_Activity_Final_Node_Proxy) 213 return AMF.Optional_String; 214 -- Getter of NamedElement::qualifiedName. 215 -- 216 -- A name which allows the NamedElement to be identified within a 217 -- hierarchy of nested Namespaces. It is constructed from the names of the 218 -- containing namespaces starting at the root of the hierarchy and ending 219 -- with the name of the NamedElement itself. 220 221 overriding function Is_Consistent_With 222 (Self : not null access constant UML_Activity_Final_Node_Proxy; 223 Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) 224 return Boolean; 225 -- Operation RedefinableElement::isConsistentWith. 226 -- 227 -- The query isConsistentWith() specifies, for any two RedefinableElements 228 -- in a context in which redefinition is possible, whether redefinition 229 -- would be logically consistent. By default, this is false; this 230 -- operation must be overridden for subclasses of RedefinableElement to 231 -- define the consistency conditions. 232 233 overriding function Is_Redefinition_Context_Valid 234 (Self : not null access constant UML_Activity_Final_Node_Proxy; 235 Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) 236 return Boolean; 237 -- Operation RedefinableElement::isRedefinitionContextValid. 238 -- 239 -- The query isRedefinitionContextValid() specifies whether the 240 -- redefinition contexts of this RedefinableElement are properly related 241 -- to the redefinition contexts of the specified RedefinableElement to 242 -- allow this element to redefine the other. By default at least one of 243 -- the redefinition contexts of this element must be a specialization of 244 -- at least one of the redefinition contexts of the specified element. 245 246 overriding function All_Owning_Packages 247 (Self : not null access constant UML_Activity_Final_Node_Proxy) 248 return AMF.UML.Packages.Collections.Set_Of_UML_Package; 249 -- Operation NamedElement::allOwningPackages. 250 -- 251 -- The query allOwningPackages() returns all the directly or indirectly 252 -- owning packages. 253 254 overriding function Is_Distinguishable_From 255 (Self : not null access constant UML_Activity_Final_Node_Proxy; 256 N : AMF.UML.Named_Elements.UML_Named_Element_Access; 257 Ns : AMF.UML.Namespaces.UML_Namespace_Access) 258 return Boolean; 259 -- Operation NamedElement::isDistinguishableFrom. 260 -- 261 -- The query isDistinguishableFrom() determines whether two NamedElements 262 -- may logically co-exist within a Namespace. By default, two named 263 -- elements are distinguishable if (a) they have unrelated types or (b) 264 -- they have related types but different names. 265 266 overriding function Namespace 267 (Self : not null access constant UML_Activity_Final_Node_Proxy) 268 return AMF.UML.Namespaces.UML_Namespace_Access; 269 -- Operation NamedElement::namespace. 270 -- 271 -- Missing derivation for NamedElement::/namespace : Namespace 272 273 overriding procedure Enter_Element 274 (Self : not null access constant UML_Activity_Final_Node_Proxy; 275 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 276 Control : in out AMF.Visitors.Traverse_Control); 277 -- Dispatch call to corresponding subprogram of visitor interface. 278 279 overriding procedure Leave_Element 280 (Self : not null access constant UML_Activity_Final_Node_Proxy; 281 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 282 Control : in out AMF.Visitors.Traverse_Control); 283 -- Dispatch call to corresponding subprogram of visitor interface. 284 285 overriding procedure Visit_Element 286 (Self : not null access constant UML_Activity_Final_Node_Proxy; 287 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 288 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 289 Control : in out AMF.Visitors.Traverse_Control); 290 -- Dispatch call to corresponding subprogram of iterator interface. 291 292end AMF.Internals.UML_Activity_Final_Nodes; 293