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