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_Packageable_Elements; 45with AMF.UML.Dependencies.Collections; 46with AMF.UML.Elements.Collections; 47with AMF.UML.Intervals; 48with AMF.UML.Named_Elements; 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.UML.Time_Constraints; 55with AMF.UML.Time_Intervals; 56with AMF.UML.Value_Specifications; 57with AMF.Visitors; 58 59package AMF.Internals.UML_Time_Constraints is 60 61 type UML_Time_Constraint_Proxy is 62 limited new AMF.Internals.UML_Packageable_Elements.UML_Packageable_Element_Proxy 63 and AMF.UML.Time_Constraints.UML_Time_Constraint with null record; 64 65 overriding function Get_First_Event 66 (Self : not null access constant UML_Time_Constraint_Proxy) 67 return AMF.Optional_Boolean; 68 -- Getter of TimeConstraint::firstEvent. 69 -- 70 -- The value of firstEvent is related to constrainedElement. If firstEvent 71 -- is true, then the corresponding observation event is the first time 72 -- instant the execution enters constrainedElement. If firstEvent is 73 -- false, then the corresponding observation event is the last time 74 -- instant the execution is within constrainedElement. 75 76 overriding procedure Set_First_Event 77 (Self : not null access UML_Time_Constraint_Proxy; 78 To : AMF.Optional_Boolean); 79 -- Setter of TimeConstraint::firstEvent. 80 -- 81 -- The value of firstEvent is related to constrainedElement. If firstEvent 82 -- is true, then the corresponding observation event is the first time 83 -- instant the execution enters constrainedElement. If firstEvent is 84 -- false, then the corresponding observation event is the last time 85 -- instant the execution is within constrainedElement. 86 87 overriding function Get_Specification 88 (Self : not null access constant UML_Time_Constraint_Proxy) 89 return AMF.UML.Time_Intervals.UML_Time_Interval_Access; 90 -- Getter of TimeConstraint::specification. 91 -- 92 -- A condition that must be true when evaluated in order for the 93 -- constraint to be satisfied. 94 95 overriding procedure Set_Specification 96 (Self : not null access UML_Time_Constraint_Proxy; 97 To : AMF.UML.Time_Intervals.UML_Time_Interval_Access); 98 -- Setter of TimeConstraint::specification. 99 -- 100 -- A condition that must be true when evaluated in order for the 101 -- constraint to be satisfied. 102 103 overriding function Get_Specification 104 (Self : not null access constant UML_Time_Constraint_Proxy) 105 return AMF.UML.Intervals.UML_Interval_Access; 106 -- Getter of IntervalConstraint::specification. 107 -- 108 -- A condition that must be true when evaluated in order for the 109 -- constraint to be satisfied. 110 111 overriding procedure Set_Specification 112 (Self : not null access UML_Time_Constraint_Proxy; 113 To : AMF.UML.Intervals.UML_Interval_Access); 114 -- Setter of IntervalConstraint::specification. 115 -- 116 -- A condition that must be true when evaluated in order for the 117 -- constraint to be satisfied. 118 119 overriding function Get_Constrained_Element 120 (Self : not null access constant UML_Time_Constraint_Proxy) 121 return AMF.UML.Elements.Collections.Ordered_Set_Of_UML_Element; 122 -- Getter of Constraint::constrainedElement. 123 -- 124 -- The ordered set of Elements referenced by this Constraint. 125 126 overriding function Get_Context 127 (Self : not null access constant UML_Time_Constraint_Proxy) 128 return AMF.UML.Namespaces.UML_Namespace_Access; 129 -- Getter of Constraint::context. 130 -- 131 -- Specifies the namespace that owns the NamedElement. 132 133 overriding procedure Set_Context 134 (Self : not null access UML_Time_Constraint_Proxy; 135 To : AMF.UML.Namespaces.UML_Namespace_Access); 136 -- Setter of Constraint::context. 137 -- 138 -- Specifies the namespace that owns the NamedElement. 139 140 overriding function Get_Specification 141 (Self : not null access constant UML_Time_Constraint_Proxy) 142 return AMF.UML.Value_Specifications.UML_Value_Specification_Access; 143 -- Getter of Constraint::specification. 144 -- 145 -- A condition that must be true when evaluated in order for the 146 -- constraint to be satisfied. 147 148 overriding procedure Set_Specification 149 (Self : not null access UML_Time_Constraint_Proxy; 150 To : AMF.UML.Value_Specifications.UML_Value_Specification_Access); 151 -- Setter of Constraint::specification. 152 -- 153 -- A condition that must be true when evaluated in order for the 154 -- constraint to be satisfied. 155 156 overriding function Get_Client_Dependency 157 (Self : not null access constant UML_Time_Constraint_Proxy) 158 return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency; 159 -- Getter of NamedElement::clientDependency. 160 -- 161 -- Indicates the dependencies that reference the client. 162 163 overriding function Get_Name_Expression 164 (Self : not null access constant UML_Time_Constraint_Proxy) 165 return AMF.UML.String_Expressions.UML_String_Expression_Access; 166 -- Getter of NamedElement::nameExpression. 167 -- 168 -- The string expression used to define the name of this named element. 169 170 overriding procedure Set_Name_Expression 171 (Self : not null access UML_Time_Constraint_Proxy; 172 To : AMF.UML.String_Expressions.UML_String_Expression_Access); 173 -- Setter of NamedElement::nameExpression. 174 -- 175 -- The string expression used to define the name of this named element. 176 177 overriding function Get_Namespace 178 (Self : not null access constant UML_Time_Constraint_Proxy) 179 return AMF.UML.Namespaces.UML_Namespace_Access; 180 -- Getter of NamedElement::namespace. 181 -- 182 -- Specifies the namespace that owns the NamedElement. 183 184 overriding function Get_Qualified_Name 185 (Self : not null access constant UML_Time_Constraint_Proxy) 186 return AMF.Optional_String; 187 -- Getter of NamedElement::qualifiedName. 188 -- 189 -- A name which allows the NamedElement to be identified within a 190 -- hierarchy of nested Namespaces. It is constructed from the names of the 191 -- containing namespaces starting at the root of the hierarchy and ending 192 -- with the name of the NamedElement itself. 193 194 overriding function Get_Owning_Template_Parameter 195 (Self : not null access constant UML_Time_Constraint_Proxy) 196 return AMF.UML.Template_Parameters.UML_Template_Parameter_Access; 197 -- Getter of ParameterableElement::owningTemplateParameter. 198 -- 199 -- The formal template parameter that owns this element. 200 201 overriding procedure Set_Owning_Template_Parameter 202 (Self : not null access UML_Time_Constraint_Proxy; 203 To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access); 204 -- Setter of ParameterableElement::owningTemplateParameter. 205 -- 206 -- The formal template parameter that owns this element. 207 208 overriding function Get_Template_Parameter 209 (Self : not null access constant UML_Time_Constraint_Proxy) 210 return AMF.UML.Template_Parameters.UML_Template_Parameter_Access; 211 -- Getter of ParameterableElement::templateParameter. 212 -- 213 -- The template parameter that exposes this element as a formal parameter. 214 215 overriding procedure Set_Template_Parameter 216 (Self : not null access UML_Time_Constraint_Proxy; 217 To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access); 218 -- Setter of ParameterableElement::templateParameter. 219 -- 220 -- The template parameter that exposes this element as a formal parameter. 221 222 overriding function All_Owning_Packages 223 (Self : not null access constant UML_Time_Constraint_Proxy) 224 return AMF.UML.Packages.Collections.Set_Of_UML_Package; 225 -- Operation NamedElement::allOwningPackages. 226 -- 227 -- The query allOwningPackages() returns all the directly or indirectly 228 -- owning packages. 229 230 overriding function Is_Distinguishable_From 231 (Self : not null access constant UML_Time_Constraint_Proxy; 232 N : AMF.UML.Named_Elements.UML_Named_Element_Access; 233 Ns : AMF.UML.Namespaces.UML_Namespace_Access) 234 return Boolean; 235 -- Operation NamedElement::isDistinguishableFrom. 236 -- 237 -- The query isDistinguishableFrom() determines whether two NamedElements 238 -- may logically co-exist within a Namespace. By default, two named 239 -- elements are distinguishable if (a) they have unrelated types or (b) 240 -- they have related types but different names. 241 242 overriding function Namespace 243 (Self : not null access constant UML_Time_Constraint_Proxy) 244 return AMF.UML.Namespaces.UML_Namespace_Access; 245 -- Operation NamedElement::namespace. 246 -- 247 -- Missing derivation for NamedElement::/namespace : Namespace 248 249 overriding function Is_Compatible_With 250 (Self : not null access constant UML_Time_Constraint_Proxy; 251 P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access) 252 return Boolean; 253 -- Operation ParameterableElement::isCompatibleWith. 254 -- 255 -- The query isCompatibleWith() determines if this parameterable element 256 -- is compatible with the specified parameterable element. By default 257 -- parameterable element P is compatible with parameterable element Q if 258 -- the kind of P is the same or a subtype as the kind of Q. Subclasses 259 -- should override this operation to specify different compatibility 260 -- constraints. 261 262 overriding function Is_Template_Parameter 263 (Self : not null access constant UML_Time_Constraint_Proxy) 264 return Boolean; 265 -- Operation ParameterableElement::isTemplateParameter. 266 -- 267 -- The query isTemplateParameter() determines if this parameterable 268 -- element is exposed as a formal template parameter. 269 270 overriding procedure Enter_Element 271 (Self : not null access constant UML_Time_Constraint_Proxy; 272 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 273 Control : in out AMF.Visitors.Traverse_Control); 274 -- Dispatch call to corresponding subprogram of visitor interface. 275 276 overriding procedure Leave_Element 277 (Self : not null access constant UML_Time_Constraint_Proxy; 278 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 279 Control : in out AMF.Visitors.Traverse_Control); 280 -- Dispatch call to corresponding subprogram of visitor interface. 281 282 overriding procedure Visit_Element 283 (Self : not null access constant UML_Time_Constraint_Proxy; 284 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 285 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 286 Control : in out AMF.Visitors.Traverse_Control); 287 -- Dispatch call to corresponding subprogram of iterator interface. 288 289end AMF.Internals.UML_Time_Constraints; 290