You can subscribe to this list here.
2003 |
Jan
|
Feb
(89) |
Mar
(219) |
Apr
(82) |
May
(33) |
Jun
(11) |
Jul
(129) |
Aug
(357) |
Sep
(34) |
Oct
(37) |
Nov
(42) |
Dec
(182) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(74) |
Mar
(196) |
Apr
(205) |
May
(109) |
Jun
(268) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <bma...@us...> - 2003-02-18 16:42:44
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde In directory sc8-pr-cvs1:/tmp/cvs-serv16722/src/org/fudaa/fudaa/refonde Added Files: RefondeDomainePoreux.java Log Message: Un domaine poreux. --- NEW FILE: RefondeDomainePoreux.java --- /* * @file RefondeDomainePoreux.java * @creation 2003-02-10 * @modification $Date: 2003/02/18 16:42:40 $ * @license GNU General Public License 2 * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne * @mail de...@fu... */ package org.fudaa.fudaa.refonde; import org.fudaa.ebli.geometrie.*; /** * Objet représentant un domaine poreux (zone représentant des caractéristiques * physiques de porosité).<br> * Le domaine poreux est géoréférencé mais ne fait pas partie de la géométrie * proprement dite.<br> * Il est limité en x et y par deux points opposés (xmin,ymin et xmax,ymax).<br> * Son plan est défini par les trois points de plan associés. * * @version $Id: RefondeDomainePoreux.java,v 1.1 2003/02/18 16:42:40 bmarchan Exp $ * @author Bertrand Marchand */ public class RefondeDomainePoreux extends GrPolygone { /** Porosité */ public double porosite_ =0.44; /** Coefficient de frottement */ public double coefFrottement_=0.4; /** Perméabilité */ public double permeabilite_ =0.00025; /** Coefficient de masse virtuelle */ public double coefMasse_ =0.1; /** Le Z des points du plan est-il calculé à partir de la bathymétrie ? * true : Calculé automatiquement, false : Défini par l'utilisateur. */ private boolean[] zAuto_=new boolean[]{true,true,true}; /** Cache de la boite du domaine */ private GrBoite boite_=null; /** Points du plan du domaine */ private GrPoint[] ptsPlan_=null; /** a plan */ private double aa_=0; /** b plan */ private double bb_=0; /** d plan */ private double dd_=0; /** e plan */ private double ee_=0; /** * Constructeur. Un domaine est créé en 0,0 de taille 0,0 pour avoir une * géométrie minimale. */ public RefondeDomainePoreux() { setPoints(new GrPoint[]{new GrPoint(0,0,0),new GrPoint(0,0,0)}); ptsPlan_=new GrPoint[3]; ptsPlan_[0]=new GrPoint(0,0,0); ptsPlan_[1]=new GrPoint(1,0,0); ptsPlan_[2]=new GrPoint(1,1,0); } /** * Création de la géométrie depuis les points limites. Le premier point est * le point en xmin, ymin, le 2eme est en xmax, ymax. * <p> * Les points passés sont copiés. * * @param _pts Points limites du domaine. */ public void setPoints(GrPoint[] _pts) { if (_pts==null || _pts.length!=2) throw new RuntimeException("Invalid parameter _pts"); double[] xn=new double[3]; double[] yn=new double[3]; double[] zn=new double[3]; xn[0]=_pts[0].x; yn[0]=_pts[0].y; zn[0]=_pts[0].z; xn[1]=_pts[1].x; yn[1]=_pts[1].y; zn[1]=_pts[1].z; // Polygone graphique sommets.vide(); sommets.ajoute(_pts[0].x,_pts[0].y,_pts[0].z); sommets.ajoute(_pts[1].x,_pts[0].y,_pts[0].z); sommets.ajoute(_pts[1].x,_pts[1].y,_pts[1].z); sommets.ajoute(_pts[0].x,_pts[1].y,_pts[1].z); // sommets.ajoute(sommet(0)); // sommets.ajoute(sommet(2)); boite_=boite(); } /** * Retourne une copie des 2 points limites du domaine. */ public GrPoint[] getPoints() { return new GrPoint[]{ new GrPoint(sommet(0).x,sommet(0).y,sommet(0).z), new GrPoint(sommet(2).x,sommet(2).y,sommet(2).z)}; } /** * Retourne les points du plan. */ public GrPoint[] getPointsPlan() { return ptsPlan_; } /** * Definit les coordonnees des points du plan. Les points restent inchangés. */ public void setPointsPlan(GrPoint[] _pts) { if (_pts==null || _pts.length!=3) throw new RuntimeException("Invalid parameter _pts"); ptsPlan_[0].x=_pts[0].x; ptsPlan_[0].y=_pts[0].y; ptsPlan_[0].z=_pts[0].z; ptsPlan_[1].x=_pts[1].x; ptsPlan_[1].y=_pts[1].y; ptsPlan_[1].z=_pts[1].z; ptsPlan_[2].x=_pts[2].x; ptsPlan_[2].y=_pts[2].y; ptsPlan_[2].z=_pts[2].z; // Calcul des caractéristiques du plan double[] xn=new double[3]; double[] yn=new double[3]; double[] zn=new double[3]; xn[0]=_pts[0].x; yn[0]=_pts[0].y; zn[0]=_pts[0].z; xn[1]=_pts[1].x; yn[1]=_pts[1].y; zn[1]=_pts[1].z; xn[2]=_pts[2].x; yn[2]=_pts[2].y; zn[2]=_pts[2].z; aa_=yn[0]*(zn[1]-zn[2])+yn[1]*(zn[2]-zn[0])+yn[2]*(zn[0]-zn[1]); bb_=zn[0]*(xn[1]-xn[2])+zn[1]*(xn[2]-xn[0])+zn[2]*(xn[0]-xn[1]); dd_=xn[0]*(yn[1]-yn[2])+xn[1]*(yn[2]-yn[0])+xn[2]*(yn[0]-yn[1]); ee_=-(aa_*xn[1]+bb_*yn[1]+dd_*zn[1]); } /** * Retourne vrai si un point 2D est dans le rectangle du domaine. * @return true si le point est dans le domaine. */ public boolean contientXY(GrPoint _pt) { return boite_.contientXY(_pt); } /** * Calcule le Z sur le plan du domaine pour un point 2D donné. Ce point peut * être en dehors du domaine. * @see contientXY pour savoir si le point est contenu dans le domaine. */ public double calculeZ(GrPoint _pt) { // Calcul de z par le plan ax+by+dz+e = 0 return (-ee_-aa_*_pt.x-bb_*_pt.y)/dd_; } /** * Définit la manière dont est affecté le Z d'un point de plan. * @param _b true : Calculé automatiquement, false : Fixé par l'utilisateur. * @param _i Indice du point. De 0 à 2. */ public void setZAutomatique(boolean _b, int _i) { if (_i<0 || _i>2) throw new RuntimeException("Invalid parameter _i"); zAuto_[_i]=_b; } /** * Retourne la manière dont est affecté le Z d'un point de plan _i. * @param _i Indice du point. De 0 à 2. * @return true : Calculé automatiquement, false : Fixé par l'utilisateur. */ public boolean isZAutomatique(int _i) { if (_i<0 || _i>2) throw new RuntimeException("Invalid parameter _i"); return zAuto_[_i]; } } |
From: <bma...@us...> - 2003-02-18 16:42:27
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde In directory sc8-pr-cvs1:/tmp/cvs-serv16615/src/org/fudaa/fudaa/refonde Added Files: RefondePnPointPlan.java Log Message: Un panneau pour les coordonnées d'un point de plan d'un domaine poreux. --- NEW FILE: RefondePnPointPlan.java --- /* * @file RefondePnPointPlan.java * @creation 2003-02-17 * @modification $Date: 2003/02/18 16:42:23 $ * @license GNU General Public License 2 * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne * @mail de...@fu... */ package org.fudaa.fudaa.refonde; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; import com.memoire.bu.*; import org.fudaa.ebli.geometrie.GrPoint; /** * Un panneau pour définir les coordonnées d'un point de plan d'un domaine * poreux. * * @version $Id: RefondePnPointPlan.java,v 1.1 2003/02/18 16:42:23 bmarchan Exp $ * @author Bertrand Marchand */ public class RefondePnPointPlan extends JPanel { JTextField tfZPt = new JTextField(); JLabel lbYPt = new JLabel(); JTextField tfYPt = new JTextField(); BuGridLayout lyPlan = new BuGridLayout(); JLabel lbXPt = new JLabel(); JTextField tfXPt = new JTextField(); JCheckBox cbZPt = new JCheckBox(); JLabel lbDummy6 = new JLabel(); JLabel lbDummy5 = new JLabel(); JLabel lbZPt = new JLabel(); TitledBorder ttbdpnPlan; Border bdpnPlan; /** Projet */ private RefondeProjet prj_=null; /** Point */ private GrPoint pt_=new GrPoint(); /** * Constructeur */ public RefondePnPointPlan() { super(); jbInit(); } /** * Définition de l'IU */ private void jbInit() { ttbdpnPlan = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(148, 145, 140)),""); bdpnPlan = BorderFactory.createCompoundBorder(ttbdpnPlan,BorderFactory.createEmptyBorder(5,2,5,2)); this.setLayout(lyPlan); lbZPt.setText("Z :"); cbZPt.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { cbZPt_itemStateChanged(e); } }); cbZPt.setToolTipText("Pour calculer le Z à partir de la bathymétrie"); cbZPt.setHorizontalTextPosition(SwingConstants.LEFT); cbZPt.setText("Automatique :"); tfXPt.setColumns(12); lbXPt.setText("X :"); lyPlan.setHgap(5); lyPlan.setVgap(2); lyPlan.setVfilled(false); tfYPt.setColumns(12); lbYPt.setText("Y :"); tfZPt.setColumns(12); this.setBorder(bdpnPlan); this.add(lbXPt, null); this.add(tfXPt, null); this.add(lbDummy6, null); this.add(lbYPt, null); this.add(tfYPt, null); this.add(lbDummy5, null); this.add(lbZPt, null); this.add(tfZPt, null); this.add(cbZPt, null); } private void cbZPt_itemStateChanged(ItemEvent e) { tfZPt.setEnabled(!cbZPt.isSelected()); } /** * Définition du titre du panneau. */ public void setTitle(String _title) { ttbdpnPlan.setTitle(_title); } /** * Affectation du projet */ public void setProjet(RefondeProjet _prj) { prj_=_prj; } /** * Définition de l'automaticité de la cote Z */ public void setZAutomatique(boolean _b) { cbZPt.setSelected(_b); initZ(); } /** * La cote Z est-elle automatique ? */ public boolean isZAutomatique() { return cbZPt.isSelected(); } /** * Définit le point. */ public void setPoint(GrPoint _pt) { pt_=_pt; //... X tfXPt.setText(""+pt_.x); //... Y tfYPt.setText(""+pt_.y); //... Z initZ(); } /** * Retourne le point avec ses coordonnées modifiées. */ public GrPoint getPoint() { double x=0; double y=0; double z=0; x=Double.parseDouble(tfXPt.getText()); y=Double.parseDouble(tfYPt.getText()); if (!cbZPt.isSelected()) z=Double.parseDouble(tfZPt.getText()); pt_.x=x; pt_.y=y; pt_.z=z; return pt_; } /** * Initialise le Z */ private void initZ() { if (!isZAutomatique()) tfZPt.setText(""+pt_.z); else if (prj_!=null && prj_.getGeometrie().contient(pt_)) tfZPt.setText("** Calculé **"); else tfZPt.setText("** Hors géometrie **"); } /** * Retourne vrai si le panneau est correctement rempli */ public boolean isOK() { try { double x=0; double y=0; double z=0; x=Double.parseDouble(tfXPt.getText()); y=Double.parseDouble(tfYPt.getText()); if (!cbZPt.isSelected()) z=Double.parseDouble(tfZPt.getText()); } catch (NumberFormatException _exc) { return false; } return true; } /** * Pour test. */ public static void main(String[] args) { JDialog f=new JDialog((Frame)null,"Coordonnées du point",true); RefondePnPointPlan pn=new RefondePnPointPlan(); pn.setTitle("Coordonnées"); pn.setZAutomatique(true); pn.setPoint(new GrPoint(0,0,10)); f.getContentPane().add(pn,BorderLayout.CENTER); f.pack(); f.show(); if (pn.isOK()) System.out.println("OK"); else System.out.println("Bad"); System.exit(0); } } |
From: <bma...@us...> - 2003-02-18 16:41:56
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde In directory sc8-pr-cvs1:/tmp/cvs-serv16298/src/org/fudaa/fudaa/refonde Modified Files: RefondeDialogPanneau.java Log Message: Les méthode actionOK() et actionApply() retournent un boolean indiquant si la fenetre peut etre fermée ou non. Index: RefondeDialogPanneau.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeDialogPanneau.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RefondeDialogPanneau.java 30 Jan 2003 13:09:45 -0000 1.1 --- RefondeDialogPanneau.java 18 Feb 2003 16:41:47 -0000 1.2 *************** *** 262,267 **** */ private void OK_BUTTON_actionPerformed(ActionEvent _evt) { ! actionOK(); ! dispose(); } --- 262,266 ---- */ private void OK_BUTTON_actionPerformed(ActionEvent _evt) { ! if (actionOK()) dispose(); } *************** *** 285,294 **** * appelle la méthode actionApply() qui doit être surchargée. */ ! protected void actionOK() { actionApply(); } /** * Méthode action pour le bouton APPLY à surcharger. */ ! protected void actionApply() {} /** --- 284,295 ---- * appelle la méthode actionApply() qui doit être surchargée. */ ! protected boolean actionOK() { return actionApply(); } /** * Méthode action pour le bouton APPLY à surcharger. + * @return La méthode retourne true s'il n'y a pas eu de probleme (on peut + * fermer la fenetre). */ ! protected boolean actionApply() { return true; } /** |
From: <bma...@us...> - 2003-02-18 16:40:27
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde In directory sc8-pr-cvs1:/tmp/cvs-serv15552/src/org/fudaa/fudaa/refonde Modified Files: RefondeDomaine.java Log Message: Ajout de la méthode contient(GrPoint). La méthode contains() est renommée en hasChild(). Index: RefondeDomaine.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeDomaine.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RefondeDomaine.java 30 Jan 2003 13:09:46 -0000 1.1 --- RefondeDomaine.java 18 Feb 2003 16:40:23 -0000 1.2 *************** *** 72,80 **** /** ! * Retourne vrai si le domaine contient le contour donné */ ! public boolean contains(RefondeContour _cntr) { for (int i=0; i<contours_.length; i++) if (contours_[i]==_cntr) return true; return false; } --- 72,93 ---- /** ! * Retourne vrai si le domaine est contitué du contour donné */ ! public boolean hasChild(RefondeContour _cntr) { for (int i=0; i<contours_.length; i++) if (contours_[i]==_cntr) return true; return false; + } + + /** + * Retourne vrai si le domaine contient le point 2D donné. Ce point doit être + * dans le contour externe, pas dans les contours internes. + */ + public boolean contient(GrPoint _pt) { + if (contours_.length==0 || !contours_[0].contient(_pt)) return false; + + for (int i=1; i<contours_.length; i++) + if (contours_[i].contient(_pt)) return false; + + return true; } |
From: <bma...@us...> - 2003-02-18 16:39:35
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde In directory sc8-pr-cvs1:/tmp/cvs-serv15127/src/org/fudaa/fudaa/refonde Modified Files: RefondeContour.java Log Message: Ajout de la méthode contient(GrPoint). La méthode contains() est renommée en hasChild(). Index: RefondeContour.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeContour.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RefondeContour.java 30 Jan 2003 13:09:45 -0000 1.1 --- RefondeContour.java 18 Feb 2003 16:39:32 -0000 1.2 *************** *** 82,90 **** /** ! * Retourne vrai si le domaine contient le contour donné */ ! public boolean contains(RefondePolyligne _pl) { for (int i=0; i<pls_.length; i++) if (pls_[i]==_pl) return true; return false; } --- 82,112 ---- /** ! * Retourne vrai si le contour est contitué du contour donné */ ! public boolean hasChild(RefondePolyligne _pl) { for (int i=0; i<pls_.length; i++) if (pls_[i]==_pl) return true; return false; + } + + /** + * Retourne vrai si le contour contient le point 2D donné. + */ + public boolean contient(GrPoint _pt) { + if (pls_.length==0) return false; + + GeneralPath pg=new GeneralPath(); + GrPoint[] pts; + + // Construction du polygone correspondant + for (int i=0; i<pls_.length; i++) { + pts=pls_[i].sommets.tableau(); + for (int j=0; j<pts.length-1; j++) { + if (i==0 && j==0) pg.moveTo((float)pts[j].x,(float)pts[j].y); + else pg.lineTo((float)pts[j].x,(float)pts[j].y); + } + } + pg.closePath(); + + return pg.contains(_pt.x,_pt.y); } |
From: <bma...@us...> - 2003-02-18 16:37:14
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/commun In directory sc8-pr-cvs1:/tmp/cvs-serv13802/src/org/fudaa/fudaa/commun Modified Files: FudaaInterpolateurMaillage.java Log Message: Ajout d'une méthode setZExtrapole(boolean) permettant de d'extrapoler la coordonnée Z même si le point est trop loin du maillage. Cette méthode est vrai par défaut. Sinon, la méthode interpolePoint() retourne un point avec Z=Double.NaN. Index: FudaaInterpolateurMaillage.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/commun/FudaaInterpolateurMaillage.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** FudaaInterpolateurMaillage.java 30 Jan 2003 12:28:51 -0000 1.1 --- FudaaInterpolateurMaillage.java 18 Feb 2003 16:37:10 -0000 1.2 *************** *** 19,40 **** */ public class FudaaInterpolateurMaillage { ! /** ! * Interpolation avec une méthode linéaire ! */ public final static int METHODE_LINEAIRE=0; ! private GrMaillageElement maillage_=null; ! private int methode_ =0; ! private double domMnx_; /* x min du domaine base d'interpolation */ ! private double domMxx_; /* x max du domaine base d'interpolation */ ! private double domMny_; /* y min du domaine base d'interpolation */ ! private double domMxy_; /* y max du domaine base d'interpolation */ ! private double lgCase_; /* largeur d'une case d'interpolation */ ! private double htCase_; /* hauteur d'une case d'interpolation */ ! private int nbCaseX_; /* nombre de cases suivant x */ ! private int nbCaseY_; /* nombre de cases suivant y */ ! private EleChaine[][] cases_; /* tableau des cases contenant les elements */ ! private double deltaMax_; /* distance maxi autorisée d'inclusion d'un point dans l'élément */ //---------------------------------------------------------------------------- --- 19,52 ---- */ public class FudaaInterpolateurMaillage { ! /** Interpolation avec une méthode linéaire */ public final static int METHODE_LINEAIRE=0; ! /** Maillage associé */ ! private GrMaillageElement maillage_=null; ! /** Méthode utilisée */ ! private int methode_ =0; ! /** Extrapolation (Z du noeud le + proche) autorisée */ ! private boolean extrapole_=true; ! /** x min du domaine base d'interpolation */ ! private double domMnx_; ! /** x max du domaine base d'interpolation */ ! private double domMxx_; ! /** y min du domaine base d'interpolation */ ! private double domMny_; ! /** y max du domaine base d'interpolation */ ! private double domMxy_; ! /** largeur d'une case d'interpolation */ ! private double lgCase_; ! /** hauteur d'une case d'interpolation */ ! private double htCase_; ! /** nombre de cases suivant x */ ! private int nbCaseX_; ! /** nombre de cases suivant y */ ! private int nbCaseY_; ! /** tableau des cases contenant les elements */ ! private EleChaine[][] cases_; ! /** distance maxi autorisée d'inclusion d'un point dans l'élément */ ! private double deltaMax_; //---------------------------------------------------------------------------- *************** *** 51,54 **** --- 63,73 ---- } + /** + * Création d'un interpolateur avec maillage, methode METHODE_LINEAIRE. + * @param _maillage Maillage d'interpolation. + */ + public FudaaInterpolateurMaillage(GrMaillageElement _maillage) { + this(_maillage,METHODE_LINEAIRE); + } /** *************** *** 114,120 **** /** * Interpolation d'un point sur le maillage * @param _point Point pour lequel on recherche le Z ! * @return Le point avec le Z interpolé */ public GrPoint interpolePoint(GrPoint _point) { --- 133,154 ---- /** + * Extrapolation si le point est trop loin du maillage. + * @param _b true : Extrapolation (Z du noeud le + proche). false : Le Z + * du point vaudra Double.NaN. + */ + public void setZExtrapole(boolean _b) { extrapole_=_b; } + + /** + * Retourne l'autorisation d'extrapoler le Z d'un point trop loin du maillage. + * @return true : Extrapolation (Z du noeud le + proche). false : Le Z + * du point vaudra Double.NaN. + */ + public boolean isZExtrapole() { return extrapole_; } + + /** * Interpolation d'un point sur le maillage * @param _point Point pour lequel on recherche le Z ! * @return Le point avec le Z interpolé. Un Z=Double.NaN signifie que le ! * point est hors maillage. */ public GrPoint interpolePoint(GrPoint _point) { *************** *** 122,126 **** r=valeur(_point); ! if (r==null) { throw new IllegalArgumentException("Le point de coordonnées x:"+_point.x+ " y:"+_point.y+" est hors maillage"); --- 156,160 ---- r=valeur(_point); ! if (r==null) { // => Le cas ne doit plus se produire. throw new IllegalArgumentException("Le point de coordonnées x:"+_point.x+ " y:"+_point.y+" est hors maillage"); *************** *** 133,136 **** --- 167,172 ---- * @param _points Points pour lesquels on recherche le Z * @return Les points avec le Z interpolé + * @return Les points avec le Z interpolé. Un Z=Double.NaN signifie que le + * point est hors maillage. */ public GrPoint[] interpolePoints(GrPoint[] _points) { *************** *** 374,377 **** --- 410,417 ---- } + // Pas d'élément contenant le point et pas d'extrapolation autorisée + // => Sortie avec Z=Double.NaN + if (!isZExtrapole()) return new GrPoint(xpt,ypt,Double.NaN); + // Pas d'élément trouvé contenant le point, on prend l'élément qui a // l'arète le + près pour interpolation. *************** *** 418,422 **** // Interpolation pour le noeud le + proche ! if (eleMin==null) return null; ndsEle=eleMin.noeuds; --- 458,463 ---- // Interpolation pour le noeud le + proche ! // if (eleMin==null) return null; ! if (eleMin==null) return new GrPoint(xpt,ypt,Double.NaN); ndsEle=eleMin.noeuds; |
From: <bma...@us...> - 2003-02-18 16:33:51
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/commun In directory sc8-pr-cvs1:/tmp/cvs-serv11877/src/org/fudaa/fudaa/commun Modified Files: FudaaDialog.java Log Message: Changements mineurs d'accessibilité aux constructeurs Index: FudaaDialog.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/commun/FudaaDialog.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** FudaaDialog.java 30 Jan 2003 12:28:51 -0000 1.1 --- FudaaDialog.java 18 Feb 2003 16:33:48 -0000 1.2 *************** *** 28,32 **** * @author Bertrand Marchand */ ! public abstract class FudaaDialog extends JDialog { public static final int OK_CANCEL_OPTION = 0; public static final int OK_APPLY_OPTION = 1; --- 28,32 ---- * @author Bertrand Marchand */ ! public class FudaaDialog extends JDialog { public static final int OK_CANCEL_OPTION = 0; public static final int OK_APPLY_OPTION = 1; *************** *** 52,56 **** * Création d'une fenêtre dialogue avec centrage sur l'écran */ ! protected FudaaDialog() { this(null); } --- 52,56 ---- * Création d'une fenêtre dialogue avec centrage sur l'écran */ ! public FudaaDialog() { this(null); } *************** *** 59,63 **** * Création d'une fenêtre dialogue avec centrage sur le Frame _parent */ ! protected FudaaDialog(Frame _parent) { this(_parent, OK_CANCEL_OPTION); } --- 59,63 ---- * Création d'une fenêtre dialogue avec centrage sur le Frame _parent */ ! public FudaaDialog(Frame _parent) { this(_parent, OK_CANCEL_OPTION); } *************** *** 67,71 **** * affectation des boutons d'action (_option) */ ! protected FudaaDialog(Frame _parent, int _option) { super(_parent, true); --- 67,71 ---- * affectation des boutons d'action (_option) */ ! public FudaaDialog(Frame _parent, int _option) { super(_parent, true); |
From: <bma...@us...> - 2003-02-18 16:23:22
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde In directory sc8-pr-cvs1:/tmp/cvs-serv5291/src/org/fudaa/fudaa/refonde Added Files: supporeux.gif proprietesporeux.gif deplacerpoint.gif creerporeux.gif Log Message: Nouveaux icones --- NEW FILE: supporeux.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: proprietesporeux.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: deplacerpoint.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: creerporeux.gif --- (This appears to be a binary file; contents omitted.) |
From: <bma...@us...> - 2003-02-18 16:22:12
|
Update of /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/calque In directory sc8-pr-cvs1:/tmp/cvs-serv3817/src/org/fudaa/ebli/calque Modified Files: EbliFilleCalques.java Log Message: Les méthodes associeBoutonCalqueInteraction() et associeBoutonsCalqueInteraction() deviennent plus généraliste (le Bouton associé est à présent de la classe AbstractButton pour autoriser par exemple des itemsMenu. Index: EbliFilleCalques.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/calque/EbliFilleCalques.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** EbliFilleCalques.java 30 Jan 2003 17:27:38 -0000 1.2 --- EbliFilleCalques.java 18 Feb 2003 16:22:06 -0000 1.3 *************** *** 434,438 **** * @see #addBouton(AbstractButton b) */ ! public void associeBoutonCalqueInteraction(BCalqueInteraction _cqi, JToggleButton _bt) { new AssociationCalqueBouton(_cqi,_bt); } --- 434,438 ---- * @see #addBouton(AbstractButton b) */ ! public void associeBoutonCalqueInteraction(BCalqueInteraction _cqi, AbstractButton _bt) { new AssociationCalqueBouton(_cqi,_bt); } *************** *** 453,457 **** * @see #addBouton(AbstractButton b) */ ! public void associeBoutonsCalqueInteraction(BCalqueInteraction _cqi, JToggleButton[] _bts) { new AssociationCalqueBouton(_cqi,_bts); } --- 453,457 ---- * @see #addBouton(AbstractButton b) */ ! public void associeBoutonsCalqueInteraction(BCalqueInteraction _cqi, AbstractButton[] _bts) { new AssociationCalqueBouton(_cqi,_bts); } *************** *** 831,842 **** BCalqueInteraction cqi_; ! JToggleButton[] bts_; ! JToggleButton btLastActive_; /** * Association d'un bouton et d'un calque d'interaction */ ! public AssociationCalqueBouton(BCalqueInteraction _cqi, JToggleButton _bt) { ! this(_cqi,new JToggleButton[]{_bt}); } --- 831,842 ---- BCalqueInteraction cqi_; ! AbstractButton[] bts_; ! AbstractButton btLastActive_; /** * Association d'un bouton et d'un calque d'interaction */ ! public AssociationCalqueBouton(BCalqueInteraction _cqi, AbstractButton _bt) { ! this(_cqi,new AbstractButton[]{_bt}); } *************** *** 844,848 **** * Association d'un groupe de boutons et d'un calque d'interaction */ ! public AssociationCalqueBouton(BCalqueInteraction _cqi, JToggleButton[] _bts) { cqi_=_cqi; bts_=_bts; --- 844,848 ---- * Association d'un groupe de boutons et d'un calque d'interaction */ ! public AssociationCalqueBouton(BCalqueInteraction _cqi, AbstractButton[] _bts) { cqi_=_cqi; bts_=_bts; *************** *** 861,865 **** public void actionPerformed(ActionEvent _evt) { ! btLastActive_=(BuToggleButton)_evt.getSource(); for (int i=0; i<bts_.length; i++) --- 861,865 ---- public void actionPerformed(ActionEvent _evt) { ! btLastActive_=(AbstractButton)_evt.getSource(); for (int i=0; i<bts_.length; i++) |
From: <bma...@us...> - 2003-02-18 16:17:06
|
Update of /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/calque In directory sc8-pr-cvs1:/tmp/cvs-serv569/src/org/fudaa/ebli/calque Modified Files: BCalqueFormeInteraction.java Log Message: Bug sur le tracé de forme Rectangle corrigé. Index: BCalqueFormeInteraction.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/calque/BCalqueFormeInteraction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BCalqueFormeInteraction.java 30 Jan 2003 10:56:50 -0000 1.1 --- BCalqueFormeInteraction.java 18 Feb 2003 16:16:59 -0000 1.2 *************** *** 28,32 **** /** * @version $Id$ ! * @author */ public class BCalqueFormeInteraction --- 28,32 ---- /** * @version $Id$ ! * @author */ public class BCalqueFormeInteraction *************** *** 38,42 **** // donnees membres privees ! BCalque calque_; int formeCourante_; --- 38,42 ---- // donnees membres privees ! BCalque calque_; int formeCourante_; *************** *** 48,52 **** // Constructeurs ! /** * Constructeur. --- 48,52 ---- // Constructeurs ! /** * Constructeur. *************** *** 62,72 **** listeners_=new Vector(); } ! // Methodes publiques int typeTrait_=TraceLigne.POINTILLE; ! public void setTypeTrait(int _t) { typeTrait_=_t; } ! public int getTypeTrait() { return typeTrait_; } --- 62,72 ---- listeners_=new Vector(); } ! // Methodes publiques int typeTrait_=TraceLigne.POINTILLE; ! public void setTypeTrait(int _t) { typeTrait_=_t; } ! public int getTypeTrait() { return typeTrait_; } *************** *** 75,79 **** */ public void setTypeForme(int _typeForme) { formeCourante_=_typeForme; } ! /** * Accesseur de la propriete <I>typeForme</I>. Elle fixe la prochaine forme cree --- 75,79 ---- */ public void setTypeForme(int _typeForme) { formeCourante_=_typeForme; } ! /** * Accesseur de la propriete <I>typeForme</I>. Elle fixe la prochaine forme cree *************** *** 95,106 **** if( listeners_.contains(l) ) listeners_.remove(l); } ! public void removeAllFormeEventListener() { if(listeners_!=null) listeners_.removeAllElements(); } ! ! ! public void fireFormeEvent(FormeEvent e) { --- 95,106 ---- if( listeners_.contains(l) ) listeners_.remove(l); } ! public void removeAllFormeEventListener() { if(listeners_!=null) listeners_.removeAllElements(); } ! ! ! public void fireFormeEvent(FormeEvent e) { *************** *** 131,135 **** GrPoint pointFin=new GrPoint(_evt.getX(), _evt.getY(), 0.); GrMorphisme versReel=getVersReel(); ! switch( _evt.getModifiers() ) { // deb modifiers case MouseEvent.BUTTON1_MASK: { --- 131,135 ---- GrPoint pointFin=new GrPoint(_evt.getX(), _evt.getY(), 0.); GrMorphisme versReel=getVersReel(); ! switch( _evt.getModifiers() ) { // deb modifiers case MouseEvent.BUTTON1_MASK: { *************** *** 198,203 **** /** * Methode invoquee quand on appuie sur un bouton de la souris. ! * Si la forme courante est une courbe fermee, une main levee, un ! * polygone, ou une ligne brisee, on entre en mode creation pour la * nouvelle forme. */ --- 198,203 ---- /** * Methode invoquee quand on appuie sur un bouton de la souris. ! * Si la forme courante est une courbe fermee, une main levee, un ! * polygone, ou une ligne brisee, on entre en mode creation pour la * nouvelle forme. */ *************** *** 243,247 **** GrPoint pointFin=new GrPoint(_evt.getX(), _evt.getY(), 0.); GrMorphisme versReel=getVersReel(); ! switch( formeCourante_ ) { case DeForme.TRAIT: { --- 243,247 ---- GrPoint pointFin=new GrPoint(_evt.getX(), _evt.getY(), 0.); GrMorphisme versReel=getVersReel(); ! switch( formeCourante_ ) { case DeForme.TRAIT: { *************** *** 349,354 **** } case DeForme.RECTANGLE: { ! trace.dessineRectangle(xi, yi, xfp-xi, yfp-yi); ! trace.dessineRectangle(xi, yi, xf-xi, yf-yi); break; } --- 349,354 ---- } case DeForme.RECTANGLE: { ! trace.dessineRectangle(Math.min(xi,xfp),Math.min(yi,yfp),Math.abs(xfp-xi),Math.abs(yfp-yi)); ! trace.dessineRectangle(Math.min(xi,xf),Math.min(yi,yf),Math.abs(xf-xi),Math.abs(yf-yi)); break; } *************** *** 453,457 **** int xf=_evt.getX(); int yf=_evt.getY(); ! switch( formeCourante_ ) { case DeForme.POLYGONE: --- 453,457 ---- int xf=_evt.getX(); int yf=_evt.getY(); ! switch( formeCourante_ ) { case DeForme.POLYGONE: *************** *** 464,470 **** pointFinPrec=new GrPoint(xf, yf, 0.); } ! // Methodes privees ! /** * Trace d'un carre temporaire. --- 464,470 ---- pointFinPrec=new GrPoint(xf, yf, 0.); } ! // Methodes privees ! /** * Trace d'un carre temporaire. |
From: <bma...@us...> - 2003-02-18 16:14:24
|
Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/refonde In directory sc8-pr-cvs1:/tmp/cvs-serv31567/org/fudaa/dodico/refonde Modified Files: DCalculRefonde.java Log Message: Couplage à Refonde V2.2 Si déferlement dissipatif pour houle aléatoire, alors on boucle 2 fois sur les exe refonde1 et refonde2. Index: DCalculRefonde.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/refonde/DCalculRefonde.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DCalculRefonde.java 29 Jan 2003 12:14:43 -0000 1.1 --- DCalculRefonde.java 18 Feb 2003 16:14:20 -0000 1.2 *************** *** 104,243 **** if (arretDemande_) return; // Ecriture des fichiers DParametresRefonde.ecritSurFichiers(pathFic+fichier,params.typeCalcul(),params); // DParametresRefonde.ecritSurFichiers(path+f6c,params.typeCalcul(),params); ! // Lancement de l'exécutable houle régulière. ! if (tpCal!=H_ALEA_REPRISE) { ! succes_=false; ! // Ecriture du fichier refonde1.5 ! PrintWriter fref5=new PrintWriter(new FileWriter(pathFic+"refonde1.5")); ! fref5.println(fichier+".inp"); ! fref5.println(fichier+".out"); ! fref5.close(); ! String exe; ! if (os.startsWith("Windows")) exe="refonde1.exe"; ! else exe="refonde1-"+os+".x"; ! message("Exécution de refonde houle régulière pour "+fichier); ! String[] cmd={pathExe+exe}; ! if (arretDemande_) return; ! proc_=Runtime.getRuntime().exec(cmd,null,new File(pathFic)); ! if (arretDemande_) proc_.destroy(); ! else proc_.waitFor(); ! if (arretDemande_) return; ! InputStreamReader is=new InputStreamReader(proc_.getErrorStream()); ! // Trace d'exécution pour houle régulière ! if (new File(pathFic+fichier+".out").exists()) { ! String line; ! LineNumberReader fout; ! traceBuffer_.append("========================================"); ! traceBuffer_.append("========================================\n"); ! traceBuffer_.append("Exécution refonde 1\n"); ! traceBuffer_.append("========================================"); ! traceBuffer_.append("========================================\n \n"); ! fout=new LineNumberReader(new FileReader(pathFic+fichier+".out")); ! while ((line=fout.readLine())!=null) traceBuffer_.append(line+"\n"); ! fout.close(); ! } ! // Erreurs sur stream Error ! String sResult=""; ! int ch; ! while ((ch=is.read())!=-1) sResult+=(char)ch; ! traceBuffer_.append(sResult); ! fsol=pathFic+fichier; ! // Succès du calcul si aucune erreur et fichiers résultats existants. ! if (proc_.exitValue()==0) { ! // if (sResult.equals("")) { ! succes_=(tpCal==H_REG && new File(fsol+"1.sol").length()!=0) || ! accepteRepriseHouleAleatoire(c, ! fichier,params.parametresINP().nbPeriodesHoule, ! params.parametresINP().nbAnglesHoule); ! } ! // Le calcul s'est mal déroulé. ! if (!succes_) { ! message("Erreurs :"+sResult); ! // renommeTousFichiers(path,f6c,fichier); ! return; } - } ! // Lancement de l'exécutable houle aléatoire. ! if (tpCal!=H_REG) { ! succes_=false; ! // Ecriture du fichier refonde2.5 ! PrintWriter fref5=new PrintWriter(new FileWriter(pathFic+"refonde2.5")); ! fref5.println(fichier+".spe"); ! fref5.println(fichier+".out"); ! fref5.close(); ! String exe; ! if (os.startsWith("Windows")) exe="refonde2.exe"; ! else exe="refonde2-"+os+".x"; ! message("Exécution de refonde houle aléatoire pour "+fichier); ! String[] cmd={pathExe+exe}; ! if (arretDemande_) return; ! proc_=Runtime.getRuntime().exec(cmd,null,new File(pathFic)); ! if (arretDemande_) proc_.destroy(); ! else proc_.waitFor(); ! if (arretDemande_) return; ! InputStreamReader is=new InputStreamReader(proc_.getErrorStream()); ! // Trace d'exécution pour houle aléatoire ! if (new File(pathFic+fichier+".out").exists()) { ! String line; ! LineNumberReader fout; ! traceBuffer_.append("========================================"); ! traceBuffer_.append("========================================\n"); ! traceBuffer_.append("Exécution refonde 2\n"); ! traceBuffer_.append("========================================"); ! traceBuffer_.append("========================================\n \n"); ! fout=new LineNumberReader(new FileReader(pathFic+fichier+".out")); ! while ((line=fout.readLine())!=null) traceBuffer_.append(line+"\n"); ! fout.close(); ! } ! // Erreurs sur stream Error ! String sResult=""; ! int ch; ! while ((ch=is.read())!=-1) sResult+=(char)ch; ! traceBuffer_.append(sResult); ! fsol=pathFic+fichier; ! // Succès du calcul si aucune erreur et fichier résultats existant. ! if (proc_.exitValue()==0) { ! succes_=new File(fsol+".sol").length()!=0; ! } ! // Le calcul s'est mal déroulé. ! if (!succes_) { ! message("Erreurs :"+sResult); ! // renommeTousFichiers(path,f6c,fichier); ! return; } } --- 104,261 ---- if (arretDemande_) return; + // Suppression des fichiers de résultats avant calcul (en principe, ils + // ne sont plus là). + DResultatsRefonde.clearFichiers(pathFic+fichier); + // Ecriture des fichiers DParametresRefonde.ecritSurFichiers(pathFic+fichier,params.typeCalcul(),params); // DParametresRefonde.ecritSurFichiers(path+f6c,params.typeCalcul(),params); ! // Houle aléatoire avec terme dissipatif : On boucle 2 fois sur les exe ! int nbExec=1; ! if (tpCal==H_ALEA && params.parametresINP().deferlement==1) nbExec=2; ! int iexec=0; ! while (iexec<nbExec) { ! // Lancement de l'exécutable houle régulière. ! if (tpCal!=H_ALEA_REPRISE) { ! succes_=false; ! if (iexec==0) { ! // Ecriture du fichier refonde1.5 ! PrintWriter fref5=new PrintWriter(new FileWriter(pathFic+"refonde1.5")); ! fref5.println(fichier+".inp"); ! fref5.println(fichier+".out"); ! fref5.close(); ! } ! String exe; ! if (os.startsWith("Windows")) exe="refonde1.exe"; ! else exe="refonde1-"+os+".x"; ! message("Exécution de refonde houle régulière (passage "+(iexec+1)+") pour "+fichier); ! String[] cmd={pathExe+exe}; ! if (arretDemande_) return; ! proc_=Runtime.getRuntime().exec(cmd,null,new File(pathFic)); ! if (arretDemande_) proc_.destroy(); ! else proc_.waitFor(); ! if (arretDemande_) return; ! InputStreamReader is=new InputStreamReader(proc_.getErrorStream()); ! // Trace d'exécution pour houle régulière ! if (new File(pathFic+fichier+".out").exists()) { ! String line; ! LineNumberReader fout; ! traceBuffer_.append("========================================"); ! traceBuffer_.append("========================================\n"); ! traceBuffer_.append("Exécution refonde 1 (passage "+(iexec+1)+")\n"); ! traceBuffer_.append("========================================"); ! traceBuffer_.append("========================================\n \n"); ! fout=new LineNumberReader(new FileReader(pathFic+fichier+".out")); ! while ((line=fout.readLine())!=null) traceBuffer_.append(line+"\n"); ! fout.close(); ! } ! // Erreurs sur stream Error ! String sResult=""; ! int ch; ! while ((ch=is.read())!=-1) sResult+=(char)ch; ! traceBuffer_.append(sResult); ! fsol=pathFic+fichier; ! ! // Succès du calcul si aucune erreur et fichiers résultats existants. ! if (proc_.exitValue()==0) { ! // if (sResult.equals("")) { ! succes_=(tpCal==H_REG && new File(fsol+"1.sol").length()!=0) || ! accepteRepriseHouleAleatoire(c, ! fichier,params.parametresINP().nbPeriodesHoule, ! params.parametresINP().nbAnglesHoule); ! } ! ! // Le calcul s'est mal déroulé. ! if (!succes_) { ! message("Erreurs :"+sResult); ! // renommeTousFichiers(path,f6c,fichier); ! return; ! } } ! // Lancement de l'exécutable houle aléatoire. ! if (tpCal!=H_REG) { ! succes_=false; ! if (iexec==0) { ! // Ecriture du fichier refonde2.5 ! PrintWriter fref5=new PrintWriter(new FileWriter(pathFic+"refonde2.5")); ! fref5.println(fichier+".spe"); ! fref5.println(fichier+".out"); ! fref5.close(); ! } ! String exe; ! if (os.startsWith("Windows")) exe="refonde2.exe"; ! else exe="refonde2-"+os+".x"; ! message("Exécution de refonde houle aléatoire (passage "+(iexec+1)+") pour "+fichier); ! String[] cmd={pathExe+exe}; ! if (arretDemande_) return; ! proc_=Runtime.getRuntime().exec(cmd,null,new File(pathFic)); ! if (arretDemande_) proc_.destroy(); ! else proc_.waitFor(); ! if (arretDemande_) return; ! InputStreamReader is=new InputStreamReader(proc_.getErrorStream()); ! // Trace d'exécution pour houle aléatoire ! if (new File(pathFic+fichier+".out").exists()) { ! String line; ! LineNumberReader fout; ! traceBuffer_.append("========================================"); ! traceBuffer_.append("========================================\n"); ! traceBuffer_.append("Exécution refonde 2 (passage "+(iexec+1)+")\n"); ! traceBuffer_.append("========================================"); ! traceBuffer_.append("========================================\n \n"); ! fout=new LineNumberReader(new FileReader(pathFic+fichier+".out")); ! while ((line=fout.readLine())!=null) traceBuffer_.append(line+"\n"); ! fout.close(); ! } ! // Erreurs sur stream Error ! String sResult=""; ! int ch; ! while ((ch=is.read())!=-1) sResult+=(char)ch; ! traceBuffer_.append(sResult); ! fsol=pathFic+fichier; ! // Succès du calcul si aucune erreur et fichier résultats existant. ! if (proc_.exitValue()==0) { ! succes_=new File(fsol+".sol").length()!=0; ! } ! // Le calcul s'est mal déroulé. ! if (!succes_) { ! message("Erreurs :"+sResult); ! // renommeTousFichiers(path,f6c,fichier); ! return; ! } } + + iexec++; } |
From: <bma...@us...> - 2003-02-18 16:12:34
|
Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/refonde In directory sc8-pr-cvs1:/tmp/cvs-serv30619/org/fudaa/dodico/refonde Modified Files: DParametresRefonde.java Log Message: Couplage à Refonde V2.2 - Introduction du déferlement dissipatif pour houle aléatoire. - Introduction des domaines poreux et du bloc PORO correspondant. - Suppression des blocs COND et SOLC. Index: DParametresRefonde.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/refonde/DParametresRefonde.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DParametresRefonde.java 29 Jan 2003 12:14:43 -0000 1.1 --- DParametresRefonde.java 18 Feb 2003 16:12:27 -0000 1.2 *************** *** 217,224 **** file.writeFields(fmt); ! // Déferlement (<defer [0,4]>) fmt=new int[] {6}; idefer=_params.deferlement; if (idefer==2) idefer+=_params.formuleDeferlement; file.intField(0,idefer); file.writeFields(fmt); --- 217,232 ---- file.writeFields(fmt); ! // Déferlement (<defer [0,6]>) ! // 0 : Sans ! // 1 : Dissipatif (houle reg) ! // 2 : Par écrétage formulation GODA_SANS (houle reg et aléa) ! // 3 : GODA_AVEC (houle reg et aléa) ! // 4 : MICHE (houle reg et aléa) ! // 5 : MUNK (houle reg et aléa) ! // 6 : Dissipatif (houle aléa) fmt=new int[] {6}; idefer=_params.deferlement; if (idefer==2) idefer+=_params.formuleDeferlement; + if (idefer==1 && !hReg) idefer=6; file.intField(0,idefer); file.writeFields(fmt); *************** *** 394,398 **** //------------------------------------------------------------------------ ! // Entete ('COND') fmt=new int[] { 5,5 }; file.stringField(0,"" ); --- 402,407 ---- //------------------------------------------------------------------------ ! // Bloc supprimé du fichier .inp le 04/02/03 ! /* // Entete ('COND') fmt=new int[] { 5,5 }; file.stringField(0,"" ); *************** *** 403,407 **** file.stringField(0,"" ); file.stringField(1,"" ); ! file.writeFields(fmt); //------------------------------------------------------------------------ --- 412,420 ---- file.stringField(0,"" ); file.stringField(1,"" ); ! file.writeFields(fmt); */ ! ! // Ligne blanche ! file.stringField(0,""); ! file.writeFields(); //------------------------------------------------------------------------ *************** *** 409,413 **** //------------------------------------------------------------------------ ! // Entete ('SOLC') file.stringField(0,"" ); file.stringField(1,"SOLC" ); --- 422,427 ---- //------------------------------------------------------------------------ ! // Bloc supprimé du fichier .inp le 04/02/03 ! /* // Entete ('SOLC') file.stringField(0,"" ); file.stringField(1,"SOLC" ); *************** *** 481,485 **** fmt=new int[]{5}; file.stringField(0,"" ); ! file.writeFields(fmt); //------------------------------------------------------------------------ --- 495,546 ---- fmt=new int[]{5}; file.stringField(0,"" ); ! file.writeFields(fmt); */ ! ! // Ligne blanche ! file.stringField(0,""); ! file.writeFields(); ! ! //------------------------------------------------------------------------ ! //--- Bloc 'PORO' ------------------------------------------------------ ! //------------------------------------------------------------------------ ! ! if (_params.fondsPoreux) { ! ! // Entete ('PORO') ! fmt=new int[]{5}; ! file.stringField(0,"PORO"); ! file.writeFields(fmt); ! ! SParametresRefondeDomainePoreux[] dms=_params.domainePoreux; ! ! for (i=0; i<dms.length; i++) { ! for (j=0; j<dms[i].noeud.length; j++) { ! ! // <numero du noeud> ! fmt=new int[]{10}; ! file.intField(0,dms[i].noeud[j]); ! file.writeFields(fmt); ! ! // <epaisseur nodale>,<porosite>,<frottement>,<permeabilite>, ! // <coefficient de masse> ! fmt=new int[]{10,10,10,10,10}; ! file.doubleField(0,dms[i].epaisseurNodale[j]); ! file.doubleField(1,dms[i].porosite); ! file.doubleField(2,dms[i].coefFrottement); ! file.doubleField(3,dms[i].permeabilite); ! file.doubleField(4,dms[i].coefMasseVirtuelle); ! file.writeFields(fmt); ! } ! } ! ! // Fin de bloc <-1> ! fmt=new int[]{10}; ! file.intField(0,-1); ! file.writeFields(fmt); ! ! // Ligne blanche ! file.stringField(0,""); ! file.writeFields(); ! } //------------------------------------------------------------------------ *************** *** 488,491 **** --- 549,553 ---- // Entete ('ONDE') + fmt=new int[]{5}; file.stringField(0,"ONDE" ); file.writeFields(fmt); |
From: <bma...@us...> - 2003-02-18 16:11:25
|
Update of /cvsroot/fudaa/fudaa_devel/dodico/idl/code In directory sc8-pr-cvs1:/tmp/cvs-serv30037/code Modified Files: refonde.idl Log Message: Couplage à Refonde V2.2 - Introduction du déferlement dissipatif pour houle aléatoire. - Introduction des domaines poreux et du bloc PORO correspondant. - Suppression des blocs COND et SOLC. Index: refonde.idl =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/dodico/idl/code/refonde.idl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** refonde.idl 29 Jan 2003 12:14:21 -0000 1.1 --- refonde.idl 18 Feb 2003 16:11:20 -0000 1.2 *************** *** 11,23 **** #define _REFONDE_IDL - - // Encapsulation Refonde 2.0 - - // V2.0 Introduction de la houle aléatoire. - // Introduction du déferlement. - #include "general/calcul.idl" /** * @version $Revision$ $Date$ by $Author$ * @author Philippe Sergent , Bertrand Marchand --- 11,30 ---- #define _REFONDE_IDL #include "general/calcul.idl" /** + * Encapsulation du code de calcul Refonde. + * + * V2.0 Introduction de la houle aléatoire. + * Introduction du déferlement. + * V2.1 Introduction des formulations analytiques et super élements sur bord ouvert. + * Noms des résultats dans le fichier .sol + * V2.2 Introduction du déferlement dissipatif pour houle aléatoire. + * Introduction des domaines poreux et du bloc PORO correspondant. + * Suppression des blocs COND et SOLC. + * + * Important: Les noeuds dans les structures (connectivités, etc.) sont toujours + * numérotés à partir de 1. + * * @version $Revision$ $Date$ by $Author$ * @author Philippe Sergent , Bertrand Marchand *************** *** 51,88 **** typedef sequence<SParametresRefondeLignePE> VSParametresRefondeLignePE; // INP struct SParametresRefondeINP { ! entier nbNoeuds; ! VSParametresRefondeLigneXYZ xyz; ! entier nbElements; ! entier nbMaxNoeudsElement; ! entier nbGroupesPE; ! entier nbMaxPEGroupe; ! VSParametresRefondeConnectivite connectivites; ! ventier type; ! ventier groupePE; ! VSParametresRefondeLignePE valeurPE; ! reel hauteurHoule; ! reel angleHoule; ! reel longueurOnde; ! reel periodeHoule; ! reel penteFonds; ! reel profondeurOrigine; ! reel hauteurMer; ! entier nbIterationAngleFrontiere; ! // chaine fichierSolution; ! entier casBordOuvert; ! entier ordreMax; ! entier deferlement; // V2.0 ! entier formuleDeferlement; // V2.0 ! entier nbAnglesHoule; // V2.0 ! reel angleHouleMin; // V2.0 ! reel angleHouleMax; // V2.0 ! entier nbPeriodesHoule; // V2.0 ! reel periodeHouleMin; // V2.0 ! reel periodeHouleMax; // V2.0 ! entier nbNoeudsSuperElement; // V2.1 }; --- 58,109 ---- typedef sequence<SParametresRefondeLignePE> VSParametresRefondeLignePE; + // Domaine poreux + + struct SParametresRefondeDomainePoreux { // V2.2 + reel porosite; // Porosité + reel coefFrottement; // Coefficient de frottement + reel permeabilite; // Perméabilié + reel coefMasseVirtuelle; // Coefficient de masse virtuelle cm + ventier noeud; // Numéros des noeuds avec épaisseur nodale non nulle + vreel epaisseurNodale; // Epaisseurs nodales correspondante + }; + typedef sequence<SParametresRefondeDomainePoreux> VSParametresRefondeDomainePoreux; + // INP struct SParametresRefondeINP { ! entier nbNoeuds; ! VSParametresRefondeLigneXYZ xyz; ! entier nbElements; ! entier nbMaxNoeudsElement; ! entier nbGroupesPE; ! entier nbMaxPEGroupe; ! VSParametresRefondeConnectivite connectivites; ! ventier type; ! ventier groupePE; ! VSParametresRefondeLignePE valeurPE; ! reel hauteurHoule; ! reel angleHoule; ! // reel longueurOnde; // V2.2 Inutilisé ! boolean fondsPoreux; // V2.2 ! VSParametresRefondeDomainePoreux domainePoreux; // V2.2 ! reel periodeHoule; ! reel penteFonds; ! reel profondeurOrigine; ! reel hauteurMer; ! entier nbIterationAngleFrontiere; ! // chaine fichierSolution; ! entier casBordOuvert; ! entier ordreMax; ! entier deferlement; // V2.0 ! entier formuleDeferlement; // V2.0 ! entier nbAnglesHoule; // V2.0 ! reel angleHouleMin; // V2.0 ! reel angleHouleMax; // V2.0 ! entier nbPeriodesHoule; // V2.0 ! reel periodeHouleMin; // V2.0 ! reel periodeHouleMax; // V2.0 ! entier nbNoeudsSuperElement; // V2.1 }; *************** *** 97,110 **** }; - // Champs pour de futurs developpements de REFONDE - // ----------------------------------------------- - // booleen effetCourants; - // reel coefficientFrottement; - // reel frequenceDeferlement; - // entier nbIterationFrottementFond; - // entier nbIterationDeferlement; - // SCourants courants; - // SHoule houle; - // Parametres --- 118,121 ---- *************** *** 123,134 **** entier n; // Numéro du noeud vreel valeurs; // V2.1 : Valeurs des résultats - // reel sinusPhaseHauteur; - // reel moduleHauteur; - // reel profondeur; - // reel x1; - // reel phaseHauteur; - // reel x2; - // reel x3; - // reel x4; }; typedef sequence<SResultatsLigneRefonde> VSResultatsLigneRefonde; --- 134,137 ---- |
From: <de...@us...> - 2003-02-13 14:40:57
|
Update of /cvsroot/fudaa/fudaa_devel/ctulu/lib In directory sc8-pr-cvs1:/tmp/cvs-serv14992 Added Files: ant-LICENSE.txt Log Message: La licence de ant --- NEW FILE: ant-LICENSE.txt --- /* * ============================================================================ * The Apache Software License, Version 1.1 * ============================================================================ * * Copyright (C) 2000-2003 The Apache Software Foundation. All * rights reserved. * * Redistribution and use in source and binary forms, with or without modifica- * tion, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. The end-user documentation included with the redistribution, if any, must * include the following acknowledgment: "This product includes software * developed by the Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, if * and wherever such third-party acknowledgments normally appear. * * 4. The names "Ant" and "Apache Software Foundation" must not be used to * endorse or promote products derived from this software without prior * written permission. For written permission, please contact * ap...@ap.... * * 5. Products derived from this software may not be called "Apache", nor may * "Apache" appear in their name, without prior written permission of the * Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU- * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * This software consists of voluntary contributions made by many individuals * on behalf of the Apache Software Foundation. For more information on the * Apache Software Foundation, please see <http://www.apache.org/>. * */ |
From: <de...@us...> - 2003-02-13 14:39:18
|
Update of /cvsroot/fudaa/fudaa_devel/ctulu/lib In directory sc8-pr-cvs1:/tmp/cvs-serv14119 Added Files: ant.jar Log Message: Ajout du jar de ant. --- NEW FILE: ant.jar --- (This appears to be a binary file; contents omitted.) |
From: <war...@us...> - 2003-02-07 16:35:42
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar In directory sc8-pr-cvs1:/tmp/cvs-serv14379 Modified Files: OscarImplementation.java WHtmlContent.java Log Message: OH. Index: OscarImplementation.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarImplementation.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** OscarImplementation.java 6 Feb 2003 16:51:15 -0000 1.4 --- OscarImplementation.java 7 Feb 2003 16:35:33 -0000 1.5 *************** *** 106,112 **** isOscar_.name = "Oscar"; /** version courante du logiciel */ ! isOscar_.version = "1.22"; /** date de la version courante du logiciel */ ! isOscar_.date = "06 février 2003"; /** informations sur le droits réservés */ isOscar_.rights = "CETMEF (c) 2003"; --- 106,112 ---- isOscar_.name = "Oscar"; /** version courante du logiciel */ ! isOscar_.version = "1.3"; /** date de la version courante du logiciel */ ! isOscar_.date = "07 février 2003"; /** informations sur le droits réservés */ isOscar_.rights = "CETMEF (c) 2003"; Index: WHtmlContent.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/WHtmlContent.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** WHtmlContent.java 6 Feb 2003 16:51:15 -0000 1.3 --- WHtmlContent.java 7 Feb 2003 16:35:35 -0000 1.4 *************** *** 211,215 **** _c[0] = "cohésion "+((_ctrTot)?"non drainée":"drainée")+" (kN/m2)"; _af[0] = "angle de frottement "+((_ctrTot)?"non drainé":"drainé")+" (degrés)"; ! _tc[0] = "terme de coehésion (kN/m2)"; for(i=1;i<(_nbcouchespou+1);i++){ --- 211,215 ---- _c[0] = "cohésion "+((_ctrTot)?"non drainée":"drainée")+" (kN/m2)"; _af[0] = "angle de frottement "+((_ctrTot)?"non drainé":"drainé")+" (degrés)"; ! _tc[0] = "terme de cohésion (kN/m2)"; for(i=1;i<(_nbcouchespou+1);i++){ *************** *** 221,225 **** _af[i] = ""+params_.sol.couchesPoussee[i-1].angleFrottement; _c[i] = ""+params_.sol.couchesPoussee[i-1].cohesion; ! _tc[i] = ""+OscarLib.round(((params_.sol.couchesPoussee[i-1].angleFrottement!=0.0)?((1-params_.sol.couchesPoussee[i-1].coefficient)*params_.sol.couchesPoussee[i-1].cohesion/Math.tan(params_.sol.couchesPoussee[i-1].angleFrottement)):(2*params_.sol.couchesPoussee[i-1].cohesion)),2); } --- 221,225 ---- _af[i] = ""+params_.sol.couchesPoussee[i-1].angleFrottement; _c[i] = ""+params_.sol.couchesPoussee[i-1].cohesion; ! _tc[i] = ""+Math.round(OscarLib.round(((params_.sol.couchesPoussee[i-1].angleFrottement!=0.0)?((1-params_.sol.couchesPoussee[i-1].coefficient)*params_.sol.couchesPoussee[i-1].cohesion/Math.tan(params_.sol.couchesPoussee[i-1].angleFrottement)):(2*params_.sol.couchesPoussee[i-1].cohesion)),2)*1000.0)/1000.0; } *************** *** 255,259 **** _af[i] = ""+params_.sol.couchesButee[i-1].angleFrottement; _c[i] = ""+params_.sol.couchesButee[i-1].cohesion; ! _tc[i] = ""+OscarLib.round(((params_.sol.couchesButee[i-1].angleFrottement!=0.0)?((params_.sol.couchesButee[i-1].coefficient-1)*params_.sol.couchesButee[i-1].cohesion/Math.tan(params_.sol.couchesButee[i-1].angleFrottement)):(2*params_.sol.couchesButee[i-1].cohesion)),2); } --- 255,259 ---- _af[i] = ""+params_.sol.couchesButee[i-1].angleFrottement; _c[i] = ""+params_.sol.couchesButee[i-1].cohesion; ! _tc[i] = ""+Math.round(OscarLib.round(((params_.sol.couchesButee[i-1].angleFrottement!=0.0)?((params_.sol.couchesButee[i-1].coefficient-1)*params_.sol.couchesButee[i-1].cohesion/Math.tan(params_.sol.couchesButee[i-1].angleFrottement)):(2*params_.sol.couchesButee[i-1].cohesion)),2)*1000.0)/1000.0; } *************** *** 643,647 **** double sadm = 2*se/3; double miinf = (Mmax/sadm)/1000; ! double isurv = (params_.ouvrage.inertiePalplanches/params_.ouvrage.demieHauteur)/100; addPar("<b><i>Résultats supplémentaires issus de la connaissance des données facultatives</i></b>"); addPar("En valeur absolue, le moment maximal à reprendre par les palplanches vaut <b>Mmax = "+OscarLib.round(Mmax,2)+" kN.m/ml</b>."); --- 643,647 ---- double sadm = 2*se/3; double miinf = (Mmax/sadm)/1000; ! double isurv = (params_.ouvrage.inertiePalplanches/params_.ouvrage.demieHauteur); addPar("<b><i>Résultats supplémentaires issus de la connaissance des données facultatives</i></b>"); addPar("En valeur absolue, le moment maximal à reprendre par les palplanches vaut <b>Mmax = "+OscarLib.round(Mmax,2)+" kN.m/ml</b>."); *************** *** 727,731 **** addPar("La traction dans un tirant vaut, d'après les calculs, <b>T = traction par mètre-linéaire * espacement = "+OscarLib.round(Math.abs(t),2)+" kN</b>."); ! addPar("La contrainte dans un tirant vaut <b>Sigma = T / section = "+OscarLib.round(Math.abs(s),2)+" kPa</b>."); addPar("La limite élastique des tirants vaut <b>Sigma-e = "+OscarLib.round(se,2)+" MPa.</b>"); addPar("La contrainte admissible du tirant vaut <b>Sigma-adm = 2/3 * Sigma-e = "+OscarLib.round(sadm,2)+" MPa</b>."); --- 727,731 ---- addPar("La traction dans un tirant vaut, d'après les calculs, <b>T = traction par mètre-linéaire * espacement = "+OscarLib.round(Math.abs(t),2)+" kN</b>."); ! addPar("La contrainte dans un tirant vaut <b>Sigma = T / section = "+OscarLib.round(Math.abs(s),1)+" kPa</b>."); addPar("La limite élastique des tirants vaut <b>Sigma-e = "+OscarLib.round(se,2)+" MPa.</b>"); addPar("La contrainte admissible du tirant vaut <b>Sigma-adm = 2/3 * Sigma-e = "+OscarLib.round(sadm,2)+" MPa</b>."); |
From: <war...@us...> - 2003-02-06 16:53:15
|
Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/oscar In directory sc8-pr-cvs1:/tmp/cvs-serv16487 Modified Files: DCalculOscar.java Log Message: OH. Index: DCalculOscar.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/oscar/DCalculOscar.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DCalculOscar.java 29 Jan 2003 12:14:30 -0000 1.1 --- DCalculOscar.java 6 Feb 2003 16:53:10 -0000 1.2 *************** *** 115,122 **** String drive; String path=cheminServeur(); - String etude=null; SParametresOscar _p = params.parametresOscar(); ! etude=_p.parametresGeneraux.projet+String.valueOf(System.currentTimeMillis()); String _mode = _p.parametresGeneraux.choixCalculSol; --- 115,126 ---- String drive; String path=cheminServeur(); SParametresOscar _p = params.parametresOscar(); ! String timestamp=String.valueOf(System.currentTimeMillis()); ! String etude="e"+timestamp.substring(timestamp.length()-8,timestamp.length()); ! while((new File(etude+".dat")).exists()){ ! timestamp=String.valueOf(System.currentTimeMillis()); ! etude="e"+timestamp.substring(timestamp.length()-8,timestamp.length()); ! } String _mode = _p.parametresGeneraux.choixCalculSol; *************** *** 159,163 **** // On efface les fichiers temporaires utilisés par le code de calcul - File _tmp; File _tmpo; --- 163,166 ---- *************** *** 166,190 **** if(_tmp.exists())_tmp.delete(); _tmpo = new File(etude+".dat"); ! if(_tmpo.exists() && !(_tmpo.renameTo(_tmp))) _tmpo.delete(); _tmp = new File(System.getProperty("java.io.tmpdir")+System.getProperty("file.separator")+"oscar.res"); if(_tmp.exists())_tmp.delete(); _tmpo = new File(etude+".res"); ! if(_tmpo.exists() && !(_tmpo.renameTo(_tmp))) _tmpo.delete(); _tmp = new File(System.getProperty("java.io.tmpdir")+System.getProperty("file.separator")+"oscar.rid"); if(_tmp.exists())_tmp.delete(); _tmpo = new File(etude+".rid"); ! if(_tmpo.exists() && !(_tmpo.renameTo(_tmp))) _tmpo.delete(); _tmp = new File(System.getProperty("java.io.tmpdir")+System.getProperty("file.separator")+"oscar.diag"); if(_tmp.exists())_tmp.delete(); _tmpo = new File(etude+".diag"); ! if(_tmpo.exists() && !(_tmpo.renameTo(_tmp))) _tmpo.delete(); _tmp = new File(System.getProperty("java.io.tmpdir")+System.getProperty("file.separator")+"oscar.err"); if(_tmp.exists())_tmp.delete(); _tmpo = new File(etude+".err"); ! if(_tmpo.exists() && !(_tmpo.renameTo(_tmp))) _tmpo.delete(); } --- 169,198 ---- if(_tmp.exists())_tmp.delete(); _tmpo = new File(etude+".dat"); ! _tmpo.renameTo(_tmp); ! _tmpo.delete(); _tmp = new File(System.getProperty("java.io.tmpdir")+System.getProperty("file.separator")+"oscar.res"); if(_tmp.exists())_tmp.delete(); _tmpo = new File(etude+".res"); ! _tmpo.renameTo(_tmp); ! _tmpo.delete(); _tmp = new File(System.getProperty("java.io.tmpdir")+System.getProperty("file.separator")+"oscar.rid"); if(_tmp.exists())_tmp.delete(); _tmpo = new File(etude+".rid"); ! _tmpo.renameTo(_tmp); ! _tmpo.delete(); _tmp = new File(System.getProperty("java.io.tmpdir")+System.getProperty("file.separator")+"oscar.diag"); if(_tmp.exists())_tmp.delete(); _tmpo = new File(etude+".diag"); ! _tmpo.renameTo(_tmp); ! _tmpo.delete(); _tmp = new File(System.getProperty("java.io.tmpdir")+System.getProperty("file.separator")+"oscar.err"); if(_tmp.exists())_tmp.delete(); _tmpo = new File(etude+".err"); ! _tmpo.renameTo(_tmp); ! _tmpo.delete(); } |
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar In directory sc8-pr-cvs1:/tmp/cvs-serv15152 Modified Files: OscarImplementation.java OscarSolParametresSolEnButee.java OscarSolParametresSolEnPoussee.java WHtmlContent.java Log Message: OH. Index: OscarImplementation.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarImplementation.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** OscarImplementation.java 4 Feb 2003 16:22:45 -0000 1.3 --- OscarImplementation.java 6 Feb 2003 16:51:15 -0000 1.4 *************** *** 106,116 **** isOscar_.name = "Oscar"; /** version courante du logiciel */ ! isOscar_.version = "1.21"; /** date de la version courante du logiciel */ ! isOscar_.date = "04 janvier 2003"; /** informations sur le droits réservés */ isOscar_.rights = "CETMEF (c) 2003"; /** email du responsable du logiciel */ ! isOscar_.contact = "nat...@eq..."; /** informations sur la licence de développement */ isOscar_.license = "GPL2"; --- 106,116 ---- isOscar_.name = "Oscar"; /** version courante du logiciel */ ! isOscar_.version = "1.22"; /** date de la version courante du logiciel */ ! isOscar_.date = "06 février 2003"; /** informations sur le droits réservés */ isOscar_.rights = "CETMEF (c) 2003"; /** email du responsable du logiciel */ ! isOscar_.contact = "nat...@eq..."; /** informations sur la licence de développement */ isOscar_.license = "GPL2"; *************** *** 134,138 **** isOscar_.documentors = new String[] { "Manuel Le Moine" }; /** testeurs du logiciel */ ! isOscar_.testers = new String[] { "Laurent Beltran (DDE 58)","Marc Citeau (LR Autun)","Laurence Fayet (SNS)","Yannick Laisis (SNS)","Manuel Le Moine (CETMEF)","Stéphane Leblanc (DDE 22)","Natalie Neyret (CETMEF)","Bertrand Thidet (SETRA)" }; BuPrinter.INFO_LOG=isOscar_; --- 134,138 ---- isOscar_.documentors = new String[] { "Manuel Le Moine" }; /** testeurs du logiciel */ ! isOscar_.testers = new String[] { "Laurent Beltran (DDE 58)","Marc Citeau (LR Autun)","Laurence Fayet (SNS)","Yannick Laisis (SNS)","Manuel Le Moine (CETMEF)","Stéphane Leblanc (DDE 22)","Nathalie Neyret (CETMEF)","Bertrand Thidet (SETRA)" }; BuPrinter.INFO_LOG=isOscar_; Index: OscarSolParametresSolEnButee.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarSolParametresSolEnButee.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** OscarSolParametresSolEnButee.java 30 Jan 2003 13:10:28 -0000 1.1 --- OscarSolParametresSolEnButee.java 6 Feb 2003 16:51:15 -0000 1.2 *************** *** 135,139 **** tf_cot_sol_.addKeyListener(new KeyAdapter(){ public void keyReleased(KeyEvent _evt){ ! firePropertyChange("COTE_TERRE_PLEIN_BUTEE",(Double)null,(Double)tf_cot_sol_.getValue()); } }); --- 135,140 ---- tf_cot_sol_.addKeyListener(new KeyAdapter(){ public void keyReleased(KeyEvent _evt){ ! ! firePropertyChange("COTE_TERRE_PLEIN_BUTEE",(Double)null,getCoteTerrePleinButee()); } }); Index: OscarSolParametresSolEnPoussee.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarSolParametresSolEnPoussee.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** OscarSolParametresSolEnPoussee.java 30 Jan 2003 13:10:30 -0000 1.1 --- OscarSolParametresSolEnPoussee.java 6 Feb 2003 16:51:15 -0000 1.2 *************** *** 132,136 **** tf_cot_sol_.addKeyListener(new KeyAdapter(){ public void keyReleased(KeyEvent _evt){ ! firePropertyChange("COTE_TERRE_PLEIN_POUSSEE",(Double)null,(Double)tf_cot_sol_.getValue()); } }); --- 132,136 ---- tf_cot_sol_.addKeyListener(new KeyAdapter(){ public void keyReleased(KeyEvent _evt){ ! firePropertyChange("COTE_TERRE_PLEIN_POUSSEE",(Double)null,getCoteTerrePleinPoussee()); } }); Index: WHtmlContent.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/WHtmlContent.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** WHtmlContent.java 31 Jan 2003 16:12:24 -0000 1.2 --- WHtmlContent.java 6 Feb 2003 16:51:15 -0000 1.3 *************** *** 455,459 **** addPar("L'<b>encastrement</b> du rideau dans le sol est supposé égal à <b>"+params_.ouvrage.pourcentageEncastrementNappe+"%</b>."); _a = (params_.ouvrage.espaceEntreDeuxTirants!=VALEUR_NULLE.value)?("<li>l'espacement entre deux tirants est de <b>"+params_.ouvrage.espaceEntreDeuxTirants+" m</b>,"):null; ! _b = (params_.ouvrage.sectionTirants!=VALEUR_NULLE.value)?("<li>la section d'un tirant est de <b>"+OscarLib.round((params_.ouvrage.sectionTirants*10000),2)+" cm²</b> (soit "+params_.ouvrage.sectionTirants+" m²),"):null; _c = (params_.ouvrage.limiteElastiqueAcierTirants!=VALEUR_NULLE.value)?("<li>la limite élastique de l'acier est de <b>"+params_.ouvrage.limiteElastiqueAcierTirants+" MPa</b>."):null; if((_a!=null)&&(_b!=null)&&(_c!=null)){ --- 455,459 ---- addPar("L'<b>encastrement</b> du rideau dans le sol est supposé égal à <b>"+params_.ouvrage.pourcentageEncastrementNappe+"%</b>."); _a = (params_.ouvrage.espaceEntreDeuxTirants!=VALEUR_NULLE.value)?("<li>l'espacement entre deux tirants est de <b>"+params_.ouvrage.espaceEntreDeuxTirants+" m</b>,"):null; ! _b = (params_.ouvrage.sectionTirants!=VALEUR_NULLE.value)?("<li>la section d'un tirant est de <b>"+OscarLib.round((params_.ouvrage.sectionTirants*10000),2)+" cm²</b> (soit "+OscarLib.round(params_.ouvrage.sectionTirants,6)+" m²),"):null; _c = (params_.ouvrage.limiteElastiqueAcierTirants!=VALEUR_NULLE.value)?("<li>la limite élastique de l'acier est de <b>"+params_.ouvrage.limiteElastiqueAcierTirants+" MPa</b>."):null; if((_a!=null)&&(_b!=null)&&(_c!=null)){ *************** *** 484,488 **** _b = (params_.ouvrage.limiteElastiqueAcier!=VALEUR_NULLE.value)?("<li>la limite élastique de l'acier vaut <b>"+params_.ouvrage.limiteElastiqueAcier+" MPa</b>,"):null; _c = (params_.ouvrage.inertiePalplanches!=VALEUR_NULLE.value)?("<li>l'inertie des palplanches vaut <b>"+params_.ouvrage.inertiePalplanches+" cm4/ml</b>,"):null; ! _d = (params_.ouvrage.demieHauteur!=VALEUR_NULLE.value)?("<li>la demi-hauteur des palplanches vaut <b>"+params_.ouvrage.demieHauteur+" cm</b>."):null; if((_a!=null)&&(_b!=null)&&(_c!=null)&&(_d!=null)){ --- 484,488 ---- _b = (params_.ouvrage.limiteElastiqueAcier!=VALEUR_NULLE.value)?("<li>la limite élastique de l'acier vaut <b>"+params_.ouvrage.limiteElastiqueAcier+" MPa</b>,"):null; _c = (params_.ouvrage.inertiePalplanches!=VALEUR_NULLE.value)?("<li>l'inertie des palplanches vaut <b>"+params_.ouvrage.inertiePalplanches+" cm4/ml</b>,"):null; ! _d = (params_.ouvrage.demieHauteur!=VALEUR_NULLE.value)?("<li>la demi-hauteur des palplanches vaut <b>"+(params_.ouvrage.demieHauteur)+" cm</b>."):null; if((_a!=null)&&(_b!=null)&&(_c!=null)&&(_d!=null)){ |
From: <bma...@us...> - 2003-02-06 09:46:53
|
Update of /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/calque In directory sc8-pr-cvs1:/tmp/cvs-serv1599/src/org/fudaa/ebli/calque Modified Files: BCalqueAffichage.java Log Message: Surcharge de la destruction du calque pour faire disparaitre la légende du calque légende. Index: BCalqueAffichage.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/calque/BCalqueAffichage.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BCalqueAffichage.java 30 Jan 2003 10:56:50 -0000 1.1 --- BCalqueAffichage.java 6 Feb 2003 09:46:50 -0000 1.2 *************** *** 187,190 **** --- 187,199 ---- } + /** + * Surcharge de la destruction du calque pour faire disparaitre la légende. + */ + public void detruire() + { + if (cqLegende_!=null) cqLegende_.enleve(this); + super.detruire(); + } + private BCalqueLegende cqLegende_; |
From: <bma...@us...> - 2003-02-06 09:42:13
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/reflux In directory sc8-pr-cvs1:/tmp/cvs-serv31490 Modified Files: BPanneauPaletteCouleurPlage.java Log Message: - Limitation du nombre de décimales à 3 sur les bornes min/max des plages. - Layout modifié pour redimensionnement possible du panneau de la palette. - Réajustement des légendes de la palette à chaque changement bornes min/max des plages pour affichage correct de la légende dans la fenêtre de post. Index: BPanneauPaletteCouleurPlage.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/reflux/BPanneauPaletteCouleurPlage.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BPanneauPaletteCouleurPlage.java 30 Jan 2003 13:10:24 -0000 1.1 --- BPanneauPaletteCouleurPlage.java 6 Feb 2003 09:42:09 -0000 1.2 *************** *** 14,17 **** --- 14,18 ---- import java.io.*; import java.util.*; + import java.text.DecimalFormat; import javax.swing.*; import java.beans.*; *************** *** 43,48 **** private int tailleMin_=15; private int tailleMax_=15; - BuGridLayout lyPrincipal =new BuGridLayout(); Border bdThis; JTabbedPane pnDefinitions = new JTabbedPane(); --- 44,49 ---- private int tailleMin_=15; private int tailleMax_=15; + private static final DecimalFormat fmt_=(DecimalFormat)DecimalFormat.getInstance(Locale.US); Border bdThis; JTabbedPane pnDefinitions = new JTabbedPane(); *************** *** 100,103 **** --- 101,105 ---- JPanel pnCoTailleMax = new JPanel(); BorderLayout lyTailleMax = new BorderLayout(); + BorderLayout lyPrincipal = new BorderLayout(); /** *************** *** 106,109 **** --- 108,112 ---- public BPanneauPaletteCouleurPlage() { super(); + fmt_.applyPattern("#0.0##"); setPalette(new BPaletteCouleurPlage()); jbInit(); *************** *** 192,196 **** rbAjustAucun.setSelected(true); rbAjustAucun.setText("Aucun"); ! rbAjustBornes.setToolTipText("Ajustement des bornes de la palette sur les min/max des valeurs"); rbAjustBornes.setText("Sur les min/max"); rbAjustBornes.addItemListener(new java.awt.event.ItemListener() { --- 195,199 ---- rbAjustAucun.setSelected(true); rbAjustAucun.setText("Aucun"); ! rbAjustBornes.setToolTipText("Ajustement des bornes sur les valeurs min/max du temps courant"); rbAjustBornes.setText("Sur les min/max"); rbAjustBornes.addItemListener(new java.awt.event.ItemListener() { *************** *** 233,236 **** --- 236,240 ---- pnPlages.setToolTipText("Plages"); pnCouleurs.setToolTipText("Couleurs"); + lyPrincipal.setHgap(5); pnTailleMax.add(pnCoTailleMax, BorderLayout.WEST); pnCoTailleMax.add(coTailleMax, null); *************** *** 307,317 **** bdThis=BorderFactory.createCompoundBorder(new EtchedBorder(EtchedBorder.LOWERED,Color.white,new Color(134, 134, 134)),BorderFactory.createEmptyBorder(5,5,5,5)); - lyPrincipal.setColumns(2); - lyPrincipal.setHgap(5); - lyPrincipal.setRfilled(true); pnPrincipal.setLayout(lyPrincipal); pnPrincipal.setBorder(bdThis); ! pnPrincipal.add(bxPlages); ! pnPrincipal.add(pnDefinitions); this.add(pnPrincipal, BorderLayout.CENTER); this.add(pnButtons, BorderLayout.SOUTH); --- 311,318 ---- bdThis=BorderFactory.createCompoundBorder(new EtchedBorder(EtchedBorder.LOWERED,Color.white,new Color(134, 134, 134)),BorderFactory.createEmptyBorder(5,5,5,5)); pnPrincipal.setLayout(lyPrincipal); pnPrincipal.setBorder(bdThis); ! pnPrincipal.add(bxPlages, BorderLayout.CENTER); ! pnPrincipal.add(pnDefinitions, BorderLayout.EAST); this.add(pnPrincipal, BorderLayout.CENTER); this.add(pnButtons, BorderLayout.SOUTH); *************** *** 438,443 **** if (plg!=null) { ! tfBorneMin.setText(""+plg.min); ! tfBorneMax.setText(""+plg.max); slCol.setCouleur(plg.couleur); } --- 439,444 ---- if (plg!=null) { ! tfBorneMin.setText(""+fmt_.format(plg.min)); ! tfBorneMax.setText(""+fmt_.format(plg.max)); slCol.setCouleur(plg.couleur); } *************** *** 451,454 **** --- 452,456 ---- double val=Double.parseDouble(tfBorneMin.getText()); pltTmp_.setMinPlage(lsPlages.getSelectedIndex(),val); + pltTmp_.ajusteLegendes(); rbAjustAucun.setSelected(true); btAppliquer.setEnabled(true); *************** *** 465,468 **** --- 467,471 ---- double val=Double.parseDouble(tfBorneMax.getText()); pltTmp_.setMaxPlage(lsPlages.getSelectedIndex(),val); + pltTmp_.ajusteLegendes(); rbAjustAucun.setSelected(true); btAppliquer.setEnabled(true); *************** *** 519,522 **** --- 522,526 ---- pltTmp_.setMaxPalette(borneMax_); pltTmp_.ajustePlages(); + pltTmp_.ajusteLegendes(); lsPlages.getSelectionModel().clearSelection(); btAppliquer.setEnabled(true); *************** *** 617,621 **** BPaletteCouleurPlage.Plage plg=(BPaletteCouleurPlage.Plage)value; ! setText(plg.min+" à "+plg.max); setIcon(new SymboleIcon(plg.symbole,plg.couleur,15)); // pn_.setBackground(plg.couleur); --- 621,625 ---- BPaletteCouleurPlage.Plage plg=(BPaletteCouleurPlage.Plage)value; ! setText(fmt_.format(plg.min)+" à "+fmt_.format(plg.max)); setIcon(new SymboleIcon(plg.symbole,plg.couleur,15)); // pn_.setBackground(plg.couleur); |
From: <bma...@us...> - 2003-02-06 09:38:29
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/reflux In directory sc8-pr-cvs1:/tmp/cvs-serv29537 Modified Files: PRDialogNormale.java Log Message: Limitation du nombre de décimales à 3 sur la valeur de la direction de la normale. Index: PRDialogNormale.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/reflux/PRDialogNormale.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PRDialogNormale.java 30 Jan 2003 13:10:21 -0000 1.1 --- PRDialogNormale.java 6 Feb 2003 09:38:26 -0000 1.2 *************** *** 11,14 **** --- 11,16 ---- import java.awt.*; + import java.text.*; + import java.util.*; import javax.swing.*; import org.fudaa.ebli.geometrie.GrNoeud; *************** *** 113,117 **** public void setAngle(Double _angle) { if (_angle == null) tfAngle.setText(""); ! else tfAngle.setText(_angle.toString()); } --- 115,123 ---- public void setAngle(Double _angle) { if (_angle == null) tfAngle.setText(""); ! else { ! NumberFormat nf=NumberFormat.getInstance(Locale.US); ! nf.setMaximumFractionDigits(3); ! tfAngle.setText(""+nf.format(_angle.doubleValue())); ! } } |
From: <bma...@us...> - 2003-02-06 09:36:53
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/reflux In directory sc8-pr-cvs1:/tmp/cvs-serv28634 Modified Files: RefluxFillePost.java Log Message: La palette des iso est à présent redimensionnable Index: RefluxFillePost.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/reflux/RefluxFillePost.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** RefluxFillePost.java 30 Jan 2003 17:29:51 -0000 1.2 --- RefluxFillePost.java 6 Feb 2003 09:36:51 -0000 1.3 *************** *** 531,534 **** --- 531,535 ---- btPal.setToolTipText("Palette de couleurs"); btPal.setIcon(EbliResource.EBLI.getIcon("palettecouleur")); + btPal.setPaletteResizable(true); vcps.add(btPal); |
From: <bma...@us...> - 2003-02-06 09:36:14
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/reflux In directory sc8-pr-cvs1:/tmp/cvs-serv28469 Modified Files: RefluxImplementation.java Log Message: Chagement du n° de version Index: RefluxImplementation.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/reflux/RefluxImplementation.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RefluxImplementation.java 30 Jan 2003 13:10:23 -0000 1.1 --- RefluxImplementation.java 6 Feb 2003 09:36:11 -0000 1.2 *************** *** 63,68 **** static { isReflux_.name ="Reflux"; ! isReflux_.version ="5.14"; ! isReflux_.date ="06-Jan-2003"; isReflux_.contact ="mar...@de..."; isReflux_.license ="GPL2"; --- 63,68 ---- static { isReflux_.name ="Reflux"; ! isReflux_.version ="5.14b"; ! isReflux_.date ="03-Fév-2003"; isReflux_.contact ="mar...@de..."; isReflux_.license ="GPL2"; |
From: <bma...@us...> - 2003-02-06 09:35:11
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/reflux In directory sc8-pr-cvs1:/tmp/cvs-serv28138 Modified Files: ZCalqueVecteur.java ZCalqueIso.java Log Message: Plus de réajustement de la légende du calque lors d'un changement de pas de temps. Ce réajustement du pas de temps doit être fait de façon explicite Index: ZCalqueVecteur.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/reflux/ZCalqueVecteur.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ZCalqueVecteur.java 30 Jan 2003 13:10:26 -0000 1.1 --- ZCalqueVecteur.java 6 Feb 2003 09:35:05 -0000 1.2 *************** *** 124,130 **** public void setModeleVecteur(ZModeleVecteur _modele) { ZModeleVecteur vp=mdVecteur_; ! if (mdVecteur_!=null) mdVecteur_.removeModelChangeListener(this); mdVecteur_=_modele; ! if (mdVecteur_!=null) mdVecteur_.addModelChangeListener(this); modelChanged(null); --- 124,130 ---- public void setModeleVecteur(ZModeleVecteur _modele) { ZModeleVecteur vp=mdVecteur_; ! // if (mdVecteur_!=null) mdVecteur_.removeModelChangeListener(this); mdVecteur_=_modele; ! // if (mdVecteur_!=null) mdVecteur_.addModelChangeListener(this); modelChanged(null); *************** *** 140,143 **** --- 140,144 ---- public void modelChanged(ZModeleChangeEvent _evt) { + // Mise à jour de la palette en fonction des valeurs (désactivé pour le chgt de pas de temps). pal_.setMinPalette(mdVecteur_.getMinNorme()); pal_.setMaxPalette(mdVecteur_.getMaxNorme()); Index: ZCalqueIso.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/reflux/ZCalqueIso.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ZCalqueIso.java 30 Jan 2003 13:10:10 -0000 1.1 --- ZCalqueIso.java 6 Feb 2003 09:35:05 -0000 1.2 *************** *** 102,108 **** public void setModeleValeurs(ZModeleValeur _modele) { ZModeleValeur vp=valeurs_; ! if (valeurs_!=null) valeurs_.removeModelChangeListener(this); valeurs_=_modele; ! if (valeurs_!=null) valeurs_.addModelChangeListener(this); modelChanged(null); --- 102,108 ---- public void setModeleValeurs(ZModeleValeur _modele) { ZModeleValeur vp=valeurs_; ! // if (valeurs_!=null) valeurs_.removeModelChangeListener(this); valeurs_=_modele; ! // if (valeurs_!=null) valeurs_.addModelChangeListener(this); modelChanged(null); *************** *** 118,121 **** --- 118,122 ---- public void modelChanged(ZModeleChangeEvent _evt) { + // Mise à jour de la palette en fonction des valeurs (désactivé pour le chgt de pas de temps). pal_.setMinPalette(valeurs_.getMin()); pal_.setMaxPalette(valeurs_.getMax()); *************** *** 126,130 **** } ! // >>> ZModeleChangeListener ------------------------------------------------ /** --- 127,131 ---- } ! // <<< ZModeleChangeListener ------------------------------------------------ /** |
From: <bma...@us...> - 2003-02-06 09:18:01
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde In directory sc8-pr-cvs1:/tmp/cvs-serv19855 Modified Files: RefondeCalqueCarte.java Log Message: Remplacement de BCalqueLegende.reinitialise (@deprecated) par BCalqueLegende.enleve. Index: RefondeCalqueCarte.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeCalqueCarte.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RefondeCalqueCarte.java 30 Jan 2003 13:09:46 -0000 1.1 --- RefondeCalqueCarte.java 6 Feb 2003 09:17:57 -0000 1.2 *************** *** 82,86 **** BCalqueLegende cqLg=getLegende(); if( cqLg==null ) return; ! cqLg.reinitialise(this); --- 82,86 ---- BCalqueLegende cqLg=getLegende(); if( cqLg==null ) return; ! cqLg.enleve(this); |