---------------------------------------------------------- ---------------------- -- -- -- OCARINA COMPONENTS -- -- -- -- O C A R I N A . E N T I T I E S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2005-2007, GET-Telecom Paris. -- -- -- -- Ocarina is free software; you can redistribute it and/or modify -- -- it under terms of the GNU General Public License as published by the -- -- Free Software Foundation; either version 2, or (at your option) any -- -- later version. Ocarina is distributed in the hope that it will be -- -- useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -- -- Public License for more details. You should have received a copy of the -- -- GNU General Public License distributed with Ocarina; see file COPYING. -- -- If not, write to the Free Software Foundation, 51 Franklin Street, Fifth -- -- Floor, Boston, MA 02111-1301, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- Ocarina is maintained by the Ocarina team -- -- (ocarina-users@listes.enst.fr) -- -- -- ------------------------------------------------------------------------------ with Types; package Ocarina.Entities is type entity_category is (ec_feature, ec_subcomponent, ec_property_association, ec_flow_spec, ec_flow_implementation, ec_call_sequence, ec_subprogram_call, ec_connection, ec_mode, ec_component, ec_port_group_type, ec_package, ec_property_set, ec_property_name, ec_property_type, ec_annex, ec_undefined); function Get_Entity_Category (Node : Types.node_id) return entity_category; function Get_Name_Of_Entity (Entity : Types.node_id; Get_Display_Name : Boolean := True) return Types.name_id; function Get_Name_Of_Entity (Entity : Types.node_id; Get_Display_Name : Boolean := True) return String; function Get_Name_Of_Entity_Reference (Entity_Ref : Types.node_id; Get_Display_Name : Boolean := True) return Types.name_id; function Get_Name_Of_Entity_Reference (Entity_Ref : Types.node_id; Get_Display_Name : Boolean := True) return String; function Get_Referenced_Entity (Entity_Ref : Types.node_id) return Types.node_id; -- Return the entity referenced by an entity reference, or No_Node -- if nothing is pointed procedure Set_Referenced_Entity (Entity_Ref, Entity : Types.node_id); -- Set the entity that is to be referenced by the entity reference procedure Add_Path_Element_To_Entity_Reference (Entity_Ref, Item : Types.node_id); -- Add Item to the end of the path that constitutes the reference -- to the entity. function Entity_Reference_Path_Has_Several_Elements (Entity_Ref : Types.node_id) return Boolean; -- return True if the path has more than one element. function Duplicate_Identifier (Identifier : Types.node_id) return Types.node_id; end Ocarina.Entities;