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: 2714 $ $Date: 2012-03-24 10:29:08 +0400 (Sat, 24 Mar 2012) $ 43------------------------------------------------------------------------------ 44-- This file is generated, don't edit it. 45------------------------------------------------------------------------------ 46-- A variable is considered a connectable element. 47-- 48-- Variables are elements for passing data between actions indirectly. A 49-- local variable stores values shared by the actions within a structured 50-- activity group but not accessible outside it. The output of an action may 51-- be written to a variable and read for the input to a subsequent action, 52-- which is effectively an indirect data flow path. Because there is no 53-- predefined relationship between actions that read and write variables, 54-- these actions must be sequenced by control flows to prevent race 55-- conditions that may occur between actions that read or write the same 56-- variable. 57------------------------------------------------------------------------------ 58limited with AMF.UML.Actions; 59limited with AMF.UML.Activities; 60with AMF.UML.Connectable_Elements; 61with AMF.UML.Multiplicity_Elements; 62limited with AMF.UML.Structured_Activity_Nodes; 63 64package AMF.UML.Variables is 65 66 pragma Preelaborate; 67 68 type UML_Variable is limited interface 69 and AMF.UML.Connectable_Elements.UML_Connectable_Element 70 and AMF.UML.Multiplicity_Elements.UML_Multiplicity_Element; 71 72 type UML_Variable_Access is 73 access all UML_Variable'Class; 74 for UML_Variable_Access'Storage_Size use 0; 75 76 not overriding function Get_Activity_Scope 77 (Self : not null access constant UML_Variable) 78 return AMF.UML.Activities.UML_Activity_Access is abstract; 79 -- Getter of Variable::activityScope. 80 -- 81 -- An activity that owns the variable. 82 83 not overriding procedure Set_Activity_Scope 84 (Self : not null access UML_Variable; 85 To : AMF.UML.Activities.UML_Activity_Access) is abstract; 86 -- Setter of Variable::activityScope. 87 -- 88 -- An activity that owns the variable. 89 90 not overriding function Get_Scope 91 (Self : not null access constant UML_Variable) 92 return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access is abstract; 93 -- Getter of Variable::scope. 94 -- 95 -- A structured activity node that owns the variable. 96 97 not overriding procedure Set_Scope 98 (Self : not null access UML_Variable; 99 To : AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access) is abstract; 100 -- Setter of Variable::scope. 101 -- 102 -- A structured activity node that owns the variable. 103 104 not overriding function Is_Accessible_By 105 (Self : not null access constant UML_Variable; 106 A : AMF.UML.Actions.UML_Action_Access) 107 return Boolean is abstract; 108 -- Operation Variable::isAccessibleBy. 109 -- 110 -- The isAccessibleBy() operation is not defined in standard UML. 111 -- Implementations should define it to specify which actions can access a 112 -- variable. 113 114end AMF.UML.Variables; 115