1------------------------------------------------------------------------------
2--                                                                          --
3--                            Matreshka Project                             --
4--                                                                          --
5--                          Ada Modeling Framework                          --
6--                                                                          --
7--                        Runtime Library Component                         --
8--                                                                          --
9------------------------------------------------------------------------------
10--                                                                          --
11-- Copyright © 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: 3436 $ $Date: 2012-11-14 10:14:34 +0400 (Wed, 14 Nov 2012) $
43------------------------------------------------------------------------------
44with AMF.CMOF.Elements;
45with AMF.DI.Styles;
46with AMF.Internals.UMLDI_UML_Compartmentable_Shapes;
47with AMF.UML.Elements.Collections;
48with AMF.UML.States.Collections;
49with AMF.UMLDI.UML_Compartments.Collections;
50with AMF.UMLDI.UML_State_Shapes;
51with AMF.UMLDI.UML_Styles;
52with AMF.Visitors;
53
54package AMF.Internals.UMLDI_UML_State_Shapes is
55
56   type UMLDI_UML_State_Shape_Proxy is
57     limited new AMF.Internals.UMLDI_UML_Compartmentable_Shapes.UMLDI_UML_Compartmentable_Shape_Proxy
58       and AMF.UMLDI.UML_State_Shapes.UMLDI_UML_State_Shape with null record;
59
60   overriding function Get_Is_Tabbed
61    (Self : not null access constant UMLDI_UML_State_Shape_Proxy)
62       return Boolean;
63   --  Getter of UMLStateShape::isTabbed.
64   --
65
66   overriding procedure Set_Is_Tabbed
67    (Self : not null access UMLDI_UML_State_Shape_Proxy;
68     To   : Boolean);
69   --  Setter of UMLStateShape::isTabbed.
70   --
71
72   overriding function Get_Model_Element
73    (Self : not null access constant UMLDI_UML_State_Shape_Proxy)
74       return AMF.UML.States.Collections.Set_Of_UML_State;
75   --  Getter of UMLStateShape::modelElement.
76   --
77
78   overriding function Get_Compartment
79    (Self : not null access constant UMLDI_UML_State_Shape_Proxy)
80       return AMF.UMLDI.UML_Compartments.Collections.Ordered_Set_Of_UMLDI_UML_Compartment;
81   --  Getter of UMLCompartmentableShape::compartment.
82   --
83   --  Separated portions of the shape.
84
85   overriding function Get_Is_Icon
86    (Self : not null access constant UMLDI_UML_State_Shape_Proxy)
87       return Boolean;
88   --  Getter of UMLDiagramElement::isIcon.
89   --
90   --  For modelElements that have an option to be shown with shapes other
91   --  than rectangles, such as Actors, or with other identifying shapes
92   --  inside them, such as arrows distinguishing InputPins and OutputPins, or
93   --  edges that have an option to be shown with lines other than solid with
94   --  open arrow heads, such as Realization.  A value of true for isIcon
95   --  indicates the alternative notation shall be shown.
96
97   overriding procedure Set_Is_Icon
98    (Self : not null access UMLDI_UML_State_Shape_Proxy;
99     To   : Boolean);
100   --  Setter of UMLDiagramElement::isIcon.
101   --
102   --  For modelElements that have an option to be shown with shapes other
103   --  than rectangles, such as Actors, or with other identifying shapes
104   --  inside them, such as arrows distinguishing InputPins and OutputPins, or
105   --  edges that have an option to be shown with lines other than solid with
106   --  open arrow heads, such as Realization.  A value of true for isIcon
107   --  indicates the alternative notation shall be shown.
108
109   overriding function Get_Local_Style
110    (Self : not null access constant UMLDI_UML_State_Shape_Proxy)
111       return AMF.UMLDI.UML_Styles.UMLDI_UML_Style_Access;
112   --  Getter of UMLDiagramElement::localStyle.
113   --
114   --  Restricts owned styles to UMLStyles.
115
116   overriding procedure Set_Local_Style
117    (Self : not null access UMLDI_UML_State_Shape_Proxy;
118     To   : AMF.UMLDI.UML_Styles.UMLDI_UML_Style_Access);
119   --  Setter of UMLDiagramElement::localStyle.
120   --
121   --  Restricts owned styles to UMLStyles.
122
123   overriding function Get_Model_Element
124    (Self : not null access constant UMLDI_UML_State_Shape_Proxy)
125       return AMF.UML.Elements.Collections.Set_Of_UML_Element;
126   --  Getter of UMLDiagramElement::modelElement.
127   --
128   --  Restricts UMLDiagramElements to show UML Elements, rather than other
129   --  language elements.
130
131   overriding function Get_Model_Element
132    (Self : not null access constant UMLDI_UML_State_Shape_Proxy)
133       return AMF.CMOF.Elements.CMOF_Element_Access;
134   --  Getter of DiagramElement::modelElement.
135   --
136   --  a reference to a depicted model element, which can be any MOF-based
137   --  element
138
139   overriding function Get_Local_Style
140    (Self : not null access constant UMLDI_UML_State_Shape_Proxy)
141       return AMF.DI.Styles.DI_Style_Access;
142   --  Getter of DiagramElement::localStyle.
143   --
144   --  a reference to an optional locally-owned style for this diagram element.
145
146   overriding procedure Set_Local_Style
147    (Self : not null access UMLDI_UML_State_Shape_Proxy;
148     To   : AMF.DI.Styles.DI_Style_Access);
149   --  Setter of DiagramElement::localStyle.
150   --
151   --  a reference to an optional locally-owned style for this diagram element.
152
153   overriding procedure Enter_Element
154    (Self    : not null access constant UMLDI_UML_State_Shape_Proxy;
155     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
156     Control : in out AMF.Visitors.Traverse_Control);
157
158   overriding procedure Leave_Element
159    (Self    : not null access constant UMLDI_UML_State_Shape_Proxy;
160     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
161     Control : in out AMF.Visitors.Traverse_Control);
162
163   overriding procedure Visit_Element
164    (Self     : not null access constant UMLDI_UML_State_Shape_Proxy;
165     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
166     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
167     Control  : in out AMF.Visitors.Traverse_Control);
168
169end AMF.Internals.UMLDI_UML_State_Shapes;
170