1 // Copyright (C) 2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // File : CalciumTypes.hxx
23 // Author : Eric Fayolle (EDF)
25 // Modified by : $LastChangedBy$
26 // Date : $LastChangedDate: 2007-02-28 15:26:32 +0100 (mer, 28 fév 2007) $
29 #ifndef __CALCIUM_TYPES__
30 #define __CALCIUM_TYPES__
32 namespace CalciumTypes {
35 const float EPSILON = 1.e-6;
38 /* Type de dependance des variables */
39 const int CP_TEMPS = 40;
40 const int CP_ITERATION = 41;
41 const int CP_SEQUENTIEL = 42;
42 /* Mode de dependance inconnu */
45 /* Directive de continuation d'une instance */
46 const int CP_CONT = 20;
47 const int CP_ARRET = 21;
49 /* Type d'interpolation */
50 const int CP_LINEAIRE = 100;
51 const int CP_ESCALIER = 101;
54 /* Repere dans cycle de temps */
60 const int CP_ILLIMITE = -70;
61 const int CP_AUTESP = -71;
65 typedef int InfoType ;
66 const int UNLIMITED_STORAGE_LEVEL = CP_ILLIMITE;
67 typedef enum {UNDEFINED_DEPENDENCY=CPIT,TIME_DEPENDENCY=CP_TEMPS,
68 ITERATION_DEPENDENCY=CP_ITERATION,
69 // TYPE uniquement utilisé ds CalciumInterface
70 SEQUENCE_DEPENDENCY =CP_SEQUENTIEL
72 typedef enum {TI_SCHEM=TI,TF_SCHEM=TF,ALPHA_SCHEM} DateCalSchem;
73 typedef enum {L0_SCHEM=CP_ESCALIER,L1_SCHEM=CP_LINEAIRE} InterpolationSchem;
74 typedef enum {UNDEFINED_EXTRA_SCHEM,E0_SCHEM,E1_SCHEM} ExtrapolationSchem;
75 typedef enum {UNDEFINED_DIRECTIVE,CONTINUE=CP_CONT,STOP=CP_ARRET} DisconnectDirective;
82 /* Emetteur inconnu */
85 /* Nom de variable inconnu */
88 /* Type entree/sortie incompatible */
94 /* Type de variable incompatible */
97 /* Mode de dependance inconnu */
99 // const int CPIT = 6;
101 /* Mode dependance incompatible */
102 const int CPITVR = 7;
104 /* Requete non autorisee */
105 const int CPRENA = 8;
107 /* Type de deconnexion incorrect */
108 const int CPDNTP = 9;
110 /* Directive de deconnexion incorrecte */
111 const int CPDNDI = 10;
113 /* Nom de code inconnu */
114 const int CPNMCD = 11;
116 /* Nom d'instance inconnu */
117 const int CPNMIN = 12;
120 const int CPATTENTE = 13;
123 const int CPBLOC = 14;
125 /* Nombre de valeurs transmises egal a zero */
126 const int CPNTNULL = 15;
128 /* Longueur de variable insuffisante */
129 const int CPLGVR = 16;
131 /* L'instance doit s'arreter */
132 const int CPSTOP = 17;
135 const int CPATAL = 18;
137 /* Coupleur absent */
138 const int CPNOCP = 19;
140 /* Variable sortante non connectee */
141 const int CPCTVR = 20;
143 /* Nombre de pas a executer egal a zero */
144 const int CPPASNULL = 21;
146 /* Machine inconnue */
147 const int CPMACHINE = 22;
149 /* COUPLAGE_GROUPE non positionnee */
150 const int CPGRNU = 23;
152 /* Groupe d'instances incorrect */
153 const int CPGRIN = 24;
155 /* Fin du fichier d'entree */
156 const int CPFINFICH = 25;
158 /* Erreur de format dans un fichier */
159 const int CPERRFICH = 26;
161 /* Requete d'avance de n pas annulee */
162 /* par passage en mode NORMAL */
163 const int CPNORERR = 27;
165 /* Coupleur en mode NORMAL pour une */
166 /* requete RUN_N_PAS ou DEF_* */
167 const int CPRUNERR = 28;
169 /* Option inconnue */
170 const int CPOPT = 29;
172 /* Valeur d'option inconnue */
173 const int CPVALOPT = 30;
175 /* Ecriture impossible par effacement */
176 const int CPECREFF = 31;
178 /* Lecture d'une variable non connectee */
179 /* ou n'appartenant pas a un lien VAS */
180 /* ou VAV s'il s'agit d'une sortante */
181 const int CPLIEN = 32;
183 /* Lecture d'une variable d'une instance*/
184 /* deconnectee avec directive CP_ARRET */
185 const int CPINARRET = 33;
187 /* Les lectures sequentielles ne pourront plus */
188 /* etre satisfaites : instance productrice arretee */
189 const int CPSTOPSEQ = 34;
191 /* Erreur dans la chaine de declaration */
192 const int CPDECL = 35;
194 /* Erreur dans l'execution de l'instance ajoutee */
195 const int CPINEXEC = 36;
198 // const int CPPVM = 37;
199 // const int CPCOM = 37;
200 /* Erreur detectee au niveau de l'int CPERRINST = 38;
201 /* Mode d'execution non defini */
202 const int CPMODE = 39;
204 /* Instance deconnectee */
205 const int CPINSTDEC = 40;