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