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: 3364 $ $Date: 2012-11-11 01:52:37 +0400 (Sun, 11 Nov 2012) $ 43------------------------------------------------------------------------------ 44-- This file is generated, don't edit it. 45------------------------------------------------------------------------------ 46-- A duration constraint is a constraint that refers to a duration interval. 47------------------------------------------------------------------------------ 48with AMF.Boolean_Collections; 49limited with AMF.UML.Duration_Intervals; 50with AMF.UML.Interval_Constraints; 51 52package AMF.UML.Duration_Constraints is 53 54 pragma Preelaborate; 55 56 type UML_Duration_Constraint is limited interface 57 and AMF.UML.Interval_Constraints.UML_Interval_Constraint; 58 59 type UML_Duration_Constraint_Access is 60 access all UML_Duration_Constraint'Class; 61 for UML_Duration_Constraint_Access'Storage_Size use 0; 62 63 not overriding function Get_First_Event 64 (Self : not null access constant UML_Duration_Constraint) 65 return AMF.Boolean_Collections.Set_Of_Boolean is abstract; 66 -- Getter of DurationConstraint::firstEvent. 67 -- 68 -- The value of firstEvent[i] is related to constrainedElement[i] (where i 69 -- is 1 or 2). If firstEvent[i] is true, then the corresponding 70 -- observation event is the first time instant the execution enters 71 -- constrainedElement[i]. If firstEvent[i] is false, then the 72 -- corresponding observation event is the last time instant the execution 73 -- is within constrainedElement[i]. Default value is true applied when 74 -- constrainedElement[i] refers an element that represents only one time 75 -- instant. 76 77 not overriding function Get_Specification 78 (Self : not null access constant UML_Duration_Constraint) 79 return AMF.UML.Duration_Intervals.UML_Duration_Interval_Access is abstract; 80 -- Getter of DurationConstraint::specification. 81 -- 82 -- The interval constraining the duration. 83 84 not overriding procedure Set_Specification 85 (Self : not null access UML_Duration_Constraint; 86 To : AMF.UML.Duration_Intervals.UML_Duration_Interval_Access) is abstract; 87 -- Setter of DurationConstraint::specification. 88 -- 89 -- The interval constraining the duration. 90 91end AMF.UML.Duration_Constraints; 92