00001 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE 00002 // 00003 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, 00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 00005 // 00006 // This library is free software; you can redistribute it and/or 00007 // modify it under the terms of the GNU Lesser General Public 00008 // License as published by the Free Software Foundation; either 00009 // version 2.1 of the License. 00010 // 00011 // This library is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 // Lesser General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU Lesser General Public 00017 // License along with this library; if not, write to the Free Software 00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 // 00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00021 // 00022 // File : CalciumTypes.hxx 00023 // Author : Eric Fayolle (EDF) 00024 // Module : KERNEL 00025 // Modified by : $LastChangedBy$ 00026 // Date : $LastChangedDate: 2007-02-28 15:26:32 +0100 (mer, 28 fév 2007) $ 00027 // Id : $Id$ 00028 // 00029 #ifndef __CALCIUM_TYPES__ 00030 #define __CALCIUM_TYPES__ 00031 00032 namespace CalciumTypes { 00033 00034 00035 const float EPSILON = 1.e-6; 00036 00037 00038 /* Type de dependance des variables */ 00039 const int CP_TEMPS = 40; 00040 const int CP_ITERATION = 41; 00041 const int CP_SEQUENTIEL = 42; 00042 /* Mode de dependance inconnu */ 00043 const int CPIT = 6; 00044 00045 /* Directive de continuation d'une instance */ 00046 const int CP_CONT = 20; 00047 const int CP_ARRET = 21; 00048 00049 /* Type d'interpolation */ 00050 const int CP_LINEAIRE = 100; 00051 const int CP_ESCALIER = 101; 00052 00053 00054 /* Repere dans cycle de temps */ 00055 const int TI = 110; 00056 const int TF = 111; 00057 00058 00059 /* Niveaux */ 00060 const int CP_ILLIMITE = -70; 00061 const int CP_AUTESP = -71; 00062 00063 00064 00065 typedef int InfoType ; 00066 const int UNLIMITED_STORAGE_LEVEL = CP_ILLIMITE; 00067 typedef enum {UNDEFINED_DEPENDENCY=CPIT,TIME_DEPENDENCY=CP_TEMPS, 00068 ITERATION_DEPENDENCY=CP_ITERATION, 00069 // TYPE uniquement utilisé ds CalciumInterface 00070 SEQUENCE_DEPENDENCY =CP_SEQUENTIEL 00071 } DependencyType; 00072 typedef enum {TI_SCHEM=TI,TF_SCHEM=TF,ALPHA_SCHEM} DateCalSchem; 00073 typedef enum {L0_SCHEM=CP_ESCALIER,L1_SCHEM=CP_LINEAIRE} InterpolationSchem; 00074 typedef enum {UNDEFINED_EXTRA_SCHEM,E0_SCHEM,E1_SCHEM} ExtrapolationSchem; 00075 typedef enum {UNDEFINED_DIRECTIVE=0,CONTINUE=CP_CONT,STOP=CP_ARRET} DisconnectDirective; 00076 00077 /* Codes d'erreur */ 00078 00079 /* Pas d'erreur */ 00080 const int CPOK = 0; 00081 00082 /* Emetteur inconnu */ 00083 const int CPERIU = 1; 00084 00085 /* Nom de variable inconnu */ 00086 const int CPNMVR = 2; 00087 00088 /* Type entree/sortie incompatible */ 00089 const int CPIOVR = 3; 00090 00091 /* Type inconnu */ 00092 const int CPTP = 4; 00093 00094 /* Type de variable incompatible */ 00095 const int CPTPVR = 5; 00096 00097 /* Mode de dependance inconnu */ 00098 // Déclaré au dessus 00099 // const int CPIT = 6; 00100 00101 /* Mode dependance incompatible */ 00102 const int CPITVR = 7; 00103 00104 /* Requete non autorisee */ 00105 const int CPRENA = 8; 00106 00107 /* Type de deconnexion incorrect */ 00108 const int CPDNTP = 9; 00109 00110 /* Directive de deconnexion incorrecte */ 00111 const int CPDNDI = 10; 00112 00113 /* Nom de code inconnu */ 00114 const int CPNMCD = 11; 00115 00116 /* Nom d'instance inconnu */ 00117 const int CPNMIN = 12; 00118 00119 /* Attente */ 00120 const int CPATTENTE = 13; 00121 00122 /* Blocage */ 00123 const int CPBLOC = 14; 00124 00125 /* Nombre de valeurs transmises egal a zero */ 00126 const int CPNTNULL = 15; 00127 00128 /* Longueur de variable insuffisante */ 00129 const int CPLGVR = 16; 00130 00131 /* L'instance doit s'arreter */ 00132 const int CPSTOP = 17; 00133 00134 /* Arret anormal */ 00135 const int CPATAL = 18; 00136 00137 /* Coupleur absent */ 00138 const int CPNOCP = 19; 00139 00140 /* Variable sortante non connectee */ 00141 const int CPCTVR = 20; 00142 00143 /* Nombre de pas a executer egal a zero */ 00144 const int CPPASNULL = 21; 00145 00146 /* Machine inconnue */ 00147 const int CPMACHINE = 22; 00148 00149 /* COUPLAGE_GROUPE non positionnee */ 00150 const int CPGRNU = 23; 00151 00152 /* Groupe d'instances incorrect */ 00153 const int CPGRIN = 24; 00154 00155 /* Fin du fichier d'entree */ 00156 const int CPFINFICH = 25; 00157 00158 /* Erreur de format dans un fichier */ 00159 const int CPERRFICH = 26; 00160 00161 /* Requete d'avance de n pas annulee */ 00162 /* par passage en mode NORMAL */ 00163 const int CPNORERR = 27; 00164 00165 /* Coupleur en mode NORMAL pour une */ 00166 /* requete RUN_N_PAS ou DEF_* */ 00167 const int CPRUNERR = 28; 00168 00169 /* Option inconnue */ 00170 const int CPOPT = 29; 00171 00172 /* Valeur d'option inconnue */ 00173 const int CPVALOPT = 30; 00174 00175 /* Ecriture impossible par effacement */ 00176 const int CPECREFF = 31; 00177 00178 /* Lecture d'une variable non connectee */ 00179 /* ou n'appartenant pas a un lien VAS */ 00180 /* ou VAV s'il s'agit d'une sortante */ 00181 const int CPLIEN = 32; 00182 00183 /* Lecture d'une variable d'une instance*/ 00184 /* deconnectee avec directive CP_ARRET */ 00185 const int CPINARRET = 33; 00186 00187 /* Les lectures sequentielles ne pourront plus */ 00188 /* etre satisfaites : instance productrice arretee */ 00189 const int CPSTOPSEQ = 34; 00190 00191 /* Erreur dans la chaine de declaration */ 00192 const int CPDECL = 35; 00193 00194 /* Erreur dans l'execution de l'instance ajoutee */ 00195 const int CPINEXEC = 36; 00196 00197 /* Erreur PVM */ 00198 // const int CPPVM = 37; 00199 // const int CPCOM = 37; 00200 /* Erreur detectee au niveau de l'int CPERRINST = 38; 00201 00202 /* Mode d'execution non defini */ 00203 // const int CPMODE = 39; 00204 00205 /* Instance deconnectee */ 00206 const int CPINSTDEC = 40; 00207 00208 } 00209 #endif