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.Boolean_Collections; 45with AMF.Internals.UML_Packageable_Elements; 46with AMF.UML.Dependencies.Collections; 47with AMF.UML.Duration_Observations; 48with AMF.UML.Named_Elements.Collections; 49with AMF.UML.Namespaces; 50with AMF.UML.Packages.Collections; 51with AMF.UML.Parameterable_Elements; 52with AMF.UML.String_Expressions; 53with AMF.UML.Template_Parameters; 54with AMF.Visitors; 55 56package AMF.Internals.UML_Duration_Observations is 57 58 type UML_Duration_Observation_Proxy is 59 limited new AMF.Internals.UML_Packageable_Elements.UML_Packageable_Element_Proxy 60 and AMF.UML.Duration_Observations.UML_Duration_Observation with null record; 61 62 overriding function Get_Event 63 (Self : not null access constant UML_Duration_Observation_Proxy) 64 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element; 65 -- Getter of DurationObservation::event. 66 -- 67 -- The observation is determined by the entering or exiting of the event 68 -- element during execution. 69 70 overriding function Get_First_Event 71 (Self : not null access constant UML_Duration_Observation_Proxy) 72 return AMF.Boolean_Collections.Set_Of_Boolean; 73 -- Getter of DurationObservation::firstEvent. 74 -- 75 -- The value of firstEvent[i] is related to event[i] (where i is 1 or 2). 76 -- If firstEvent[i] is true, then the corresponding observation event is 77 -- the first time instant the execution enters event[i]. If firstEvent[i] 78 -- is false, then the corresponding observation event is the time instant 79 -- the execution exits event[i]. Default value is true applied when 80 -- event[i] refers an element that represents only one time instant. 81 82 overriding function Get_Client_Dependency 83 (Self : not null access constant UML_Duration_Observation_Proxy) 84 return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency; 85 -- Getter of NamedElement::clientDependency. 86 -- 87 -- Indicates the dependencies that reference the client. 88 89 overriding function Get_Name_Expression 90 (Self : not null access constant UML_Duration_Observation_Proxy) 91 return AMF.UML.String_Expressions.UML_String_Expression_Access; 92 -- Getter of NamedElement::nameExpression. 93 -- 94 -- The string expression used to define the name of this named element. 95 96 overriding procedure Set_Name_Expression 97 (Self : not null access UML_Duration_Observation_Proxy; 98 To : AMF.UML.String_Expressions.UML_String_Expression_Access); 99 -- Setter of NamedElement::nameExpression. 100 -- 101 -- The string expression used to define the name of this named element. 102 103 overriding function Get_Namespace 104 (Self : not null access constant UML_Duration_Observation_Proxy) 105 return AMF.UML.Namespaces.UML_Namespace_Access; 106 -- Getter of NamedElement::namespace. 107 -- 108 -- Specifies the namespace that owns the NamedElement. 109 110 overriding function Get_Qualified_Name 111 (Self : not null access constant UML_Duration_Observation_Proxy) 112 return AMF.Optional_String; 113 -- Getter of NamedElement::qualifiedName. 114 -- 115 -- A name which allows the NamedElement to be identified within a 116 -- hierarchy of nested Namespaces. It is constructed from the names of the 117 -- containing namespaces starting at the root of the hierarchy and ending 118 -- with the name of the NamedElement itself. 119 120 overriding function Get_Owning_Template_Parameter 121 (Self : not null access constant UML_Duration_Observation_Proxy) 122 return AMF.UML.Template_Parameters.UML_Template_Parameter_Access; 123 -- Getter of ParameterableElement::owningTemplateParameter. 124 -- 125 -- The formal template parameter that owns this element. 126 127 overriding procedure Set_Owning_Template_Parameter 128 (Self : not null access UML_Duration_Observation_Proxy; 129 To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access); 130 -- Setter of ParameterableElement::owningTemplateParameter. 131 -- 132 -- The formal template parameter that owns this element. 133 134 overriding function Get_Template_Parameter 135 (Self : not null access constant UML_Duration_Observation_Proxy) 136 return AMF.UML.Template_Parameters.UML_Template_Parameter_Access; 137 -- Getter of ParameterableElement::templateParameter. 138 -- 139 -- The template parameter that exposes this element as a formal parameter. 140 141 overriding procedure Set_Template_Parameter 142 (Self : not null access UML_Duration_Observation_Proxy; 143 To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access); 144 -- Setter of ParameterableElement::templateParameter. 145 -- 146 -- The template parameter that exposes this element as a formal parameter. 147 148 overriding function All_Owning_Packages 149 (Self : not null access constant UML_Duration_Observation_Proxy) 150 return AMF.UML.Packages.Collections.Set_Of_UML_Package; 151 -- Operation NamedElement::allOwningPackages. 152 -- 153 -- The query allOwningPackages() returns all the directly or indirectly 154 -- owning packages. 155 156 overriding function Is_Distinguishable_From 157 (Self : not null access constant UML_Duration_Observation_Proxy; 158 N : AMF.UML.Named_Elements.UML_Named_Element_Access; 159 Ns : AMF.UML.Namespaces.UML_Namespace_Access) 160 return Boolean; 161 -- Operation NamedElement::isDistinguishableFrom. 162 -- 163 -- The query isDistinguishableFrom() determines whether two NamedElements 164 -- may logically co-exist within a Namespace. By default, two named 165 -- elements are distinguishable if (a) they have unrelated types or (b) 166 -- they have related types but different names. 167 168 overriding function Namespace 169 (Self : not null access constant UML_Duration_Observation_Proxy) 170 return AMF.UML.Namespaces.UML_Namespace_Access; 171 -- Operation NamedElement::namespace. 172 -- 173 -- Missing derivation for NamedElement::/namespace : Namespace 174 175 overriding function Is_Compatible_With 176 (Self : not null access constant UML_Duration_Observation_Proxy; 177 P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access) 178 return Boolean; 179 -- Operation ParameterableElement::isCompatibleWith. 180 -- 181 -- The query isCompatibleWith() determines if this parameterable element 182 -- is compatible with the specified parameterable element. By default 183 -- parameterable element P is compatible with parameterable element Q if 184 -- the kind of P is the same or a subtype as the kind of Q. Subclasses 185 -- should override this operation to specify different compatibility 186 -- constraints. 187 188 overriding function Is_Template_Parameter 189 (Self : not null access constant UML_Duration_Observation_Proxy) 190 return Boolean; 191 -- Operation ParameterableElement::isTemplateParameter. 192 -- 193 -- The query isTemplateParameter() determines if this parameterable 194 -- element is exposed as a formal template parameter. 195 196 overriding procedure Enter_Element 197 (Self : not null access constant UML_Duration_Observation_Proxy; 198 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 199 Control : in out AMF.Visitors.Traverse_Control); 200 -- Dispatch call to corresponding subprogram of visitor interface. 201 202 overriding procedure Leave_Element 203 (Self : not null access constant UML_Duration_Observation_Proxy; 204 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 205 Control : in out AMF.Visitors.Traverse_Control); 206 -- Dispatch call to corresponding subprogram of visitor interface. 207 208 overriding procedure Visit_Element 209 (Self : not null access constant UML_Duration_Observation_Proxy; 210 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 211 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 212 Control : in out AMF.Visitors.Traverse_Control); 213 -- Dispatch call to corresponding subprogram of iterator interface. 214 215end AMF.Internals.UML_Duration_Observations; 216