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: 2807 $ $Date: 2012-04-07 01:28:23 +0400 (Sat, 07 Apr 2012) $ 43------------------------------------------------------------------------------ 44-- This file is generated, don't edit it. 45------------------------------------------------------------------------------ 46with AMF.Elements; 47with AMF.Internals.Helpers; 48with AMF.Internals.Tables.Utp_Attributes; 49with AMF.UML.Messages; 50with AMF.Visitors.Utp_Iterators; 51with AMF.Visitors.Utp_Visitors; 52 53package body AMF.Internals.Utp_Time_Out_Messages is 54 55 ---------------------- 56 -- Get_Base_Message -- 57 ---------------------- 58 59 overriding function Get_Base_Message 60 (Self : not null access constant Utp_Time_Out_Message_Proxy) 61 return AMF.UML.Messages.UML_Message_Access is 62 begin 63 return 64 AMF.UML.Messages.UML_Message_Access 65 (AMF.Internals.Helpers.To_Element 66 (AMF.Internals.Tables.Utp_Attributes.Internal_Get_Base_Message 67 (Self.Element))); 68 end Get_Base_Message; 69 70 ---------------------- 71 -- Set_Base_Message -- 72 ---------------------- 73 74 overriding procedure Set_Base_Message 75 (Self : not null access Utp_Time_Out_Message_Proxy; 76 To : AMF.UML.Messages.UML_Message_Access) is 77 begin 78 AMF.Internals.Tables.Utp_Attributes.Internal_Set_Base_Message 79 (Self.Element, 80 AMF.Internals.Helpers.To_Element 81 (AMF.Elements.Element_Access (To))); 82 end Set_Base_Message; 83 84 ------------------- 85 -- Enter_Element -- 86 ------------------- 87 88 overriding procedure Enter_Element 89 (Self : not null access constant Utp_Time_Out_Message_Proxy; 90 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 91 Control : in out AMF.Visitors.Traverse_Control) is 92 begin 93 if Visitor in AMF.Visitors.Utp_Visitors.Utp_Visitor'Class then 94 AMF.Visitors.Utp_Visitors.Utp_Visitor'Class 95 (Visitor).Enter_Time_Out_Message 96 (AMF.Utp.Time_Out_Messages.Utp_Time_Out_Message_Access (Self), 97 Control); 98 end if; 99 end Enter_Element; 100 101 ------------------- 102 -- Leave_Element -- 103 ------------------- 104 105 overriding procedure Leave_Element 106 (Self : not null access constant Utp_Time_Out_Message_Proxy; 107 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 108 Control : in out AMF.Visitors.Traverse_Control) is 109 begin 110 if Visitor in AMF.Visitors.Utp_Visitors.Utp_Visitor'Class then 111 AMF.Visitors.Utp_Visitors.Utp_Visitor'Class 112 (Visitor).Leave_Time_Out_Message 113 (AMF.Utp.Time_Out_Messages.Utp_Time_Out_Message_Access (Self), 114 Control); 115 end if; 116 end Leave_Element; 117 118 ------------------- 119 -- Visit_Element -- 120 ------------------- 121 122 overriding procedure Visit_Element 123 (Self : not null access constant Utp_Time_Out_Message_Proxy; 124 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 125 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 126 Control : in out AMF.Visitors.Traverse_Control) is 127 begin 128 if Iterator in AMF.Visitors.Utp_Iterators.Utp_Iterator'Class then 129 AMF.Visitors.Utp_Iterators.Utp_Iterator'Class 130 (Iterator).Visit_Time_Out_Message 131 (Visitor, 132 AMF.Utp.Time_Out_Messages.Utp_Time_Out_Message_Access (Self), 133 Control); 134 end if; 135 end Visit_Element; 136 137end AMF.Internals.Utp_Time_Out_Messages; 138