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_Groups.Collections; 48with AMF.UML.Activity_Nodes.Collections; 49with AMF.UML.Activity_Partitions.Collections; 50with AMF.UML.Classifiers.Collections; 51with AMF.UML.Constraints.Collections; 52with AMF.UML.Dependencies.Collections; 53with AMF.UML.Exception_Handlers.Collections; 54with AMF.UML.Input_Pins.Collections; 55with AMF.UML.Interruptible_Activity_Regions.Collections; 56with AMF.UML.Named_Elements; 57with AMF.UML.Namespaces; 58with AMF.UML.Output_Pins.Collections; 59with AMF.UML.Packages.Collections; 60with AMF.UML.Redefinable_Elements.Collections; 61with AMF.UML.Start_Classifier_Behavior_Actions; 62with AMF.UML.String_Expressions; 63with AMF.UML.Structured_Activity_Nodes; 64with AMF.Visitors; 65 66package AMF.Internals.UML_Start_Classifier_Behavior_Actions is 67 68 type UML_Start_Classifier_Behavior_Action_Proxy is 69 limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy 70 and AMF.UML.Start_Classifier_Behavior_Actions.UML_Start_Classifier_Behavior_Action with null record; 71 72 overriding function Get_Object 73 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 74 return AMF.UML.Input_Pins.UML_Input_Pin_Access; 75 -- Getter of StartClassifierBehaviorAction::object. 76 -- 77 -- Holds the object on which to start the owned behavior. 78 79 overriding procedure Set_Object 80 (Self : not null access UML_Start_Classifier_Behavior_Action_Proxy; 81 To : AMF.UML.Input_Pins.UML_Input_Pin_Access); 82 -- Setter of StartClassifierBehaviorAction::object. 83 -- 84 -- Holds the object on which to start the owned behavior. 85 86 overriding function Get_Context 87 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 88 return AMF.UML.Classifiers.UML_Classifier_Access; 89 -- Getter of Action::context. 90 -- 91 -- The classifier that owns the behavior of which this action is a part. 92 93 overriding function Get_Input 94 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 95 return AMF.UML.Input_Pins.Collections.Ordered_Set_Of_UML_Input_Pin; 96 -- Getter of Action::input. 97 -- 98 -- The ordered set of input pins connected to the Action. These are among 99 -- the total set of inputs. 100 101 overriding function Get_Is_Locally_Reentrant 102 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 103 return Boolean; 104 -- Getter of Action::isLocallyReentrant. 105 -- 106 -- If true, the action can begin a new, concurrent execution, even if 107 -- there is already another execution of the action ongoing. If false, the 108 -- action cannot begin a new execution until any previous execution has 109 -- completed. 110 111 overriding procedure Set_Is_Locally_Reentrant 112 (Self : not null access UML_Start_Classifier_Behavior_Action_Proxy; 113 To : Boolean); 114 -- Setter of Action::isLocallyReentrant. 115 -- 116 -- If true, the action can begin a new, concurrent execution, even if 117 -- there is already another execution of the action ongoing. If false, the 118 -- action cannot begin a new execution until any previous execution has 119 -- completed. 120 121 overriding function Get_Local_Postcondition 122 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 123 return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint; 124 -- Getter of Action::localPostcondition. 125 -- 126 -- Constraint that must be satisfied when executed is completed. 127 128 overriding function Get_Local_Precondition 129 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 130 return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint; 131 -- Getter of Action::localPrecondition. 132 -- 133 -- Constraint that must be satisfied when execution is started. 134 135 overriding function Get_Output 136 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 137 return AMF.UML.Output_Pins.Collections.Ordered_Set_Of_UML_Output_Pin; 138 -- Getter of Action::output. 139 -- 140 -- The ordered set of output pins connected to the Action. The action 141 -- places its results onto pins in this set. 142 143 overriding function Get_Handler 144 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 145 return AMF.UML.Exception_Handlers.Collections.Set_Of_UML_Exception_Handler; 146 -- Getter of ExecutableNode::handler. 147 -- 148 -- A set of exception handlers that are examined if an uncaught exception 149 -- propagates to the outer level of the executable node. 150 151 overriding function Get_Activity 152 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 153 return AMF.UML.Activities.UML_Activity_Access; 154 -- Getter of ActivityNode::activity. 155 -- 156 -- Activity containing the node. 157 158 overriding procedure Set_Activity 159 (Self : not null access UML_Start_Classifier_Behavior_Action_Proxy; 160 To : AMF.UML.Activities.UML_Activity_Access); 161 -- Setter of ActivityNode::activity. 162 -- 163 -- Activity containing the node. 164 165 overriding function Get_In_Group 166 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 167 return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group; 168 -- Getter of ActivityNode::inGroup. 169 -- 170 -- Groups containing the node. 171 172 overriding function Get_In_Interruptible_Region 173 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 174 return AMF.UML.Interruptible_Activity_Regions.Collections.Set_Of_UML_Interruptible_Activity_Region; 175 -- Getter of ActivityNode::inInterruptibleRegion. 176 -- 177 -- Interruptible regions containing the node. 178 179 overriding function Get_In_Partition 180 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 181 return AMF.UML.Activity_Partitions.Collections.Set_Of_UML_Activity_Partition; 182 -- Getter of ActivityNode::inPartition. 183 -- 184 -- Partitions containing the node. 185 186 overriding function Get_In_Structured_Node 187 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 188 return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access; 189 -- Getter of ActivityNode::inStructuredNode. 190 -- 191 -- Structured activity node containing the node. 192 193 overriding procedure Set_In_Structured_Node 194 (Self : not null access UML_Start_Classifier_Behavior_Action_Proxy; 195 To : AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access); 196 -- Setter of ActivityNode::inStructuredNode. 197 -- 198 -- Structured activity node containing the node. 199 200 overriding function Get_Incoming 201 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 202 return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge; 203 -- Getter of ActivityNode::incoming. 204 -- 205 -- Edges that have the node as target. 206 207 overriding function Get_Outgoing 208 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 209 return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge; 210 -- Getter of ActivityNode::outgoing. 211 -- 212 -- Edges that have the node as source. 213 214 overriding function Get_Redefined_Node 215 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 216 return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node; 217 -- Getter of ActivityNode::redefinedNode. 218 -- 219 -- Inherited nodes replaced by this node in a specialization of the 220 -- activity. 221 222 overriding function Get_Is_Leaf 223 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 224 return Boolean; 225 -- Getter of RedefinableElement::isLeaf. 226 -- 227 -- Indicates whether it is possible to further redefine a 228 -- RedefinableElement. If the value is true, then it is not possible to 229 -- further redefine the RedefinableElement. Note that this property is 230 -- preserved through package merge operations; that is, the capability to 231 -- redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in 232 -- the resulting RedefinableElement of a package merge operation where a 233 -- RedefinableElement with isLeaf=false is merged with a matching 234 -- RedefinableElement with isLeaf=true: the resulting RedefinableElement 235 -- will have isLeaf=false. Default value is false. 236 237 overriding procedure Set_Is_Leaf 238 (Self : not null access UML_Start_Classifier_Behavior_Action_Proxy; 239 To : Boolean); 240 -- Setter of RedefinableElement::isLeaf. 241 -- 242 -- Indicates whether it is possible to further redefine a 243 -- RedefinableElement. If the value is true, then it is not possible to 244 -- further redefine the RedefinableElement. Note that this property is 245 -- preserved through package merge operations; that is, the capability to 246 -- redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in 247 -- the resulting RedefinableElement of a package merge operation where a 248 -- RedefinableElement with isLeaf=false is merged with a matching 249 -- RedefinableElement with isLeaf=true: the resulting RedefinableElement 250 -- will have isLeaf=false. Default value is false. 251 252 overriding function Get_Redefined_Element 253 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 254 return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element; 255 -- Getter of RedefinableElement::redefinedElement. 256 -- 257 -- The redefinable element that is being redefined by this element. 258 259 overriding function Get_Redefinition_Context 260 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 261 return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier; 262 -- Getter of RedefinableElement::redefinitionContext. 263 -- 264 -- References the contexts that this element may be redefined from. 265 266 overriding function Get_Client_Dependency 267 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 268 return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency; 269 -- Getter of NamedElement::clientDependency. 270 -- 271 -- Indicates the dependencies that reference the client. 272 273 overriding function Get_Name_Expression 274 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 275 return AMF.UML.String_Expressions.UML_String_Expression_Access; 276 -- Getter of NamedElement::nameExpression. 277 -- 278 -- The string expression used to define the name of this named element. 279 280 overriding procedure Set_Name_Expression 281 (Self : not null access UML_Start_Classifier_Behavior_Action_Proxy; 282 To : AMF.UML.String_Expressions.UML_String_Expression_Access); 283 -- Setter of NamedElement::nameExpression. 284 -- 285 -- The string expression used to define the name of this named element. 286 287 overriding function Get_Namespace 288 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 289 return AMF.UML.Namespaces.UML_Namespace_Access; 290 -- Getter of NamedElement::namespace. 291 -- 292 -- Specifies the namespace that owns the NamedElement. 293 294 overriding function Get_Qualified_Name 295 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 296 return AMF.Optional_String; 297 -- Getter of NamedElement::qualifiedName. 298 -- 299 -- A name which allows the NamedElement to be identified within a 300 -- hierarchy of nested Namespaces. It is constructed from the names of the 301 -- containing namespaces starting at the root of the hierarchy and ending 302 -- with the name of the NamedElement itself. 303 304 overriding function Context 305 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 306 return AMF.UML.Classifiers.UML_Classifier_Access; 307 -- Operation Action::context. 308 -- 309 -- Missing derivation for Action::/context : Classifier 310 311 overriding function Is_Consistent_With 312 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy; 313 Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) 314 return Boolean; 315 -- Operation RedefinableElement::isConsistentWith. 316 -- 317 -- The query isConsistentWith() specifies, for any two RedefinableElements 318 -- in a context in which redefinition is possible, whether redefinition 319 -- would be logically consistent. By default, this is false; this 320 -- operation must be overridden for subclasses of RedefinableElement to 321 -- define the consistency conditions. 322 323 overriding function Is_Redefinition_Context_Valid 324 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy; 325 Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) 326 return Boolean; 327 -- Operation RedefinableElement::isRedefinitionContextValid. 328 -- 329 -- The query isRedefinitionContextValid() specifies whether the 330 -- redefinition contexts of this RedefinableElement are properly related 331 -- to the redefinition contexts of the specified RedefinableElement to 332 -- allow this element to redefine the other. By default at least one of 333 -- the redefinition contexts of this element must be a specialization of 334 -- at least one of the redefinition contexts of the specified element. 335 336 overriding function All_Owning_Packages 337 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 338 return AMF.UML.Packages.Collections.Set_Of_UML_Package; 339 -- Operation NamedElement::allOwningPackages. 340 -- 341 -- The query allOwningPackages() returns all the directly or indirectly 342 -- owning packages. 343 344 overriding function Is_Distinguishable_From 345 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy; 346 N : AMF.UML.Named_Elements.UML_Named_Element_Access; 347 Ns : AMF.UML.Namespaces.UML_Namespace_Access) 348 return Boolean; 349 -- Operation NamedElement::isDistinguishableFrom. 350 -- 351 -- The query isDistinguishableFrom() determines whether two NamedElements 352 -- may logically co-exist within a Namespace. By default, two named 353 -- elements are distinguishable if (a) they have unrelated types or (b) 354 -- they have related types but different names. 355 356 overriding function Namespace 357 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy) 358 return AMF.UML.Namespaces.UML_Namespace_Access; 359 -- Operation NamedElement::namespace. 360 -- 361 -- Missing derivation for NamedElement::/namespace : Namespace 362 363 overriding procedure Enter_Element 364 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy; 365 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 366 Control : in out AMF.Visitors.Traverse_Control); 367 -- Dispatch call to corresponding subprogram of visitor interface. 368 369 overriding procedure Leave_Element 370 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy; 371 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 372 Control : in out AMF.Visitors.Traverse_Control); 373 -- Dispatch call to corresponding subprogram of visitor interface. 374 375 overriding procedure Visit_Element 376 (Self : not null access constant UML_Start_Classifier_Behavior_Action_Proxy; 377 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 378 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 379 Control : in out AMF.Visitors.Traverse_Control); 380 -- Dispatch call to corresponding subprogram of iterator interface. 381 382end AMF.Internals.UML_Start_Classifier_Behavior_Actions; 383