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--  Object nodes have support for token selection, limitation on the number of
47--  tokens, specifying the state required for tokens, and carrying control
48--  values.
49--
50--  An object node is an abstract activity node that is part of defining
51--  object flow in an activity.
52------------------------------------------------------------------------------
53with AMF.UML.Activity_Nodes;
54limited with AMF.UML.Behaviors;
55limited with AMF.UML.States.Collections;
56with AMF.UML.Typed_Elements;
57limited with AMF.UML.Value_Specifications;
58
59package AMF.UML.Object_Nodes is
60
61   pragma Preelaborate;
62
63   type UML_Object_Node is limited interface
64     and AMF.UML.Activity_Nodes.UML_Activity_Node
65     and AMF.UML.Typed_Elements.UML_Typed_Element;
66
67   type UML_Object_Node_Access is
68     access all UML_Object_Node'Class;
69   for UML_Object_Node_Access'Storage_Size use 0;
70
71   not overriding function Get_In_State
72    (Self : not null access constant UML_Object_Node)
73       return AMF.UML.States.Collections.Set_Of_UML_State is abstract;
74   --  Getter of ObjectNode::inState.
75   --
76   --  The required states of the object available at this point in the
77   --  activity.
78
79   not overriding function Get_Is_Control_Type
80    (Self : not null access constant UML_Object_Node)
81       return Boolean is abstract;
82   --  Getter of ObjectNode::isControlType.
83   --
84   --  Tells whether the type of the object node is to be treated as control.
85
86   not overriding procedure Set_Is_Control_Type
87    (Self : not null access UML_Object_Node;
88     To   : Boolean) is abstract;
89   --  Setter of ObjectNode::isControlType.
90   --
91   --  Tells whether the type of the object node is to be treated as control.
92
93   not overriding function Get_Ordering
94    (Self : not null access constant UML_Object_Node)
95       return AMF.UML.UML_Object_Node_Ordering_Kind is abstract;
96   --  Getter of ObjectNode::ordering.
97   --
98   --  Tells whether and how the tokens in the object node are ordered for
99   --  selection to traverse edges outgoing from the object node.
100
101   not overriding procedure Set_Ordering
102    (Self : not null access UML_Object_Node;
103     To   : AMF.UML.UML_Object_Node_Ordering_Kind) is abstract;
104   --  Setter of ObjectNode::ordering.
105   --
106   --  Tells whether and how the tokens in the object node are ordered for
107   --  selection to traverse edges outgoing from the object node.
108
109   not overriding function Get_Selection
110    (Self : not null access constant UML_Object_Node)
111       return AMF.UML.Behaviors.UML_Behavior_Access is abstract;
112   --  Getter of ObjectNode::selection.
113   --
114   --  Selects tokens for outgoing edges.
115
116   not overriding procedure Set_Selection
117    (Self : not null access UML_Object_Node;
118     To   : AMF.UML.Behaviors.UML_Behavior_Access) is abstract;
119   --  Setter of ObjectNode::selection.
120   --
121   --  Selects tokens for outgoing edges.
122
123   not overriding function Get_Upper_Bound
124    (Self : not null access constant UML_Object_Node)
125       return AMF.UML.Value_Specifications.UML_Value_Specification_Access is abstract;
126   --  Getter of ObjectNode::upperBound.
127   --
128   --  The maximum number of tokens allowed in the node. Objects cannot flow
129   --  into the node if the upper bound is reached.
130
131   not overriding procedure Set_Upper_Bound
132    (Self : not null access UML_Object_Node;
133     To   : AMF.UML.Value_Specifications.UML_Value_Specification_Access) is abstract;
134   --  Setter of ObjectNode::upperBound.
135   --
136   --  The maximum number of tokens allowed in the node. Objects cannot flow
137   --  into the node if the upper bound is reached.
138
139end AMF.UML.Object_Nodes;
140