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 observation is a reference to a duration during an execution. 47-- It points out the element(s) in the model to observe and whether the 48-- observations are when this model element is entered or when it is exited. 49------------------------------------------------------------------------------ 50with AMF.Boolean_Collections; 51limited with AMF.UML.Named_Elements.Collections; 52with AMF.UML.Observations; 53 54package AMF.UML.Duration_Observations is 55 56 pragma Preelaborate; 57 58 type UML_Duration_Observation is limited interface 59 and AMF.UML.Observations.UML_Observation; 60 61 type UML_Duration_Observation_Access is 62 access all UML_Duration_Observation'Class; 63 for UML_Duration_Observation_Access'Storage_Size use 0; 64 65 not overriding function Get_Event 66 (Self : not null access constant UML_Duration_Observation) 67 return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is abstract; 68 -- Getter of DurationObservation::event. 69 -- 70 -- The observation is determined by the entering or exiting of the event 71 -- element during execution. 72 73 not overriding function Get_First_Event 74 (Self : not null access constant UML_Duration_Observation) 75 return AMF.Boolean_Collections.Set_Of_Boolean is abstract; 76 -- Getter of DurationObservation::firstEvent. 77 -- 78 -- The value of firstEvent[i] is related to event[i] (where i is 1 or 2). 79 -- If firstEvent[i] is true, then the corresponding observation event is 80 -- the first time instant the execution enters event[i]. If firstEvent[i] 81 -- is false, then the corresponding observation event is the time instant 82 -- the execution exits event[i]. Default value is true applied when 83 -- event[i] refers an element that represents only one time instant. 84 85end AMF.UML.Duration_Observations; 86