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.Action_Execution_Specifications; 46with AMF.UML.Actions; 47with AMF.UML.Dependencies.Collections; 48with AMF.UML.General_Orderings.Collections; 49with AMF.UML.Interaction_Operands; 50with AMF.UML.Interactions; 51with AMF.UML.Lifelines.Collections; 52with AMF.UML.Named_Elements; 53with AMF.UML.Namespaces; 54with AMF.UML.Occurrence_Specifications; 55with AMF.UML.Packages.Collections; 56with AMF.UML.String_Expressions; 57with AMF.Visitors; 58 59package AMF.Internals.UML_Action_Execution_Specifications is 60 61 type UML_Action_Execution_Specification_Proxy is 62 limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy 63 and AMF.UML.Action_Execution_Specifications.UML_Action_Execution_Specification with null record; 64 65 overriding function Get_Action 66 (Self : not null access constant UML_Action_Execution_Specification_Proxy) 67 return AMF.UML.Actions.UML_Action_Access; 68 -- Getter of ActionExecutionSpecification::action. 69 -- 70 -- Action whose execution is occurring. 71 72 overriding procedure Set_Action 73 (Self : not null access UML_Action_Execution_Specification_Proxy; 74 To : AMF.UML.Actions.UML_Action_Access); 75 -- Setter of ActionExecutionSpecification::action. 76 -- 77 -- Action whose execution is occurring. 78 79 overriding function Get_Finish 80 (Self : not null access constant UML_Action_Execution_Specification_Proxy) 81 return AMF.UML.Occurrence_Specifications.UML_Occurrence_Specification_Access; 82 -- Getter of ExecutionSpecification::finish. 83 -- 84 -- References the OccurrenceSpecification that designates the finish of 85 -- the Action or Behavior. 86 87 overriding procedure Set_Finish 88 (Self : not null access UML_Action_Execution_Specification_Proxy; 89 To : AMF.UML.Occurrence_Specifications.UML_Occurrence_Specification_Access); 90 -- Setter of ExecutionSpecification::finish. 91 -- 92 -- References the OccurrenceSpecification that designates the finish of 93 -- the Action or Behavior. 94 95 overriding function Get_Start 96 (Self : not null access constant UML_Action_Execution_Specification_Proxy) 97 return AMF.UML.Occurrence_Specifications.UML_Occurrence_Specification_Access; 98 -- Getter of ExecutionSpecification::start. 99 -- 100 -- References the OccurrenceSpecification that designates the start of the 101 -- Action or Behavior 102 103 overriding procedure Set_Start 104 (Self : not null access UML_Action_Execution_Specification_Proxy; 105 To : AMF.UML.Occurrence_Specifications.UML_Occurrence_Specification_Access); 106 -- Setter of ExecutionSpecification::start. 107 -- 108 -- References the OccurrenceSpecification that designates the start of the 109 -- Action or Behavior 110 111 overriding function Get_Covered 112 (Self : not null access constant UML_Action_Execution_Specification_Proxy) 113 return AMF.UML.Lifelines.Collections.Set_Of_UML_Lifeline; 114 -- Getter of InteractionFragment::covered. 115 -- 116 -- References the Lifelines that the InteractionFragment involves. 117 118 overriding function Get_Enclosing_Interaction 119 (Self : not null access constant UML_Action_Execution_Specification_Proxy) 120 return AMF.UML.Interactions.UML_Interaction_Access; 121 -- Getter of InteractionFragment::enclosingInteraction. 122 -- 123 -- The Interaction enclosing this InteractionFragment. 124 125 overriding procedure Set_Enclosing_Interaction 126 (Self : not null access UML_Action_Execution_Specification_Proxy; 127 To : AMF.UML.Interactions.UML_Interaction_Access); 128 -- Setter of InteractionFragment::enclosingInteraction. 129 -- 130 -- The Interaction enclosing this InteractionFragment. 131 132 overriding function Get_Enclosing_Operand 133 (Self : not null access constant UML_Action_Execution_Specification_Proxy) 134 return AMF.UML.Interaction_Operands.UML_Interaction_Operand_Access; 135 -- Getter of InteractionFragment::enclosingOperand. 136 -- 137 -- The operand enclosing this InteractionFragment (they may nest 138 -- recursively) 139 140 overriding procedure Set_Enclosing_Operand 141 (Self : not null access UML_Action_Execution_Specification_Proxy; 142 To : AMF.UML.Interaction_Operands.UML_Interaction_Operand_Access); 143 -- Setter of InteractionFragment::enclosingOperand. 144 -- 145 -- The operand enclosing this InteractionFragment (they may nest 146 -- recursively) 147 148 overriding function Get_General_Ordering 149 (Self : not null access constant UML_Action_Execution_Specification_Proxy) 150 return AMF.UML.General_Orderings.Collections.Set_Of_UML_General_Ordering; 151 -- Getter of InteractionFragment::generalOrdering. 152 -- 153 -- The general ordering relationships contained in this fragment. 154 155 overriding function Get_Client_Dependency 156 (Self : not null access constant UML_Action_Execution_Specification_Proxy) 157 return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency; 158 -- Getter of NamedElement::clientDependency. 159 -- 160 -- Indicates the dependencies that reference the client. 161 162 overriding function Get_Name_Expression 163 (Self : not null access constant UML_Action_Execution_Specification_Proxy) 164 return AMF.UML.String_Expressions.UML_String_Expression_Access; 165 -- Getter of NamedElement::nameExpression. 166 -- 167 -- The string expression used to define the name of this named element. 168 169 overriding procedure Set_Name_Expression 170 (Self : not null access UML_Action_Execution_Specification_Proxy; 171 To : AMF.UML.String_Expressions.UML_String_Expression_Access); 172 -- Setter of NamedElement::nameExpression. 173 -- 174 -- The string expression used to define the name of this named element. 175 176 overriding function Get_Namespace 177 (Self : not null access constant UML_Action_Execution_Specification_Proxy) 178 return AMF.UML.Namespaces.UML_Namespace_Access; 179 -- Getter of NamedElement::namespace. 180 -- 181 -- Specifies the namespace that owns the NamedElement. 182 183 overriding function Get_Qualified_Name 184 (Self : not null access constant UML_Action_Execution_Specification_Proxy) 185 return AMF.Optional_String; 186 -- Getter of NamedElement::qualifiedName. 187 -- 188 -- A name which allows the NamedElement to be identified within a 189 -- hierarchy of nested Namespaces. It is constructed from the names of the 190 -- containing namespaces starting at the root of the hierarchy and ending 191 -- with the name of the NamedElement itself. 192 193 overriding function All_Owning_Packages 194 (Self : not null access constant UML_Action_Execution_Specification_Proxy) 195 return AMF.UML.Packages.Collections.Set_Of_UML_Package; 196 -- Operation NamedElement::allOwningPackages. 197 -- 198 -- The query allOwningPackages() returns all the directly or indirectly 199 -- owning packages. 200 201 overriding function Is_Distinguishable_From 202 (Self : not null access constant UML_Action_Execution_Specification_Proxy; 203 N : AMF.UML.Named_Elements.UML_Named_Element_Access; 204 Ns : AMF.UML.Namespaces.UML_Namespace_Access) 205 return Boolean; 206 -- Operation NamedElement::isDistinguishableFrom. 207 -- 208 -- The query isDistinguishableFrom() determines whether two NamedElements 209 -- may logically co-exist within a Namespace. By default, two named 210 -- elements are distinguishable if (a) they have unrelated types or (b) 211 -- they have related types but different names. 212 213 overriding function Namespace 214 (Self : not null access constant UML_Action_Execution_Specification_Proxy) 215 return AMF.UML.Namespaces.UML_Namespace_Access; 216 -- Operation NamedElement::namespace. 217 -- 218 -- Missing derivation for NamedElement::/namespace : Namespace 219 220 overriding procedure Enter_Element 221 (Self : not null access constant UML_Action_Execution_Specification_Proxy; 222 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 223 Control : in out AMF.Visitors.Traverse_Control); 224 -- Dispatch call to corresponding subprogram of visitor interface. 225 226 overriding procedure Leave_Element 227 (Self : not null access constant UML_Action_Execution_Specification_Proxy; 228 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 229 Control : in out AMF.Visitors.Traverse_Control); 230 -- Dispatch call to corresponding subprogram of visitor interface. 231 232 overriding procedure Visit_Element 233 (Self : not null access constant UML_Action_Execution_Specification_Proxy; 234 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 235 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 236 Control : in out AMF.Visitors.Traverse_Control); 237 -- Dispatch call to corresponding subprogram of iterator interface. 238 239end AMF.Internals.UML_Action_Execution_Specifications; 240