//------------------------------------------------------------------------------ //------------------------------------------------------------------------------ //-- This source file was automatically generated by Platypus //-- see http://dossen.univ-brest.fr/apl //-- //-- Any modification of this file will be lost. //-- Please see the "platypus" directory instead : it contains the Cheddar's //-- model and its meta-model. //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ //-- Cheddar is a GNU GPL real-time scheduling analysis tool. //-- This program provides services to automatically check schedulability and //-- other performance criteria of real-time architecture models. //-- //-- Copyright (C) 2002-2016 Frank Singhoff, Alain Plantec, Jerome Legrand //-- //-- The Cheddar project was started in 2002 by //-- Frank Singhoff, Lab-STICC UMR 6285 laboratory, Université de Bretagne Occidentale //-- //-- Cheddar has been published in the "Agence de Protection des Programmes/France" in 2008. //-- Since 2008, Ellidiss technologies also contributes to the development of //-- Cheddar and provides industrial support. //-- //-- The full list of contributors and sponsors can be found in AUTHORS.txt and SPONSORS.txt //-- //-- This program is free software; you can redistribute it and/or modify //-- it under the terms of the GNU General Public License as published by //-- the Free Software Foundation; either version 2 of the License, or //-- (at your option) any later version. //-- //-- This program 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 //-- along with this program; if not, write to the Free Software //-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //-- //-- //-- Contact : cheddar@listes.univ-brest.fr //-- To post to this mailing list, you must be subscribed //-- (see http//beru.univ-brest.fr/~singhoff/cheddar for details) //-- //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ package cheddar.adl; public enum Objects_Type { Buffer_Object_Type, Processor_Object_Type, Cache_Block_Object_Type, Cache_Object_Type, Task_Object_Type, Resource_Object_Type, Address_Space_Object_Type, Message_Object_Type, State_Object_Type, Transition_Object_Type, Statement_Object_Type, Expression_Object_Type, Synchronization_Object_Type, Section_Object_Type, Network_Object_Type, Connexion_Object_Type, Core_Object_Type, Event_Analyzer_Type, Deployment_Type, Task_Group_Object_Type, CFG_Node_Object_Type, CFG_Edge_Object_Type, CFG_Object_Type, Cache_Access_Profile_Object_Type; public static Objects_Type fromString(String rep) throws Exception { if (rep == null) return (null); if (rep.equals("Buffer_Object_Type")) return (Buffer_Object_Type); if (rep.equals("Processor_Object_Type")) return (Processor_Object_Type); if (rep.equals("Cache_Block_Object_Type")) return (Cache_Block_Object_Type); if (rep.equals("Cache_Object_Type")) return (Cache_Object_Type); if (rep.equals("Task_Object_Type")) return (Task_Object_Type); if (rep.equals("Resource_Object_Type")) return (Resource_Object_Type); if (rep.equals("Address_Space_Object_Type")) return (Address_Space_Object_Type); if (rep.equals("Message_Object_Type")) return (Message_Object_Type); if (rep.equals("State_Object_Type")) return (State_Object_Type); if (rep.equals("Transition_Object_Type")) return (Transition_Object_Type); if (rep.equals("Statement_Object_Type")) return (Statement_Object_Type); if (rep.equals("Expression_Object_Type")) return (Expression_Object_Type); if (rep.equals("Synchronization_Object_Type")) return (Synchronization_Object_Type); if (rep.equals("Section_Object_Type")) return (Section_Object_Type); if (rep.equals("Network_Object_Type")) return (Network_Object_Type); if (rep.equals("Connexion_Object_Type")) return (Connexion_Object_Type); if (rep.equals("Core_Object_Type")) return (Core_Object_Type); if (rep.equals("Event_Analyzer_Type")) return (Event_Analyzer_Type); if (rep.equals("Deployment_Type")) return (Deployment_Type); if (rep.equals("Task_Group_Object_Type")) return (Task_Group_Object_Type); if (rep.equals("CFG_Node_Object_Type")) return (CFG_Node_Object_Type); if (rep.equals("CFG_Edge_Object_Type")) return (CFG_Edge_Object_Type); if (rep.equals("CFG_Object_Type")) return (CFG_Object_Type); if (rep.equals("Cache_Access_Profile_Object_Type")) return (Cache_Access_Profile_Object_Type); throw new Exception("invalid Objects_Type enum string representation (" + rep + ")"); } }