00001 // Copyright (C) 2007-2011 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 00023 // File : CalciumTypes.hxx 00024 // Author : Eric Fayolle (EDF) 00025 // Module : KERNEL 00026 // Modified by : $LastChangedBy$ 00027 // Date : $LastChangedDate: 2007-02-28 15:26:32 +0100 (mer, 28 fév 2007) $ 00028 // Id : $Id: CalciumTypes.hxx,v 1.3.2.1.14.1.6.1 2011-06-01 13:51:41 vsr Exp $ 00029 // 00030 #ifndef __CALCIUM_TYPES__ 00031 #define __CALCIUM_TYPES__ 00032 00033 namespace CalciumTypes { 00034 00035 00036 const float EPSILON = 1.e-6; 00037 00038 00039 /* Type de dependance des variables */ 00040 const int CP_TEMPS = 40; 00041 const int CP_ITERATION = 41; 00042 const int CP_SEQUENTIEL = 42; 00043 /* Mode de dependance inconnu */ 00044 const int CPIT = 6; 00045 00046 /* Directive de continuation d'une instance */ 00047 const int CP_CONT = 20; 00048 const int CP_ARRET = 21; 00049 00050 /* Type d'interpolation */ 00051 const int CP_LINEAIRE = 100; 00052 const int CP_ESCALIER = 101; 00053 00054 00055 /* Repere dans cycle de temps */ 00056 const int TI = 110; 00057 const int TF = 111; 00058 00059 00060 /* Niveaux */ 00061 const int CP_ILLIMITE = -70; 00062 const int CP_AUTESP = -71; 00063 00064 00065 00066 typedef int InfoType ; 00067 const int UNLIMITED_STORAGE_LEVEL = CP_ILLIMITE; 00068 typedef enum {UNDEFINED_DEPENDENCY=CPIT,TIME_DEPENDENCY=CP_TEMPS, 00069 ITERATION_DEPENDENCY=CP_ITERATION, 00070 // TYPE uniquement utilisé ds CalciumInterface 00071 SEQUENCE_DEPENDENCY =CP_SEQUENTIEL 00072 } DependencyType; 00073 typedef enum {TI_SCHEM=TI,TF_SCHEM=TF,ALPHA_SCHEM} DateCalSchem; 00074 typedef enum {L0_SCHEM=CP_ESCALIER,L1_SCHEM=CP_LINEAIRE} InterpolationSchem; 00075 typedef enum {UNDEFINED_EXTRA_SCHEM,E0_SCHEM,E1_SCHEM} ExtrapolationSchem; 00076 typedef enum {UNDEFINED_DIRECTIVE=0,CONTINUE=CP_CONT,STOP=CP_ARRET} DisconnectDirective; 00077 00078 /* Codes d'erreur */ 00079 00080 /* Pas d'erreur */ 00081 const int CPOK = 0; 00082 00083 /* Emetteur inconnu */ 00084 const int CPERIU = 1; 00085 00086 /* Nom de variable inconnu */ 00087 const int CPNMVR = 2; 00088 00089 /* Type entree/sortie incompatible */ 00090 const int CPIOVR = 3; 00091 00092 /* Type inconnu */ 00093 const int CPTP = 4; 00094 00095 /* Type de variable incompatible */ 00096 const int CPTPVR = 5; 00097 00098 /* Mode de dependance inconnu */ 00099 // Déclaré au dessus 00100 // const int CPIT = 6; 00101 00102 /* Mode dependance incompatible */ 00103 const int CPITVR = 7; 00104 00105 /* Requete non autorisee */ 00106 const int CPRENA = 8; 00107 00108 /* Type de deconnexion incorrect */ 00109 const int CPDNTP = 9; 00110 00111 /* Directive de deconnexion incorrecte */ 00112 const int CPDNDI = 10; 00113 00114 /* Nom de code inconnu */ 00115 const int CPNMCD = 11; 00116 00117 /* Nom d'instance inconnu */ 00118 const int CPNMIN = 12; 00119 00120 /* Attente */ 00121 const int CPATTENTE = 13; 00122 00123 /* Blocage */ 00124 const int CPBLOC = 14; 00125 00126 /* Nombre de valeurs transmises egal a zero */ 00127 const int CPNTNULL = 15; 00128 00129 /* Longueur de variable insuffisante */ 00130 const int CPLGVR = 16; 00131 00132 /* L'instance doit s'arreter */ 00133 const int CPSTOP = 17; 00134 00135 /* Arret anormal */ 00136 const int CPATAL = 18; 00137 00138 /* Coupleur absent */ 00139 const int CPNOCP = 19; 00140 00141 /* Variable sortante non connectee */ 00142 const int CPCTVR = 20; 00143 00144 /* Nombre de pas a executer egal a zero */ 00145 const int CPPASNULL = 21; 00146 00147 /* Machine inconnue */ 00148 const int CPMACHINE = 22; 00149 00150 /* COUPLAGE_GROUPE non positionnee */ 00151 const int CPGRNU = 23; 00152 00153 /* Groupe d'instances incorrect */ 00154 const int CPGRIN = 24; 00155 00156 /* Fin du fichier d'entree */ 00157 const int CPFINFICH = 25; 00158 00159 /* Erreur de format dans un fichier */ 00160 const int CPERRFICH = 26; 00161 00162 /* Requete d'avance de n pas annulee */ 00163 /* par passage en mode NORMAL */ 00164 const int CPNORERR = 27; 00165 00166 /* Coupleur en mode NORMAL pour une */ 00167 /* requete RUN_N_PAS ou DEF_* */ 00168 const int CPRUNERR = 28; 00169 00170 /* Option inconnue */ 00171 const int CPOPT = 29; 00172 00173 /* Valeur d'option inconnue */ 00174 const int CPVALOPT = 30; 00175 00176 /* Ecriture impossible par effacement */ 00177 const int CPECREFF = 31; 00178 00179 /* Lecture d'une variable non connectee */ 00180 /* ou n'appartenant pas a un lien VAS */ 00181 /* ou VAV s'il s'agit d'une sortante */ 00182 const int CPLIEN = 32; 00183 00184 /* Lecture d'une variable d'une instance*/ 00185 /* deconnectee avec directive CP_ARRET */ 00186 const int CPINARRET = 33; 00187 00188 /* Les lectures sequentielles ne pourront plus */ 00189 /* etre satisfaites : instance productrice arretee */ 00190 const int CPSTOPSEQ = 34; 00191 00192 /* Erreur dans la chaine de declaration */ 00193 const int CPDECL = 35; 00194 00195 /* Erreur dans l'execution de l'instance ajoutee */ 00196 const int CPINEXEC = 36; 00197 00198 /* Erreur PVM */ 00199 // const int CPPVM = 37; 00200 // const int CPCOM = 37; 00201 /* Erreur detectee au niveau de l'int CPERRINST = 38; 00202 00203 /* Mode d'execution non defini */ 00204 // const int CPMODE = 39; 00205 00206 /* Instance deconnectee */ 00207 const int CPINSTDEC = 40; 00208 00209 } 00210 #endif