00001 /* Copyright (C) 2003 00002 Pierre Moisan, 00003 Dominic Letourneau (dominic.letourneau@courrier.usherb.ca) 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with this library; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 */ 00019 #ifndef _FSMSyntax_H_ 00020 #define _FSMSyntax_H_ 00021 00022 namespace RobotFlow { 00023 00024 static const char k_FSMRoot[] = "FSM"; 00025 static const char k_FSMRoot_name[] = "name"; 00026 00027 // Main FSM elements 00028 00029 static const char k_FSMInput[] = "Input"; 00030 static const char k_FSMInput_name[] = "name"; 00031 static const char k_FSMInput_type[] = "type"; 00032 00033 static const char k_FSMOutput[] = "Output"; 00034 static const char k_FSMOutput_name[] = "name"; 00035 static const char k_FSMOutput_type[] = "type"; 00036 00037 static const char k_FSMStartState[] = "StartState"; 00038 static const char k_FSMStartState_name[] = "name"; 00039 00040 static const char k_FSMState[] = "State"; 00041 static const char k_FSMState_name[] = "name"; 00042 00043 static const char k_FSMTransistion[] = "Transition"; 00044 static const char k_FSMTransistion_src[] = "from"; 00045 static const char k_FSMTransistion_dst[] = "to"; 00046 00047 // State sub elements 00048 static const char k_FSMSetOutput[] = "SetOutput"; 00049 static const char k_FSMSetOutput_name[] = "name"; 00050 static const char k_FSMSetOutput_value[] = "value"; 00051 00052 // Transition sub elements 00053 static const char k_FSMOperator[] = "Operator"; 00054 static const char k_FSMOperator_type[] = "type"; 00055 00056 static const char k_FSMCondition[] = "Condition"; 00057 00058 // Condition sub elements 00059 static const char k_FSMLeft[] = "Left"; 00060 static const char k_FSMRight[] = "Right"; 00061 00062 static const char k_FSMCondition_variable[] = "variable"; 00063 static const char k_FSMCondition_constant[] = "constant"; 00064 static const char k_FSMCondition_type[] = "type"; 00065 00066 }//namespace RobotFlow 00067 #endif