Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/reflux/io
In directory sc8-pr-cvs1:/tmp/cvs-serv1427/org/fudaa/dodico/reflux/io
Modified Files:
CorEleBthReader.java CorEleBthWriter.java INPAdapter.java
INPReader.java
Log Message:
Mise a jour diverses
Index: CorEleBthReader.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/reflux/io/CorEleBthReader.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** CorEleBthReader.java 1 Apr 2003 12:55:12 -0000 1.2
--- CorEleBthReader.java 17 Apr 2003 17:26:18 -0000 1.3
***************
*** 11,20 ****
import java.io.EOFException;
import java.io.File;
- import java.io.FileNotFoundException;
- import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
- import org.fudaa.dodico.commun.DodicoAnalyze;
import org.fudaa.dodico.commun.DodicoLib;
import org.fudaa.dodico.corba.geometrie.LTypeElement;
--- 11,17 ----
***************
*** 135,139 ****
if(corIn_==null)
{
! _initAnalyze(0).addError("Le flux contenant les coordonnées est nul",-1,true);
}
try
--- 132,136 ----
if(corIn_==null)
{
! analyze_[0].addError("Le flux contenant les coordonnées est nul",-1,true);
}
try
***************
*** 143,147 ****
catch(IOException _e)
{
! _initAnalyze(0).addError("Erreur d'entrée/sortie");
analyze_[0].addInfo(_e.getMessage());
if(DodicoLib.DEBUG) _e.printStackTrace();
--- 140,144 ----
catch(IOException _e)
{
! analyze_[0].addError("Erreur d'entrée/sortie");
analyze_[0].addInfo(_e.getMessage());
if(DodicoLib.DEBUG) _e.printStackTrace();
***************
*** 163,167 ****
catch(IOException _e)
{
! _initAnalyze(1).addError("Erreur d'entrée/sortie");
analyze_[1].addInfo(_e.getMessage());
if(DodicoLib.DEBUG) _e.printStackTrace();
--- 160,164 ----
catch(IOException _e)
{
! analyze_[1].addError("Erreur d'entrée/sortie");
analyze_[1].addInfo(_e.getMessage());
if(DodicoLib.DEBUG) _e.printStackTrace();
***************
*** 179,184 ****
if (bthIn_ == null)
{
! DodicoAnalyze analyse = _initAnalyze(2);
! analyse.addWarning(
"Les données concernant la bathymétrie sont introuvables",
-1,
--- 176,180 ----
if (bthIn_ == null)
{
! analyze_[2].addWarning(
"Les données concernant la bathymétrie sont introuvables",
-1,
***************
*** 196,200 ****
catch(IOException _e)
{
! _initAnalyze(0).addError("Erreur d'entrée/sortie");
analyze_[0].addInfo(_e.getMessage());
if(DodicoLib.DEBUG) _e.printStackTrace();
--- 192,196 ----
catch(IOException _e)
{
! analyze_[0].addError("Erreur d'entrée/sortie");
analyze_[0].addInfo(_e.getMessage());
if(DodicoLib.DEBUG) _e.printStackTrace();
***************
*** 245,249 ****
if ((nbMaxPts != 3) && (nbMaxPts != 6))
{
! _initAnalyze(1).addError(
"Seuls les éléments T3 ou T6 sont acceptés",
eleIn_,
--- 241,245 ----
if ((nbMaxPts != 3) && (nbMaxPts != 6))
{
! analyze_[1].addError(
"Seuls les éléments T3 ou T6 sont acceptés",
eleIn_,
***************
*** 290,295 ****
if (eleIn_.intField(0) != (i + 1))
{
! _initAnalyze(1).addError("L'indice est invalide", eleIn_, true);
! _initAnalyze(1).addInfo(
DodicoLib.geti18n("Indice attendu") + ": " + (i + 1),
eleIn_);
--- 286,291 ----
if (eleIn_.intField(0) != (i + 1))
{
! analyze_[1].addError("L'indice est invalide", eleIn_, true);
! analyze_[1].addInfo(
DodicoLib.geti18n("Indice attendu") + ": " + (i + 1),
eleIn_);
***************
*** 299,303 ****
if (eleIn_.getNumberOfFields() < 5)
{
! _initAnalyze(1).addError(
"Une ligne doit posséder au moins 5 champs",
eleIn_,
--- 295,299 ----
if (eleIn_.getNumberOfFields() < 5)
{
! analyze_[1].addError(
"Une ligne doit posséder au moins 5 champs",
eleIn_,
***************
*** 313,317 ****
if ((indexPt > indexMax) || (indexPt < 0))
{
! _initAnalyze(1).addError(
DodicoLib.geti18n("L'indice")
+ " "
--- 309,313 ----
if ((indexPt > indexMax) || (indexPt < 0))
{
! analyze_[1].addError(
DodicoLib.geti18n("L'indice")
+ " "
***************
*** 319,323 ****
+ DodicoLib.geti18n("n'est pas valide"),
eleIn_);
! _initAnalyze(1).addInfo(
DodicoLib.geti18n("L'indice doit etre compris dans")
+ " [0,"
--- 315,319 ----
+ DodicoLib.geti18n("n'est pas valide"),
eleIn_);
! analyze_[1].addInfo(
DodicoLib.geti18n("L'indice doit etre compris dans")
+ " [0,"
***************
*** 350,354 ****
catch (NumberFormatException fe)
{
! manageException(fe, _initAnalyze(1), eleIn_);
return null;
}
--- 346,350 ----
catch (NumberFormatException fe)
{
! manageException(fe, analyze_[1], eleIn_);
return null;
}
***************
*** 356,360 ****
if (ele[ele.length - 1] == null)
{
! _initAnalyze(1).addError(
"Des éléments ne sont pas définis",
eleIn_,
--- 352,356 ----
if (ele[ele.length - 1] == null)
{
! analyze_[1].addError(
"Des éléments ne sont pas définis",
eleIn_,
***************
*** 431,435 ****
if (num != i + 1)
{
! _initAnalyze(0).addError(
DodicoLib.geti18n("Le numéro du noeuds")
+ " "
--- 427,431 ----
if (num != i + 1)
{
! analyze_[0].addError(
DodicoLib.geti18n("Le numéro du noeuds")
+ " "
***************
*** 465,469 ****
catch (NumberFormatException fe)
{
! manageException(fe, _initAnalyze(0), corIn_);
return null;
}
--- 461,465 ----
catch (NumberFormatException fe)
{
! manageException(fe, analyze_[0], corIn_);
return null;
}
***************
*** 536,540 ****
catch (NumberFormatException fe)
{
! manageException(fe, _initAnalyze(2), bthIn_);
return;
}
--- 532,536 ----
catch (NumberFormatException fe)
{
! manageException(fe, analyze_[2], bthIn_);
return;
}
***************
*** 543,547 ****
{
//Ajout d'un avertissement.
! _initAnalyze(2).addWarning(
index
+ " "
--- 539,543 ----
{
//Ajout d'un avertissement.
! analyze_[2].addWarning(
index
+ " "
***************
*** 561,568 ****
* @see org.fudaa.dodico.tr.ReaderWriterInterface#getFormat()
*/
! public TrFileFormat getFormat()
{
! return format_;
}
public IOException[] close()
--- 557,571 ----
* @see org.fudaa.dodico.tr.ReaderWriterInterface#getFormat()
*/
! public TrFileFormat getFileFormat()
{
! return getCorEleBthFileFormat();
}
+
+ public CorEleBthFileFormat getCorEleBthFileFormat()
+ {
+ return format_;
+ }
+
+
public IOException[] close()
Index: CorEleBthWriter.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/reflux/io/CorEleBthWriter.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** CorEleBthWriter.java 1 Apr 2003 12:55:12 -0000 1.2
--- CorEleBthWriter.java 17 Apr 2003 17:26:18 -0000 1.3
***************
*** 106,110 ****
if (source_ == null)
{
! _initAnalyze(0).addError("L'objet source est nul.", -1, true);
return;
}
--- 106,110 ----
if (source_ == null)
{
! analyze_[0].addError("L'objet source est nul.", -1, true);
return;
}
***************
*** 117,121 ****
if (nbDigits > kw_.getDoubleColumLength())
{
! _initAnalyze(0).addError(
"Le nombre de points est trop important.",
-1,
--- 117,121 ----
if (nbDigits > kw_.getDoubleColumLength())
{
! analyze_[0].addError(
"Le nombre de points est trop important.",
-1,
***************
*** 135,139 ****
catch(IOException _io)
{
! manageException(_io, _initAnalyze(0));
return;
}
--- 135,139 ----
catch(IOException _io)
{
! manageException(_io, analyze_[0]);
return;
}
***************
*** 147,151 ****
catch(IOException _io)
{
! manageException(_io, _initAnalyze(0));
return;
}
--- 147,151 ----
catch(IOException _io)
{
! manageException(_io, analyze_[0]);
return;
}
***************
*** 158,162 ****
catch(IOException _io)
{
! manageException(_io, _initAnalyze(0));
return;
}
--- 158,162 ----
catch(IOException _io)
{
! manageException(_io, analyze_[0]);
return;
}
***************
*** 174,178 ****
if (corOut_ == null)
{
! _initAnalyze(0).addError(
"Le flux pour les coordonnées est nul.",
-1,
--- 174,178 ----
if (corOut_ == null)
{
! analyze_[0].addError(
"Le flux pour les coordonnées est nul.",
-1,
***************
*** 236,240 ****
if (eleOut_ == null)
{
! _initAnalyze(1).addError("Le flux pour les éléments est nul.", -1, true);
return;
}
--- 236,240 ----
if (eleOut_ == null)
{
! analyze_[1].addError("Le flux pour les éléments est nul.", -1, true);
return;
}
***************
*** 307,311 ****
if (bthOut_ == null)
{
! _initAnalyze(2).addError(
"Le flux pour la bathymétrie est nul.",
-1,
--- 307,311 ----
if (bthOut_ == null)
{
! analyze_[2].addError(
"Le flux pour la bathymétrie est nul.",
-1,
Index: INPAdapter.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/reflux/io/INPAdapter.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** INPAdapter.java 1 Apr 2003 12:56:30 -0000 1.1
--- INPAdapter.java 17 Apr 2003 17:26:18 -0000 1.2
***************
*** 10,14 ****
import org.fudaa.dodico.corba.tr.STrProjetH2d;
- import org.fudaa.dodico.tr.TrProjetH2d;
/**
--- 10,13 ----
***************
*** 26,29 ****
--- 25,30 ----
private boolean isRadiationsLecturePasDeTemps_;
private STrProjetH2d p_;
+ private int nbPNTransitoires_;
+ private int nbCLTransitoires_;
public INPAdapter(STrProjetH2d _p)
***************
*** 32,35 ****
--- 33,49 ----
}
+ public void setNbPNTransitoires(int _i)
+ {
+ if(_i>0)
+ nbPNTransitoires_=_i;
+ }
+
+ public void setNbCLTransitoires(int _i)
+ {
+ if(_i>0)
+ nbCLTransitoires_=_i;
+ }
+
+
/**
* @see org.fudaa.dodico.reflux.io.INPInterface#getProjet()
***************
*** 140,143 ****
--- 154,173 ----
{
this.isVentLecturePasDeTemps_ = _b;
+ }
+
+ /**
+ * @return
+ */
+ public int getNbCLTransitoires()
+ {
+ return nbCLTransitoires_;
+ }
+
+ /**
+ * @return
+ */
+ public int getNbPNTransitoires()
+ {
+ return nbPNTransitoires_;
}
Index: INPReader.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/reflux/io/INPReader.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** INPReader.java 1 Apr 2003 12:56:30 -0000 1.1
--- INPReader.java 17 Apr 2003 17:26:18 -0000 1.2
***************
*** 31,34 ****
--- 31,35 ----
import org.fudaa.dodico.corba.tr.STrProprieteElementaireTransitoire;
import org.fudaa.dodico.corba.tr.STrProprieteElementaireValeur;
+ import org.fudaa.dodico.tr.TrFileFormat;
import org.fudaa.dodico.tr.TrProjetH2d;
import org.fudaa.dodico.tr.TrReaderCharSimpleAbstract;
***************
*** 71,75 ****
if (in_ == null)
{
! _initAnalyze().addTranslateError("Flux d'entrée null");
return;
}
--- 72,76 ----
if (in_ == null)
{
! analyze_.addTranslateError("Flux d'entrée null");
return;
}
***************
*** 117,121 ****
if (l == null)
{
! _initAnalyze().addError("Fichier invalide", in_, true);
return;
}
--- 118,122 ----
if (l == null)
{
! analyze_.addError("Fichier invalide", in_, true);
return;
}
***************
*** 159,163 ****
if (index >= temp)
{
! _initAnalyze().addError(
"Des commandes d'impression sont en doublons",
in_,
--- 160,164 ----
if (index >= temp)
{
! analyze_.addError(
"Des commandes d'impression sont en doublons",
in_,
***************
*** 182,186 ****
if (!l.startsWith(bloc2))
{
! _initAnalyze().addError("Bloc de données non trouvé", in_, true);
addAnalyzeLigneLue();
return;
--- 183,187 ----
if (!l.startsWith(bloc2))
{
! analyze_.addError("Bloc de données non trouvé", in_, true);
addAnalyzeLigneLue();
return;
***************
*** 197,201 ****
if (typeProjet == null)
{
! _initAnalyze().addError("Type de projet inconnu", in_, true);
addAnalyzeLigneLue();
return;
--- 198,202 ----
if (typeProjet == null)
{
! analyze_.addError("Type de projet inconnu", in_, true);
addAnalyzeLigneLue();
return;
***************
*** 215,219 ****
if (!sTemp1.equals(kw_.getCOOR()))
{
! _initAnalyze().addError(
"Le bloc des coordonnées est introuvable",
in_,
--- 216,220 ----
if (!sTemp1.equals(kw_.getCOOR()))
{
! analyze_.addError(
"Le bloc des coordonnées est introuvable",
in_,
***************
*** 227,231 ****
if (!sTemp1.equals(sTemp))
{
! _initAnalyze().addWarning(
"Le type de projet du bloc des coordonnées est différent de celui annoncé par le bloc DATA",
in_,
--- 228,232 ----
if (!sTemp1.equals(sTemp))
{
! analyze_.addWarning(
"Le type de projet du bloc des coordonnées est différent de celui annoncé par le bloc DATA",
in_,
***************
*** 235,239 ****
if (temp != 3)
{
! _initAnalyze().addError(
"Le nombre de coordonnées doit être égal à 3",
in_,
--- 236,240 ----
if (temp != 3)
{
! analyze_.addError(
"Le nombre de coordonnées doit être égal à 3",
in_,
***************
*** 246,250 ****
if (temp <= 0)
{
! _initAnalyze().addError(
"Le nombre de points est négatif ou nul",
in_,
--- 247,251 ----
if (temp <= 0)
{
! analyze_.addError(
"Le nombre de points est négatif ou nul",
in_,
***************
*** 292,296 ****
if (!sTemp.equals(kw_.getDLPN()))
{
! _initAnalyze().addError(
"Le bloc degrés de de liberté n'a pas été trouvé",
in_,
--- 293,297 ----
if (!sTemp.equals(kw_.getDLPN()))
{
! analyze_.addError(
"Le bloc degrés de de liberté n'a pas été trouvé",
in_,
***************
*** 345,349 ****
if (!sTemp.startsWith(kw_.getCOND()))
{
! _initAnalyze().addError("Le bloc COND n'a pas été trouvé", in_, true);
addAnalyzeLigneLue();
return;
--- 346,350 ----
if (!sTemp.startsWith(kw_.getCOND()))
{
! analyze_.addError("Le bloc COND n'a pas été trouvé", in_, true);
addAnalyzeLigneLue();
return;
***************
*** 351,356 ****
//Cet index indique quelle courbe transitoire utiliser
! //si -1 il faut utiliser la courbe 1,-2 la courbe 2
! int courbreTranstoireIndex = 0;
//les codes definissant une condition libre,permanent ou transitoire
--- 352,356 ----
//Cet index indique quelle courbe transitoire utiliser
! int courbeTransitoireCLIndex = 0;
//les codes definissant une condition libre,permanent ou transitoire
***************
*** 376,380 ****
//Format <code_u> <code_v> <code_h>
temp = in_.intField(0);
! int uCode = 0;
if (temp == clLibre)
{
--- 376,380 ----
//Format <code_u> <code_v> <code_h>
temp = in_.intField(0);
! String uCode = TrProjetH2d.CODE_NON_INITIALISE;
if (temp == clLibre)
{
***************
*** 387,396 ****
else if (temp == clTransitoire)
{
! uCode = -1;
}
else
{
! _initAnalyze().addError(
! "Le code pour la vitesse un est inconnu",
in_,
true);
--- 387,396 ----
else if (temp == clTransitoire)
{
! uCode = TrProjetH2d.CODE_TRANSITOIRE_BEGIN;
}
else
{
! analyze_.addError(
! "Le code pour la vitesse Un est inconnu",
in_,
true);
***************
*** 399,403 ****
}
temp = in_.intField(1);
! int vCode = 0;
if (temp == clLibre)
{
--- 399,403 ----
}
temp = in_.intField(1);
! String vCode = TrProjetH2d.CODE_NON_INITIALISE;
if (temp == clLibre)
{
***************
*** 410,418 ****
else if (temp == clTransitoire)
{
! vCode = -1;
}
else
{
! _initAnalyze().addError(
"Le code pour la vitesse ut est inconnu",
in_,
--- 410,418 ----
else if (temp == clTransitoire)
{
! vCode = TrProjetH2d.CODE_TRANSITOIRE_BEGIN;
}
else
{
! analyze_.addError(
"Le code pour la vitesse ut est inconnu",
in_,
***************
*** 422,426 ****
}
temp = in_.intField(2);
! int hCode = 0;
if (temp == clLibre)
{
--- 422,426 ----
}
temp = in_.intField(2);
! String hCode = TrProjetH2d.CODE_NON_INITIALISE;
if (temp == clLibre)
{
***************
*** 433,441 ****
else if (temp == clTransitoire)
{
! hCode = -1;
}
else
{
! _initAnalyze().addError(
"Le code pour la hauteur est inconnu",
in_,
--- 433,441 ----
else if (temp == clTransitoire)
{
! hCode = TrProjetH2d.CODE_TRANSITOIRE_BEGIN;
}
else
{
! analyze_.addError(
"Le code pour la hauteur est inconnu",
in_,
***************
*** 511,515 ****
&& (old.hCode != TrProjetH2d.CODE_LIBRE)))
{
! _initAnalyze().addWarning(
DodicoLib.geti18n("Le point")
+ (temp1 + 1)
--- 511,515 ----
&& (old.hCode != TrProjetH2d.CODE_LIBRE)))
{
! analyze_.addWarning(
DodicoLib.geti18n("Le point")
+ (temp1 + 1)
***************
*** 541,555 ****
//cas transitoire
//Pour chaque point transitoire on decremente le compteur.
! if (uCode < 0)
{
! old.uCode = --courbreTranstoireIndex;
}
! if (vCode < 0)
{
! old.vCode = --courbreTranstoireIndex;
}
! if (hCode < 0)
{
! old.hCode = --courbreTranstoireIndex;
}
}
--- 541,555 ----
//cas transitoire
//Pour chaque point transitoire on decremente le compteur.
! if (TrProjetH2d.isTransitoire(uCode))
{
! old.uCode = TrProjetH2d.CODE_TRANSITOIRE_BEGIN+"CL"+courbeTransitoireCLIndex++;
}
! if (TrProjetH2d.isTransitoire(vCode))
{
! old.vCode = TrProjetH2d.CODE_TRANSITOIRE_BEGIN+"CL"+courbeTransitoireCLIndex++;
}
! if (TrProjetH2d.isTransitoire(hCode))
{
! old.hCode = TrProjetH2d.CODE_TRANSITOIRE_BEGIN+"CL"+courbeTransitoireCLIndex++;
}
}
***************
*** 572,576 ****
if (temp != 2)
{
! _initAnalyze().addError(
"Bloc PRND :Seuls 2 propriétés seront autorisées : normales et débit linéïque",
in_,
--- 572,576 ----
if (temp != 2)
{
! analyze_.addError(
"Bloc PRND :Seuls 2 propriétés seront autorisées : normales et débit linéïque",
in_,
***************
*** 587,591 ****
//Ce chiffre indique le nombre de courbe que doit contenir
//finalement le fichier clv.
! final int clvTotal = courbreTranstoireIndex;
if (afficheAvance)
--- 587,592 ----
//Ce chiffre indique le nombre de courbe que doit contenir
//finalement le fichier clv.
! projet_.setNbCLTransitoires(courbeTransitoireCLIndex);
! int courbeTransitoirePnIndex=0;
if (afficheAvance)
***************
*** 626,630 ****
if (tr == null)
{
! _initAnalyze().addWarning(
DodicoLib.geti18n("La normale n'est pas définie pour le point")
+ ": "
--- 627,631 ----
if (tr == null)
{
! analyze_.addWarning(
DodicoLib.geti18n("La normale n'est pas définie pour le point")
+ ": "
***************
*** 648,656 ****
else if (index == clTransitoire)
{
! tr.qCode = --courbreTranstoireIndex;
}
else
{
! _initAnalyze().addWarning("Code inconnu", in_, true);
analyze_.addInfo(
DodicoLib.geti18n("Code") + ": " + index,
--- 649,657 ----
else if (index == clTransitoire)
{
! tr.qCode = TrProjetH2d.CODE_TRANSITOIRE_BEGIN+"PN"+courbeTransitoirePnIndex++;
}
else
{
! analyze_.addWarning("Code inconnu", in_, true);
analyze_.addInfo(
DodicoLib.geti18n("Code") + ": " + index,
***************
*** 691,695 ****
if (tr == null)
{
! _initAnalyze().addWarning(
"La valeur de la normale ne sera pas prise en compte",
in_,
--- 692,696 ----
if (tr == null)
{
! analyze_.addWarning(
"La valeur de la normale ne sera pas prise en compte",
in_,
***************
*** 705,709 ****
else
{
! _initAnalyze().addWarning(
"La valeur de la normale ne sera pas prise en compte",
in_,
--- 706,710 ----
else
{
! analyze_.addWarning(
"La valeur de la normale ne sera pas prise en compte",
in_,
***************
*** 723,727 ****
if (tr == null)
{
! _initAnalyze().addWarning(
"La valeur du débit linéïque ne sera pas prise en compte",
in_,
--- 724,728 ----
if (tr == null)
{
! analyze_.addWarning(
"La valeur du débit linéïque ne sera pas prise en compte",
in_,
***************
*** 729,735 ****
addAnalyzeLigneLue();
}
! else if (tr.qCode < 0)
{
! _initAnalyze().addWarning(
"Le débit est de type transitoire. La valeur ne sera pas prise en compte",
in_,
--- 730,736 ----
addAnalyzeLigneLue();
}
! else if (TrProjetH2d.isTransitoire(tr.qCode))
{
! analyze_.addWarning(
"Le débit est de type transitoire. La valeur ne sera pas prise en compte",
in_,
***************
*** 739,743 ****
else if (tr.qCode == TrProjetH2d.CODE_LIBRE)
{
! _initAnalyze().addWarning(
"Le débit est de type libre. La valeur ne sera pas prise en compte",
in_,
--- 740,744 ----
else if (tr.qCode == TrProjetH2d.CODE_LIBRE)
{
! analyze_.addWarning(
"Le débit est de type libre. La valeur ne sera pas prise en compte",
in_,
***************
*** 766,770 ****
if (!kw_.getELEM().equals(in_.stringField(0)))
{
! _initAnalyze().addError("Le bloc ELEM n'a pas été trouvé", in_, true);
addAnalyzeLigneLue();
return;
--- 767,771 ----
if (!kw_.getELEM().equals(in_.stringField(0)))
{
! analyze_.addError("Le bloc ELEM n'a pas été trouvé", in_, true);
addAnalyzeLigneLue();
return;
***************
*** 777,781 ****
if (temp2 != kw_.getELEMTailleFond())
{
! _initAnalyze().addError(
"Seuls les éléments T6 sont autorisés",
in_,
--- 778,782 ----
if (temp2 != kw_.getELEMTailleFond())
{
! analyze_.addError(
"Seuls les éléments T6 sont autorisés",
in_,
***************
*** 824,828 ****
if (elemBordCommence)
{
! _initAnalyze().addError(
"Des éléments T6 se trouvent après des éléments T3",
in_,
--- 825,829 ----
if (elemBordCommence)
{
! analyze_.addError(
"Des éléments T6 se trouvent après des éléments T3",
in_,
***************
*** 873,877 ****
if (!sTemp.startsWith(kw_.getTPEL()))
{
! _initAnalyze().addError("Le bloc TPEL est introuvable", in_, true);
addAnalyzeLigneLue();
return;
--- 874,878 ----
if (!sTemp.startsWith(kw_.getTPEL()))
{
! analyze_.addError("Le bloc TPEL est introuvable", in_, true);
addAnalyzeLigneLue();
return;
***************
*** 907,911 ****
if (nbElemBord == 0)
{
! _initAnalyze().addError(
"Erreur de lecture des éléments. Bords non trouvés",
in_,
--- 908,912 ----
if (nbElemBord == 0)
{
! analyze_.addError(
"Erreur de lecture des éléments. Bords non trouvés",
in_,
***************
*** 965,969 ****
else
{
! _initAnalyze().addError(
"Code de type d'éléments inconnus",
in_,
--- 966,970 ----
else
{
! analyze_.addError(
"Code de type d'éléments inconnus",
in_,
***************
*** 988,992 ****
if (st == null)
{
! _initAnalyze().addError(
DodicoLib.geti18n(
"La normale n'a pas été definie pour le point")
--- 989,993 ----
if (st == null)
{
! analyze_.addError(
DodicoLib.geti18n(
"La normale n'a pas été definie pour le point")
***************
*** 1023,1027 ****
if (!kw_.getPREL().equals(in_.stringField(0)))
{
! _initAnalyze().addError("Le bloc PREL est introuvable", in_, true);
addAnalyzeLigneLue();
return;
--- 1024,1028 ----
if (!kw_.getPREL().equals(in_.stringField(0)))
{
! analyze_.addError("Le bloc PREL est introuvable", in_, true);
addAnalyzeLigneLue();
return;
***************
*** 1127,1131 ****
else
{
! _initAnalyze().addWarning(
DodicoLib.geti18n("L'élément")
+ " "
--- 1128,1132 ----
else
{
! analyze_.addWarning(
DodicoLib.geti18n("L'élément")
+ " "
***************
*** 1193,1201 ****
int indexElement;
int code = codes[0];
double valeur = 0;
if (code == clPermanent)
{
valeur = Double.parseDouble(in_.readLine().trim());
! code = TrProjetH2d.CODE_PERMANENT;
}
else
--- 1194,1203 ----
int indexElement;
int code = codes[0];
+ String codeFinal=TrProjetH2d.CODE_NON_INITIALISE;
double valeur = 0;
if (code == clPermanent)
{
valeur = Double.parseDouble(in_.readLine().trim());
! codeFinal = TrProjetH2d.CODE_PERMANENT;
}
else
***************
*** 1203,1211 ****
if (code == clTransitoire)
{
! code = --courbreTranstoireIndex;
}
else
{
! code = TrProjetH2d.CODE_LIBRE;
}
in_.readLine();
--- 1205,1213 ----
if (code == clTransitoire)
{
! codeFinal=TrProjetH2d.CODE_TRANSITOIRE_BEGIN+"PN"+courbeTransitoirePnIndex++;
}
else
{
! codeFinal = TrProjetH2d.CODE_LIBRE;
}
in_.readLine();
***************
*** 1231,1241 ****
{
//OK affectation
! str.frottement = valeur;
! str.frottementCode = code;
}
else
{
//erreur dans le fichier
! _initAnalyze().addError(
DodicoLib.geti18n("Le point")
+ " "
--- 1233,1243 ----
{
//OK affectation
! str.strickler = valeur==0?0:1D/valeur;
! str.stricklerCode = codeFinal;
}
else
{
//erreur dans le fichier
! analyze_.addError(
DodicoLib.geti18n("Le point")
+ " "
***************
*** 1250,1254 ****
{
//Ce n'est pas un point frontiere et pourtant
! _initAnalyze().addError(
"Seule la rugosité est spécifié alors que ce n'est pas un point de bord",
in_,
--- 1252,1256 ----
{
//Ce n'est pas un point frontiere et pourtant
! analyze_.addError(
"Seule la rugosité est spécifié alors que ce n'est pas un point de bord",
in_,
***************
*** 1259,1263 ****
else
{
! _initAnalyze().addError(
"Des propriétés ne sont pas renseignées",
in_,
--- 1261,1265 ----
else
{
! analyze_.addError(
"Des propriétés ne sont pas renseignées",
in_,
***************
*** 1274,1278 ****
if (indexEnCours != temp)
{
! _initAnalyze().addWarning(
"Le nombre de code pour les propriétés elementaires est incorrect",
in_,
--- 1276,1280 ----
if (indexEnCours != temp)
{
! analyze_.addWarning(
"Le nombre de code pour les propriétés elementaires est incorrect",
in_,
***************
*** 1312,1317 ****
else if (code == clTransitoire)
{
! courbreTranstoireIndex =
! tge.ajouteTransitoire(elems, courbreTranstoireIndex, temp2);
}
}
--- 1314,1319 ----
else if (code == clTransitoire)
{
! courbeTransitoirePnIndex =
! tge.ajouteTransitoire(elems, courbeTransitoirePnIndex, temp2);
}
}
***************
*** 1340,1344 ****
if (s.normale > 361)
{
! _initAnalyze().addError(
DodicoLib.geti18n(
"La normale n'a pas été initialisé pour le point")
--- 1342,1346 ----
if (s.normale > 361)
{
! analyze_.addError(
DodicoLib.geti18n(
"La normale n'a pas été initialisé pour le point")
***************
*** 1354,1357 ****
--- 1356,1360 ----
}
}
+ projet_.setNbPNTransitoires(courbeTransitoirePnIndex);
h2d.conditionsLimites = new STrConditionLimite[indexEnCours];
System.arraycopy(clF, 0, h2d.conditionsLimites, 0, indexEnCours);
***************
*** 1439,1443 ****
if (sTemp.startsWith(sTemp1))
{
! _initAnalyze().addWarning("Le bloc TRANS est ignoré", in_);
sTemp = in_.readLine().trim();
}
--- 1442,1446 ----
if (sTemp.startsWith(sTemp1))
{
! analyze_.addWarning("Le bloc TRANS est ignoré", in_);
sTemp = in_.readLine().trim();
}
***************
*** 1455,1459 ****
if (!sTemp.equals(refluxProjetNom))
{
! _initAnalyze().addError("Un seul type de problème supporté");
return;
}
--- 1458,1462 ----
if (!sTemp.equals(refluxProjetNom))
{
! analyze_.addError("Un seul type de problème supporté");
return;
}
***************
*** 1496,1500 ****
else
{
! _initAnalyze().addError("Schéma non supporté", in_, true);
addAnalyzeLigneLue();
}
--- 1499,1503 ----
else
{
! analyze_.addError("Schéma non supporté", in_, true);
addAnalyzeLigneLue();
}
***************
*** 1507,1511 ****
if (meth == null)
{
! _initAnalyze().addError(
"Méthode de résolution non supportée",
in_,
--- 1510,1514 ----
if (meth == null)
{
! analyze_.addError(
"Méthode de résolution non supportée",
in_,
***************
*** 1525,1529 ****
if (!sTemp.startsWith(kw_.getFLUTCoefficientContribution()))
{
! _initAnalyze().addError(
"Le bloc est invalide. Le bloc des coefficients est attendu",
in_,
--- 1528,1532 ----
if (!sTemp.startsWith(kw_.getFLUTCoefficientContribution()))
{
! analyze_.addError(
"Le bloc est invalide. Le bloc des coefficients est attendu",
in_,
***************
*** 1574,1583 ****
catch (NumberFormatException _e)
{
! manageException(_e, _initAnalyze(), in_);
return;
}
catch (IOException _e)
{
! manageException(_e, _initAnalyze());
return;
}
--- 1577,1586 ----
catch (NumberFormatException _e)
{
! manageException(_e, analyze_, in_);
return;
}
catch (IOException _e)
{
! manageException(_e, analyze_);
return;
}
***************
*** 1729,1733 ****
new STrProprieteElementaireTransitoire();
tr.indexElement = _i;
! tr.indexCode = r;
fixe.add(tr);
}
--- 1732,1736 ----
new STrProprieteElementaireTransitoire();
tr.indexElement = _i;
! tr.indexCode = TrProjetH2d.CODE_TRANSITOIRE_BEGIN+"PN"+r;
fixe.add(tr);
}
***************
*** 1763,1766 ****
--- 1766,1782 ----
System.out.println((int) 2.9);
+ }
+
+ /**
+ * @return
+ */
+ public INPFileFormat getINPFileFormat()
+ {
+ return format_;
+ }
+
+ public TrFileFormat getFileFormat()
+ {
+ return getINPFileFormat();
}
|