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: <de...@us...> - 2003-10-29 11:41:31
|
Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/h2d/type
In directory sc8-pr-cvs1:/tmp/cvs-serv13994/h2d/type
Modified Files:
H2dBordType.java H2dClType.java H2dElementType.java
H2dFileFormatType.java H2dMethodeResolutionType.java
H2dProjetType.java H2dSchemaResolutionType.java
H2dVariableType.java
Log Message:
Ajout du pattern command pour annuler des operations
Index: H2dBordType.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/h2d/type/H2dBordType.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** H2dBordType.java 6 Oct 2003 07:43:04 -0000 1.5
--- H2dBordType.java 29 Oct 2003 11:41:27 -0000 1.6
***************
*** 1 ****
! /*
* @file H2dBordType.java
* @creation 26 juin 2003
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.h2d.type;
import org.fudaa.dodico.h2d.H2dResource;
/**
* @author deniger
* @version $Id$
*/
public class H2dBordType extends H2dEnumType {
public static H2dBordType SOLIDE=
new H2dBordType(1, H2dResource.getS("Solide"), true);
public static H2dBordType SOLIDE_FROTTEMENT=
new H2dBordType(1, H2dResource.getS("Solide frottement"), true);
public static H2dBordType LIQUIDE=
new H2dBordType(2, H2dResource.getS("Liquide"));
public static H2dBordType LIQUIDE_VITESSES_IMPOSEES=
new H2dBordType(2, H2dResource.getS("Liquide vitesses imposées"));
public static H2dBordType LIQUIDE_HAUTEUR_VITESSES_IMPOSEES=
new H2dBordType(
2,
H2dResource.getS("Liquide hauteur et vitesses imposées"));
public static H2dBordType LIQUIDE_HAUTEUR_IMPOSEE=
new H2dBordType(2, H2dResource.getS("Liquide hauteur imposée"));
public static H2dBordType LIQUIDE_DEBIT_IMPOSE=
new H2dBordType(3, H2dResource.getS("Liquide débit imposé"));
public static H2dBordType LIQUIDE_ONDE_INCIDENCE=
new H2dBordType(4, H2dResource.getS("Liquide onde incidence"));
private boolean isLiquide_;
/**
*
*/
H2dBordType(int _id, String _nom) {
this(_id, _nom,false);
}
H2dBordType(int _id, String _nom, boolean _isSolide) {
super(_id, _nom);
isLiquide_= !_isSolide;
}
public boolean isLiquide() {
return isLiquide_;
}
public boolean equals(H2dBordType _t) {
return _t == null ? false : (id_ == _t.id_);
}
}
\ No newline at end of file
--- 1 ----
! /*
* @file H2dBordType.java
* @creation 26 juin 2003
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.h2d.type;
import org.fudaa.dodico.h2d.H2dResource;
/**
* @author deniger
* @version $Id$
*/
public class H2dBordType extends H2dEnumType {
public static H2dBordType SOLIDE=
new H2dBordType(1, H2dResource.getS("Solide"), true);
public static H2dBordType SOLIDE_FROTTEMENT=
new H2dBordType(2, H2dResource.getS("Solide frottement"), true);
public static H2dBordType LIQUIDE=
new H2dBordType(3, H2dResource.getS("Liquide"));
public static H2dBordType LIQUIDE_VITESSES_IMPOSEES=
new H2dBordType(4, H2dResource.getS("Liquide vitesses imposées"));
public static H2dBordType LIQUIDE_HAUTEUR_VITESSES_IMPOSEES=
new H2dBordType(
2,
H2dResource.getS("Liquide hauteur et vitesses imposées"));
public static H2dBordType LIQUIDE_HAUTEUR_IMPOSEE=
new H2dBordType(5, H2dResource.getS("Liquide hauteur imposée"));
public static H2dBordType LIQUIDE_DEBIT_IMPOSE=
new H2dBordType(6, H2dResource.getS("Liquide débit imposé"));
public static H2dBordType LIQUIDE_ONDE_INCIDENCE=
new H2dBordType(7, H2dResource.getS("Liquide onde incidence"));
private boolean isLiquide_;
/**
*
*/
H2dBordType(int _id, String _nom) {
this(_id, _nom,false);
}
H2dBordType(int _id, String _nom, boolean _isSolide) {
super(_id, _nom);
isLiquide_= !_isSolide;
}
public boolean isLiquide() {
return isLiquide_;
}
public boolean isSolide() {
return !isLiquide_;
}
public boolean equals(H2dBordType _t) {
return _t == null ? false : (id_ == _t.id_);
}
}
\ No newline at end of file
Index: H2dClType.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/h2d/type/H2dClType.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** H2dClType.java 23 Sep 2003 19:38:22 -0000 1.2
--- H2dClType.java 29 Oct 2003 11:41:27 -0000 1.3
***************
*** 1,32 ****
! /*
! * @file H2dClType.java
! * @creation 26 juin 2003
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
! package org.fudaa.dodico.h2d.type;
!
! import org.fudaa.dodico.commun.DodicoResource;
!
! /**
! * @author deniger
! * @version $Id$
! */
! public class H2dClType extends H2dEnumType
! {
! public static H2dClType LIBRE=new H2dClType(1,DodicoResource.getS("Libre"));
! public static H2dClType PERMANENT=new H2dClType(2,DodicoResource.getS("Permanent"));
! public static H2dClType TRANSITOIRE=new H2dClType(3,DodicoResource.getS("Transitoire"));
!
!
! /**
! *
! */
! H2dClType(int _id,String _nom)
! {
! super(_id,_nom);
! }
!
! }
--- 1 ----
! /*
* @file H2dClType.java
* @creation 26 juin 2003
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.h2d.type;
import org.fudaa.dodico.commun.DodicoResource;
/**
* @author deniger
* @version $Id$
*/
public class H2dClType extends H2dEnumType {
public static H2dClType LIBRE= new H2dClType(1, DodicoResource.getS("Libre"));
public static H2dClType PERMANENT=
new H2dClType(2, DodicoResource.getS("Permanent"));
public static H2dClType TRANSITOIRE=
new H2dClType(3, DodicoResource.getS("Transitoire"));
/**
*
*/
H2dClType(int _id, String _nom) {
super(_id, _nom);
}
}
\ No newline at end of file
Index: H2dElementType.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/h2d/type/H2dElementType.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** H2dElementType.java 23 Sep 2003 19:38:22 -0000 1.2
--- H2dElementType.java 29 Oct 2003 11:41:27 -0000 1.3
***************
*** 1,50 ****
! /*
! * @file H2dElementType.java
! * @creation 19 août 2003
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
! package org.fudaa.dodico.h2d.type;
!
! import org.fudaa.dodico.commun.DodicoPermanentList;
!
! /**
! * @author deniger
! * @version $Id$
! */
! public class H2dElementType extends H2dEnumType {
! public static final H2dElementType T3=new H2dElementType(0,"T3",3);
! public static final H2dElementType T6=new H2dElementType(1,"T6",6);
! public static final H2dElementType Q4=new H2dElementType(2,"Q4",4);
! public static final H2dElementType Q8=new H2dElementType(3,"Q8",8);
!
! public static H2dElementType getCommunType(int _nbPoint)
! {
! if(_nbPoint==T3.getNbPt()) return T3;
! else if(_nbPoint==T6.getNbPt()) return T6;
! else if(_nbPoint==Q4.getNbPt()) return Q4;
! else if(_nbPoint==Q8.getNbPt()) return Q8;
! else return null;
! }
!
! int nbPt_;
!
! /**
! * @param _id
! * @param _nom
! */
! private H2dElementType(int _id, String _nom,int _nbPt) {
! super(_id, _nom);
! nbPt_=_nbPt;
! }
!
! /**
! *
! */
! public int getNbPt() {
! return nbPt_;
! }
!
! }
--- 1 ----
! /*
* @file H2dElementType.java
* @creation 19 août 2003
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.h2d.type;
import org.fudaa.dodico.commun.DodicoPermanentList;
/**
* @author deniger
* @version $Id$
*/
public class H2dElementType extends H2dEnumType {
public static final H2dElementType T3= new H2dElementType(0, "T3", 3);
public static final H2dElementType T6= new H2dElementType(1, "T6", 6);
public static final H2dElementType Q4= new H2dElementType(2, "Q4", 4);
public static final H2dElementType Q8= new H2dElementType(3, "Q8", 8);
public static H2dElementType getCommunType(int _nbPoint) {
if (_nbPoint == T3.getNbPt())
return T3;
else if (_nbPoint == T6.getNbPt())
return T6;
else if (_nbPoint == Q4.getNbPt())
return Q4;
else if (_nbPoint == Q8.getNbPt())
return Q8;
else
return null;
}
int nbPt_;
/**
* @param _id
* @param _nom
*/
private H2dElementType(int _id, String _nom, int _nbPt) {
super(_id, _nom);
nbPt_= _nbPt;
}
/**
*
*/
public int getNbPt() {
return nbPt_;
}
}
\ No newline at end of file
Index: H2dFileFormatType.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/h2d/type/H2dFileFormatType.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** H2dFileFormatType.java 23 Sep 2003 19:38:22 -0000 1.3
--- H2dFileFormatType.java 29 Oct 2003 11:41:27 -0000 1.4
***************
*** 1,58 ****
! /*
! * @file H2dFileFormatType.java
! * @creation 14 août 2003
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
! package org.fudaa.dodico.h2d.type;
!
! import java.util.List;
!
! import org.fudaa.dodico.commun.DodicoLib;
! import org.fudaa.dodico.commun.DodicoPermanentList;
! import org.fudaa.dodico.h2d.H2dResource;
!
! /**
! * @author deniger
! * @version $Id$
! */
! public class H2dFileFormatType extends H2dEnumType {
!
! public static final H2dFileFormatType PROJET=
! new H2dFileFormatType(0, H2dResource.getS("Projet"));
! public static final H2dFileFormatType MAILLAGE=
! new H2dFileFormatType(1, H2dResource.getS("Maillage"));
! public static final H2dFileFormatType CL=
! new H2dFileFormatType(2, H2dResource.getS("Conditions limites"));
! public static final H2dFileFormatType CL_LIQUIDE=
! new H2dFileFormatType(3, H2dResource.getS("Conditions limites liquides"));
! public static final H2dFileFormatType COURBE_TRANSITOIRE=
! new H2dFileFormatType(4, H2dResource.getS("Courbes transitoire"));
! public static final H2dFileFormatType FOND=
! new H2dFileFormatType(5, H2dResource.getS("Fond"));
!
! public static final List LIST=
! new DodicoPermanentList(
! DodicoLib.sort(
! new H2dFileFormatType[] {
! PROJET,
! MAILLAGE,
! CL,
! CL_LIQUIDE,
! COURBE_TRANSITOIRE }));
!
! /**
! * @param _id
! * @param _nom
! */
! private H2dFileFormatType(int _id, String _nom) {
! super(_id, _nom);
! }
!
! public boolean equals(H2dFileFormatType _t) {
! return _t == null ? false : (id_ == _t.id_);
! }
!
! }
--- 1 ----
! /*
* @file H2dFileFormatType.java
* @creation 14 août 2003
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.h2d.type;
import java.util.List;
import org.fudaa.dodico.commun.DodicoLib;
import org.fudaa.dodico.commun.DodicoPermanentList;
import org.fudaa.dodico.h2d.H2dResource;
/**
* @author deniger
* @version $Id$
*/
public class H2dFileFormatType extends H2dEnumType {
public static final H2dFileFormatType PROJET=
new H2dFileFormatType(0, H2dResource.getS("Projet"));
public static final H2dFileFormatType MAILLAGE=
new H2dFileFormatType(1, H2dResource.getS("Maillage"));
public static final H2dFileFormatType CL=
new H2dFileFormatType(2, H2dResource.getS("Conditions limites"));
public static final H2dFileFormatType CL_LIQUIDE=
new H2dFileFormatType(3, H2dResource.getS("Conditions limites liquides"));
public static final H2dFileFormatType COURBE_TRANSITOIRE=
new H2dFileFormatType(4, H2dResource.getS("Courbes transitoire"));
public static final H2dFileFormatType FOND=
new H2dFileFormatType(5, H2dResource.getS("Fond"));
public static final List LIST=
new DodicoPermanentList(
DodicoLib.sort(
new H2dFileFormatType[] {
PROJET,
MAILLAGE,
CL,
CL_LIQUIDE,
COURBE_TRANSITOIRE }));
/**
* @param _id
* @param _nom
*/
private H2dFileFormatType(int _id, String _nom) {
super(_id, _nom);
}
public boolean equals(H2dFileFormatType _t) {
return _t == null ? false : (id_ == _t.id_);
}
}
\ No newline at end of file
Index: H2dMethodeResolutionType.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/h2d/type/H2dMethodeResolutionType.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** H2dMethodeResolutionType.java 23 Sep 2003 19:38:22 -0000 1.3
--- H2dMethodeResolutionType.java 29 Oct 2003 11:41:27 -0000 1.4
***************
*** 1,67 ****
! /*
! * @file H2dMethodeResolution.java
! * @creation 27 juin 2003
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
! package org.fudaa.dodico.h2d.type;
!
! import java.util.Iterator;
! import java.util.List;
!
! import org.fudaa.dodico.commun.DodicoLib;
! import org.fudaa.dodico.commun.DodicoPermanentList;
! import org.fudaa.dodico.h2d.H2dResource;
!
! /**
! * @author deniger
! * @version $Id$
! */
! public class H2dMethodeResolutionType extends H2dEnumType
! {
!
! public static H2dMethodeResolutionType LINEAIRE=new H2dMethodeResolutionType(1,H2dResource.getS("Linéaire"),"LINEAIRE");
! public static H2dMethodeResolutionType NEWTON_RAPHSON=new H2dMethodeResolutionType(2,H2dResource.getS("Newton Raphson"),"NEWTON");
! public static H2dMethodeResolutionType NEWTON_RAPHSON_BCD=new H2dMethodeResolutionType(3,H2dResource.getS("Newton Raphson banc découvrant"),"NEWTON_BCD");
! public static H2dMethodeResolutionType SELECT_LUMPING=new H2dMethodeResolutionType(4,H2dResource.getS("Select Lumping"),"SELUMP");
! public static H2dMethodeResolutionType SELECT_LUMPING_BCD=new H2dMethodeResolutionType(5,H2dResource.getS("Select Lumping banc découvrant"),"SELUMP_BCD");
!
! public static final List LIST =
! new DodicoPermanentList(
! DodicoLib.sort(
! new H2dMethodeResolutionType[] { LINEAIRE,NEWTON_RAPHSON,NEWTON_RAPHSON_BCD,SELECT_LUMPING,SELECT_LUMPING_BCD }));
!
! private String refluxId_;
!
! /**
! * @param _id
! * @param _nom
! */
! public H2dMethodeResolutionType(int _id, String _nom,String _refluxId)
! {
! super(_id, _nom);
! refluxId_=_refluxId;
! }
!
! public static H2dMethodeResolutionType getTypeForRefluxId(String _id)
! {
! H2dMethodeResolutionType t;
! for(Iterator it=LIST.iterator();it.hasNext();)
! {
! t=(H2dMethodeResolutionType)it.next();
! if(t.refluxId_.equals(_id)) return t;
! }
! return null;
! }
!
!
! /**
! *
! */
! public String getRefluxId() {
! return refluxId_;
! }
!
! }
--- 1 ----
! /*
* @file H2dMethodeResolution.java
* @creation 27 juin 2003
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.h2d.type;
import java.util.Iterator;
import java.util.List;
import org.fudaa.dodico.commun.DodicoLib;
import org.fudaa.dodico.commun.DodicoPermanentList;
import org.fudaa.dodico.h2d.H2dResource;
/**
* @author deniger
* @version $Id$
*/
public class H2dMethodeResolutionType extends H2dEnumType {
public static H2dMethodeResolutionType LINEAIRE=
new H2dMethodeResolutionType(1, H2dResource.getS("Linéaire"), "LINEAIRE");
public static H2dMethodeResolutionType NEWTON_RAPHSON=
new H2dMethodeResolutionType(
2,
H2dResource.getS("Newton Raphson"),
"NEWTON");
public static H2dMethodeResolutionType NEWTON_RAPHSON_BCD=
new H2dMethodeResolutionType(
3,
H2dResource.getS("Newton Raphson banc découvrant"),
"NEWTON_BCD");
public static H2dMethodeResolutionType SELECT_LUMPING=
new H2dMethodeResolutionType(
4,
H2dResource.getS("Select Lumping"),
"SELUMP");
public static H2dMethodeResolutionType SELECT_LUMPING_BCD=
new H2dMethodeResolutionType(
5,
H2dResource.getS("Select Lumping banc découvrant"),
"SELUMP_BCD");
public static final List LIST=
new DodicoPermanentList(
DodicoLib.sort(
new H2dMethodeResolutionType[] {
LINEAIRE,
NEWTON_RAPHSON,
NEWTON_RAPHSON_BCD,
SELECT_LUMPING,
SELECT_LUMPING_BCD }));
private String refluxId_;
/**
* @param _id
* @param _nom
*/
public H2dMethodeResolutionType(int _id, String _nom, String _refluxId) {
super(_id, _nom);
refluxId_= _refluxId;
}
public static H2dMethodeResolutionType getTypeForRefluxId(String _id) {
H2dMethodeResolutionType t;
for (Iterator it= LIST.iterator(); it.hasNext();) {
t= (H2dMethodeResolutionType)it.next();
if (t.refluxId_.equals(_id))
return t;
}
return null;
}
/**
*
*/
public String getRefluxId() {
return refluxId_;
}
}
\ No newline at end of file
Index: H2dProjetType.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/h2d/type/H2dProjetType.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** H2dProjetType.java 23 Sep 2003 19:38:22 -0000 1.3
--- H2dProjetType.java 29 Oct 2003 11:41:27 -0000 1.4
***************
*** 1,72 ****
! /*
! * @file H2dProjetType.java
! * @creation 26 juin 2003
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
! package org.fudaa.dodico.h2d.type;
!
! import java.util.Iterator;
! import java.util.List;
!
! import org.fudaa.dodico.commun.DodicoLib;
! import org.fudaa.dodico.commun.DodicoPermanentList;
! import org.fudaa.dodico.h2d.H2dResource;
!
! /**
! * @author deniger
! * @version $Id$
! */
! public class H2dProjetType extends H2dEnumType
! {
!
! public static final H2dProjetType COURANTOLOGIE_2D =
! new H2dProjetType(1, H2dResource.getS("Courantologie 2D"), "VIT_NU_CON");
! public static final H2dProjetType COURANTOLOGIE_2D_LMG =
! new H2dProjetType(
! 2,
! H2dResource.getS("Courantologie 2D longueur mélange"),
! "VIT_NU_LMG");
! public static final H2dProjetType TRANSPORT =
! new H2dProjetType(3, H2dResource.getS("Transport"), "TEMPERATURE");
!
! public static final List LIST =
! new DodicoPermanentList(
! DodicoLib.sort(
! new H2dProjetType[] {
! COURANTOLOGIE_2D,
! COURANTOLOGIE_2D_LMG,
! TRANSPORT }));
!
!
! public static H2dProjetType getProjetFromRefluxId(String _s)
! {
! H2dProjetType t;
! for (Iterator it = LIST.iterator(); it.hasNext();)
! {
! t = (H2dProjetType) it.next();
! if (t.refluxId_.equals(_s))
! return t;
! }
! return null;
! }
!
! private String refluxId_;
!
! /**
! * @param _id
! * @param _nom
! */
! public H2dProjetType(int _id, String _nom, String _refluxId)
! {
! super(_id, _nom);
! refluxId_ = _refluxId;
! }
!
! public String getRefluxId(){
! return refluxId_;
! }
!
! }
--- 1 ----
! /*
* @file H2dProjetType.java
* @creation 26 juin 2003
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.h2d.type;
import java.util.Iterator;
import java.util.List;
import org.fudaa.dodico.commun.DodicoLib;
import org.fudaa.dodico.commun.DodicoPermanentList;
import org.fudaa.dodico.h2d.H2dResource;
/**
* @author deniger
* @version $Id$
*/
public class H2dProjetType extends H2dEnumType {
public static final H2dProjetType COURANTOLOGIE_2D=
new H2dProjetType(1, H2dResource.getS("Courantologie 2D"), "VIT_NU_CON");
public static final H2dProjetType COURANTOLOGIE_2D_LMG=
new H2dProjetType(
2,
H2dResource.getS("Courantologie 2D longueur mélange"),
"VIT_NU_LMG");
public static final H2dProjetType TRANSPORT=
new H2dProjetType(3, H2dResource.getS("Transport"), "TEMPERATURE");
public static final List LIST=
new DodicoPermanentList(
DodicoLib.sort(
new H2dProjetType[] {
COURANTOLOGIE_2D,
COURANTOLOGIE_2D_LMG,
TRANSPORT }));
public static H2dProjetType getProjetFromRefluxId(String _s) {
H2dProjetType t;
for (Iterator it= LIST.iterator(); it.hasNext();) {
t= (H2dProjetType)it.next();
if (t.refluxId_.equals(_s))
return t;
}
return null;
}
private String refluxId_;
/**
* @param _id
* @param _nom
*/
public H2dProjetType(int _id, String _nom, String _refluxId) {
super(_id, _nom);
refluxId_= _refluxId;
}
public String getRefluxId() {
return refluxId_;
}
}
\ No newline at end of file
Index: H2dSchemaResolutionType.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/h2d/type/H2dSchemaResolutionType.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** H2dSchemaResolutionType.java 23 Sep 2003 19:38:22 -0000 1.3
--- H2dSchemaResolutionType.java 29 Oct 2003 11:41:27 -0000 1.4
***************
*** 1,75 ****
! /*
! * @file H2dSchemaResolutionType.java
! * @creation 27 juin 2003
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
! package org.fudaa.dodico.h2d.type;
!
! import java.util.Iterator;
! import java.util.List;
!
! import org.fudaa.dodico.commun.DodicoLib;
! import org.fudaa.dodico.commun.DodicoPermanentList;
! import org.fudaa.dodico.h2d.H2dResource;
!
! /**
! * @author deniger
! * @version $Id$
! */
!
! public class H2dSchemaResolutionType extends H2dEnumType
! {
!
! public static H2dSchemaResolutionType STATIONNAIRE =
! new H2dSchemaResolutionType(
! 1,
! H2dResource.getS("Stationnaire"),
! "STATIONNAIRE",new H2dMethodeResolutionType[]{H2dMethodeResolutionType.SELECT_LUMPING,H2dMethodeResolutionType.SELECT_LUMPING_BCD,H2dMethodeResolutionType.NEWTON_RAPHSON,H2dMethodeResolutionType.NEWTON_RAPHSON_BCD,H2dMethodeResolutionType.LINEAIRE});
! public static H2dSchemaResolutionType KAWAHARA =
! new H2dSchemaResolutionType(2, H2dResource.getS("Kawahara"), "SELUMP",new H2dMethodeResolutionType[]{H2dMethodeResolutionType.SELECT_LUMPING,H2dMethodeResolutionType.SELECT_LUMPING_BCD});
! public static H2dSchemaResolutionType EULER =
! new H2dSchemaResolutionType(2, H2dResource.getS("Euler"), "EULER",new H2dMethodeResolutionType[]{H2dMethodeResolutionType.NEWTON_RAPHSON,H2dMethodeResolutionType.NEWTON_RAPHSON_BCD,H2dMethodeResolutionType.LINEAIRE});
!
! public static final List LIST =
! new DodicoPermanentList(
! DodicoLib.sort(
! new H2dSchemaResolutionType[] { STATIONNAIRE, KAWAHARA, EULER }));
!
! public static H2dSchemaResolutionType getTypeForRefluxId(String _id)
! {
! H2dSchemaResolutionType t;
! for(Iterator it=LIST.iterator();it.hasNext();)
! {
! t=(H2dSchemaResolutionType)it.next();
! if(t.refluxId_.equals(_id)) return t;
! }
! return null;
! }
!
!
! String refluxId_;
! DodicoPermanentList methodeList_;
! /**
! * @param _id
! * @param _nom
! */
! public H2dSchemaResolutionType(int _id, String _nom, String refluxId, H2dMethodeResolutionType[] _methode)
! {
! super(_id, _nom);
! refluxId_ = refluxId;
! methodeList_=new DodicoPermanentList(_methode);
! }
!
! public boolean isSupported(H2dMethodeResolutionType _methode)
! {
! return methodeList_.contains(_methode);
! }
!
! public String getRefluxId(){
! return refluxId_;
! }
!
! }
--- 1 ----
! /*
* @file H2dSchemaResolutionType.java
* @creation 27 juin 2003
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.h2d.type;
import java.util.Iterator;
import java.util.List;
import org.fudaa.dodico.commun.DodicoLib;
import org.fudaa.dodico.commun.DodicoPermanentList;
import org.fudaa.dodico.h2d.H2dResource;
/**
* @author deniger
* @version $Id$
*/
public class H2dSchemaResolutionType extends H2dEnumType {
public static H2dSchemaResolutionType STATIONNAIRE=
new H2dSchemaResolutionType(
1,
H2dResource.getS("Stationnaire"),
"STATIONNAIRE",
new H2dMethodeResolutionType[] {
H2dMethodeResolutionType.SELECT_LUMPING,
H2dMethodeResolutionType.SELECT_LUMPING_BCD,
H2dMethodeResolutionType.NEWTON_RAPHSON,
H2dMethodeResolutionType.NEWTON_RAPHSON_BCD,
H2dMethodeResolutionType.LINEAIRE });
public static H2dSchemaResolutionType KAWAHARA=
new H2dSchemaResolutionType(
2,
H2dResource.getS("Kawahara"),
"SELUMP",
new H2dMethodeResolutionType[] {
H2dMethodeResolutionType.SELECT_LUMPING,
H2dMethodeResolutionType.SELECT_LUMPING_BCD });
public static H2dSchemaResolutionType EULER=
new H2dSchemaResolutionType(
3,
H2dResource.getS("Euler"),
"EULER",
new H2dMethodeResolutionType[] {
H2dMethodeResolutionType.NEWTON_RAPHSON,
H2dMethodeResolutionType.NEWTON_RAPHSON_BCD,
H2dMethodeResolutionType.LINEAIRE });
public static final List LIST=
new DodicoPermanentList(
DodicoLib.sort(
new H2dSchemaResolutionType[] { STATIONNAIRE, KAWAHARA, EULER }));
public static H2dSchemaResolutionType getTypeForRefluxId(String _id) {
H2dSchemaResolutionType t;
for (Iterator it= LIST.iterator(); it.hasNext();) {
t= (H2dSchemaResolutionType)it.next();
if (t.refluxId_.equals(_id))
return t;
}
return null;
}
String refluxId_;
DodicoPermanentList methodeList_;
/**
* @param _id
* @param _nom
*/
public H2dSchemaResolutionType(
int _id,
String _nom,
String refluxId,
H2dMethodeResolutionType[] _methode) {
super(_id, _nom);
refluxId_= refluxId;
methodeList_= new DodicoPermanentList(_methode);
}
public boolean isSupported(H2dMethodeResolutionType _methode) {
return methodeList_.contains(_methode);
}
public String getRefluxId() {
return refluxId_;
}
}
\ No newline at end of file
Index: H2dVariableType.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/h2d/type/H2dVariableType.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** H2dVariableType.java 23 Sep 2003 19:38:22 -0000 1.2
--- H2dVariableType.java 29 Oct 2003 11:41:27 -0000 1.3
***************
*** 1,101 ****
! /*
! * @file H2dVariable.java
! * @creation 25 juin 2003
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
! package org.fudaa.dodico.h2d.type;
!
! import java.util.Iterator;
! import java.util.List;
!
! import org.fudaa.dodico.commun.DodicoLib;
! import org.fudaa.dodico.commun.DodicoPermanentList;
! import org.fudaa.dodico.commun.DodicoResource;
!
! /**
! * @author deniger
! * @version $Id$
! */
! public class H2dVariableType extends H2dEnumType
! {
! public static final H2dVariableType DEBIT =
! new H2dVariableType(1, DodicoResource.getS("Débit"), "Q");
! public static final H2dVariableType COTE_EAU =
! new H2dVariableType(2, DodicoResource.getS("Côte eau"), "SL");
! public static final H2dVariableType TRACEUR =
! new H2dVariableType(5, DodicoResource.getS("Traceur"), "T");
! public static final H2dVariableType VITESSE_U =
! new H2dVariableType(3, DodicoResource.getS("Vitesse u"), "U");
! public static final H2dVariableType VITESSE_V =
! new H2dVariableType(4, DodicoResource.getS("Vitesse v"), "V");
! public static final H2dVariableType RUGOSITE =
! new H2dVariableType(4, DodicoResource.getS("Rugosité"), null);
! public static final H2dVariableType VISCOSITE =
! new H2dVariableType(4, DodicoResource.getS("Viscosité"), null);
! public static final H2dVariableType PERTE_CHARGE =
! new H2dVariableType(4, DodicoResource.getS("Perte de charge"), null);
! public static final H2dVariableType ALPHA_LONGUEUR_MELANGE =
! new H2dVariableType(4, DodicoResource.getS("Alpha longueur mélange"), null);
!
! private static List LIST_TELEMAC =null;
! private static List LIST_REFLUX =null;
!
! public static List LIST_TELEMAC()
! {
! if(LIST_TELEMAC==null) LIST_TELEMAC = new DodicoPermanentList(DodicoLib.sort(new H2dVariableType[] { DEBIT, COTE_EAU, TRACEUR, VITESSE_U, VITESSE_V }));
! return LIST_TELEMAC;
! }
!
! public static List LIST_REFLUX()
! {
! if(LIST_REFLUX==null) LIST_REFLUX = new DodicoPermanentList(DodicoLib.sort(new H2dVariableType[] { ALPHA_LONGUEUR_MELANGE,RUGOSITE,VISCOSITE,PERTE_CHARGE }));
! return LIST_REFLUX;
! }
!
! private String telemacID_;
!
! /**
! *
! */
! private H2dVariableType(int _id, String _nom, String _telemacID)
! {
! super(_id,_nom);
! telemacID_ = _telemacID;
! }
!
! public String getTelemacID()
! {
! return telemacID_;
! }
!
! public boolean equals(H2dVariableType _o)
! {
! return equalsVariable(_o);
! }
!
! public boolean equalsVariable(H2dVariableType _o)
! {
! return _o==null?false:(_o.id_==id_);
! }
!
! public static H2dVariableType getVariableForTelemacId(String _s)
! {
! for (Iterator it = LIST_TELEMAC().iterator(); it.hasNext();)
! {
! H2dVariableType v = (H2dVariableType) it.next();
! if (_s.equals(v.telemacID_))
! return v;
! }
! return null;
! }
!
!
! public static void main(String[] args)
! {
! DodicoLib.printObject(LIST_TELEMAC(),true);
! }
!
! }
--- 1 ----
! /*
* @file H2dVariable.java
* @creation 25 juin 2003
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.h2d.type;
import java.util.Iterator;
import java.util.List;
import org.fudaa.dodico.commun.DodicoLib;
import org.fudaa.dodico.commun.DodicoPermanentList;
import org.fudaa.dodico.commun.DodicoResource;
/**
* @author deniger
* @version $Id$
*/
public class H2dVariableType extends H2dEnumType {
public static final H2dVariableType DEBIT=
new H2dVariableType(1, DodicoResource.getS("Débit"), "Q");
public static final H2dVariableType COTE_EAU=
new H2dVariableType(2, DodicoResource.getS("Côte eau"), "SL");
public static final H2dVariableType TRACEUR=
new H2dVariableType(3, DodicoResource.getS("Traceur"), "T");
public static final H2dVariableType VITESSE_U=
new H2dVariableType(4, DodicoResource.getS("Vitesse u"), "U");
public static final H2dVariableType VITESSE_V=
new H2dVariableType(5, DodicoResource.getS("Vitesse v"), "V");
public static final H2dVariableType RUGOSITE=
new H2dVariableType(6, DodicoResource.getS("Rugosité"), null);
public static final H2dVariableType VISCOSITE=
new H2dVariableType(7, DodicoResource.getS("Viscosité"), null);
public static final H2dVariableType PERTE_CHARGE=
new H2dVariableType(8, DodicoResource.getS("Perte de charge"), null);
public static final H2dVariableType ALPHA_LONGUEUR_MELANGE=
new H2dVariableType(9, DodicoResource.getS("Alpha longueur mélange"), null);
public static final H2dVariableType VITESSE=
new H2dVariableType(10, DodicoResource.getS("Vitesse"), null);
private static List LIST_TELEMAC= null;
private static List LIST_REFLUX= null;
public static List LIST_TELEMAC() {
if (LIST_TELEMAC == null)
LIST_TELEMAC=
new DodicoPermanentList(
DodicoLib.sort(
new H2dVariableType[] {
DEBIT,
COTE_EAU,
TRACEUR,
VITESSE_U,
VITESSE_V }));
return LIST_TELEMAC;
}
public static List LIST_REFLUX() {
if (LIST_REFLUX == null)
LIST_REFLUX=
new DodicoPermanentList(
DodicoLib.sort(
new H2dVariableType[] {
ALPHA_LONGUEUR_MELANGE,
RUGOSITE,
VISCOSITE,
PERTE_CHARGE }));
return LIST_REFLUX;
}
private String telemacID_;
/**
*
*/
private H2dVariableType(int _id, String _nom, String _telemacID) {
super(_id, _nom);
telemacID_= _telemacID;
}
public String getTelemacID() {
return telemacID_;
}
public boolean equals(H2dVariableType _o) {
return equalsVariable(_o);
}
public boolean equalsVariable(H2dVariableType _o) {
return _o == null ? false : (_o.id_ == id_);
}
public static H2dVariableType getVariableForTelemacId(String _s) {
for (Iterator it= LIST_TELEMAC().iterator(); it.hasNext();) {
H2dVariableType v= (H2dVariableType)it.next();
if (_s.equals(v.telemacID_))
return v;
}
return null;
}
public static void main(String[] args) {
DodicoLib.printObject(LIST_TELEMAC(), true);
}
}
\ No newline at end of file
|
|
From: <de...@us...> - 2003-10-29 11:41:31
|
Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/test/h2d
In directory sc8-pr-cvs1:/tmp/cvs-serv13994/test/h2d
Modified Files:
TestBord.java
Log Message:
Ajout du pattern command pour annuler des operations
Index: TestBord.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/test/h2d/TestBord.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TestBord.java 23 Sep 2003 20:22:11 -0000 1.2
--- TestBord.java 29 Oct 2003 11:41:28 -0000 1.3
***************
*** 1,67 ****
! /*
! * @file TestBord.java
! * @creation 25 août 2003
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
! package org.fudaa.dodico.test.h2d;
!
! import org.fudaa.dodico.h2d.H2dBord;
! import org.fudaa.dodico.h2d.H2dBordMutable;
!
! import junit.framework.TestCase;
!
! /**
! * @author deniger
! * @version $Id$
! */
! public class TestBord extends TestCase {
!
! /**
! *
! */
! public TestBord() {
! super();
! }
!
! public void testBordIdx() {
! H2dBordMutable b= new H2dBordMutable();
! b.setIdxDeb(0);
! b.setIdxFin(5);
! int nb= 10;
! assertEquals(6, b.getNPointInBord(nb));
! H2dBord.BordIndexIterator it= b.createIterator(nb);
!
! for (int i= 0; i < 6; i++) {
! assertTrue(it.hasNext());
! assertEquals(i, it.next());
! }
! assertFalse(it.hasNext());
! b.setIdxDeb(0);
! b.setIdxFin(0);
! it= b.createIterator(nb);
! for (int i= 0; i < 10; i++) {
! assertTrue(it.hasNext());
! assertEquals(i, it.next());
! }
! assertFalse(it.hasNext());
! b.setIdxDeb(8);
! b.setIdxFin(0);
! it= b.createIterator(nb);
! assertTrue(it.hasNext());
! assertEquals(8, it.next());
! assertTrue(it.hasNext());
! assertEquals(9, it.next());
! assertTrue(it.hasNext());
! assertEquals(0, it.next());
! assertFalse(it.hasNext());
! // assertTrue(it.hasNext());
! // assertEquals(1, it.next());
! // assertTrue(it.hasNext());
! // assertEquals(2, it.next());
!
! }
!
! }
--- 1 ----
! /*
* @file TestBord.java
* @creation 25 août 2003
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.test.h2d;
import junit.framework.TestCase;
import org.fudaa.dodico.h2d.H2dBord;
import org.fudaa.dodico.h2d.H2dBordMutable;
import org.fudaa.dodico.h2d.telemac.H2dTelemacBord;
import org.fudaa.dodico.h2d.telemac.H2dTelemacBordMutable;
import org.fudaa.dodico.h2d.type.H2dBordType;
/**
* @author deniger
* @version $Id$
*/
public class TestBord extends TestCase {
/**
*
*/
public TestBord() {
super();
}
public void testBordIdx() {
H2dBordMutable b= new H2dBordMutable();
b.setIdxDeb(0);
b.setIdxFin(5);
int nb= 10;
assertEquals(6, b.getNPointInBord(nb));
H2dBord.BordIndexIterator it= b.createIterator(nb);
for (int i= 0; i < 6; i++) {
assertTrue(it.hasNext());
assertEquals(i, it.next());
}
assertFalse(it.hasNext());
b.setIdxDeb(0);
b.setIdxFin(0);
it= b.createIterator(nb);
for (int i= 0; i < 10; i++) {
assertTrue(it.hasNext());
assertEquals(i, it.next());
}
assertFalse(it.hasNext());
b.setIdxDeb(8);
b.setIdxFin(0);
it= b.createIterator(nb);
assertTrue(it.hasNext());
assertEquals(8, it.next());
assertTrue(it.hasNext());
assertEquals(9, it.next());
assertTrue(it.hasNext());
assertEquals(0, it.next());
assertFalse(it.hasNext());
b.setIdxDeb(0);
b.setIdxFin(5);
assertTrue(b.containsIdx(0));
assertTrue(b.containsIdx(1));
assertTrue(b.containsIdx(2));
assertTrue(b.containsIdx(5));
assertFalse(b.containsIdx(6));
assertFalse(b.containsIdx(-1));
b.setIdxDeb(10);
b.setIdxFin(1);
assertTrue(b.containsIdx(1));
assertTrue(b.containsIdx(0));
assertTrue(b.containsIdx(10));
assertTrue(b.containsIdx(1111111));
assertFalse(b.containsIdx(2));
assertFalse(b.containsIdx(3));
assertEquals(3, b.getNPointInBord(11));
b.setIdxDeb(0);
b.setIdxFin(0);
assertTrue(b.containsZeroIndex());
b.setIdxFin(1);
assertTrue(b.containsZeroIndex());
b.setIdxDeb(100);
assertTrue(b.containsZeroIndex());
b.setIdxFin(0);
assertTrue(b.containsZeroIndex());
b.setIdxDeb(5);
b.setIdxFin(6);
assertFalse(b.containsZeroIndex());
}
public void testTelemacIntersection() {
H2dTelemacBordMutable b= new H2dTelemacBordMutable();
b.setIdxDeb(12);
b.setIdxFin(16);
assertTrue(b.isBeginIdxSelected(12, 12));
assertTrue(b.isBeginIdxSelected(0, 14));
assertTrue(b.isBeginIdxSelected(50, 13));
assertFalse(b.isBeginIdxSelected(50, 10));
assertFalse(b.isBeginIdxSelected(10, 11));
assertFalse(b.isBeginIdxSelected(13, 130));
int nbP= 20;
b.setType(H2dBordType.LIQUIDE_DEBIT_IMPOSE);
assertEquals(-1, b.isIntersectBy(0, 11, nbP));
assertEquals(0, b.isIntersectBy(0, 12, nbP));
assertEquals(1, b.isIntersectBy(13, 14, nbP));
assertEquals(2, b.isIntersectBy(12, 16, nbP));
assertEquals(2, b.isIntersectBy(12, 17, nbP));
assertEquals(2, b.isIntersectBy(19, 16, nbP));
assertEquals(0, b.isIntersectBy(19, 15, nbP));
assertEquals(-1, b.isIntersectBy(19, 11, nbP));
b.setType(H2dBordType.SOLIDE);
assertEquals(-1, b.isIntersectBy(0, 12, nbP));
assertEquals(0, b.isIntersectBy(13, 14, nbP));
assertEquals(1, b.isIntersectBy(14, 14, nbP));
assertEquals(2, b.isIntersectBy(19, 15, nbP));
assertEquals(-1, b.isIntersectBy(19, 12, nbP));
b.setIdxDeb(16);
b.setIdxFin(5);
b.setType(H2dBordType.LIQUIDE_DEBIT_IMPOSE);
assertEquals(-1, b.isIntersectBy(6, 15, nbP));
assertEquals(0, b.isIntersectBy(4, 12, nbP));
assertEquals(1, b.isIntersectBy(0, 4, nbP));
assertEquals(1, b.isIntersectBy(17, 4, nbP));
assertEquals(2, b.isIntersectBy(15, 6, nbP));
b.setType(H2dBordType.SOLIDE);
assertEquals(-1, b.isIntersectBy(5, 16, nbP));
assertEquals(0, b.isIntersectBy(4, 14, nbP));
assertEquals(0, b.isIntersectBy(18, 9, nbP));
assertEquals(1, b.isIntersectBy(19, 3, nbP));
assertEquals(2, b.isIntersectBy(16, 5, nbP));
}
}
\ No newline at end of file
|
|
From: <de...@us...> - 2003-10-29 11:41:31
|
Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/test
In directory sc8-pr-cvs1:/tmp/cvs-serv13994/test
Modified Files:
FortranReaderTest.java
Added Files:
TestCommandManager.java
Log Message:
Ajout du pattern command pour annuler des operations
--- NEW FILE: TestCommandManager.java ---
/*
* @file TestCommandManager.java
* @creation 21 oct. 2003
* @modification $Date: 2003/10/29 11:41:28 $
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.test;
import org.fudaa.dodico.commun.DodicoCommand;
import org.fudaa.dodico.commun.DodicoCommandManager;
import junit.framework.TestCase;
/**
* @author deniger
* @version $Id: TestCommandManager.java,v 1.1 2003/10/29 11:41:28 deniger Exp $
*/
public class TestCommandManager extends TestCase {
/**
*
*/
public TestCommandManager() {}
public void testCmdManager() {
int max= 6;
DodicoCommandManager mng= new DodicoCommandManager(max);
assertEquals(max, mng.getNbMaxCmd());
assertFalse(mng.canRedo());
assertFalse(mng.canUndo());
testCommand[] cmds= new testCommand[5];
cmds[0]= createDodicoCommand();
mng.addCmd(cmds[0]);
assertFalse(mng.canRedo());
assertTrue(mng.canUndo());
assertFalse(mng.isACommandUndo());
mng.undo();
assertTrue(mng.canRedo());
assertFalse(mng.canUndo());
assertTrue(mng.isACommandUndo());
mng.redo();
assertFalse(mng.canRedo());
assertTrue(mng.canUndo());
assertFalse(mng.isACommandUndo());
for (int i= 1; i < cmds.length; i++) {
cmds[i]= createDodicoCommand();
mng.addCmd(cmds[i]);
}
assertEquals(cmds.length, mng.getNbCmd());
mng.undo();
assertTrue(cmds[cmds.length - 1].undo_);
mng.redo();
assertFalse(cmds[cmds.length - 1].undo_);
mng.undo();
assertTrue(cmds[cmds.length - 1].undo_);
mng.undo();
assertTrue(mng.isUndo(cmds.length - 2));
assertTrue(mng.isUndo(cmds[cmds.length - 2]));
assertTrue(cmds[cmds.length - 2].undo_);
mng.redo();
assertFalse(cmds[cmds.length - 2].undo_);
assertTrue(cmds[cmds.length - 1].undo_);
assertTrue(mng.isUndo(cmds.length - 1));
assertTrue(mng.isUndo(cmds[cmds.length - 1]));
mng.undo();
mng.addCmd(createDodicoCommand());
assertEquals(cmds.length - 1, mng.getNbCmd());
mng.addCmd(createDodicoCommand());
mng.addCmd(createDodicoCommand());
assertEquals(max, mng.getNbCmd());
mng.addCmd(createDodicoCommand());
assertEquals(max, mng.getNbCmd());
assertFalse(mng.containsCmd(cmds[0]));
assertTrue(mng.containsCmd(cmds[1]));
mng.addCmd(createDodicoCommand());
assertFalse(mng.containsCmd(cmds[1]));
}
public testCommand createDodicoCommand() {
return new testCommand();
}
private class testCommand implements DodicoCommand {
boolean undo_;
public void undo() {
undo_= true;
}
public void redo() {
undo_= false;
}
}
}
Index: FortranReaderTest.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/test/FortranReaderTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** FortranReaderTest.java 23 Sep 2003 20:22:11 -0000 1.3
--- FortranReaderTest.java 29 Oct 2003 11:41:28 -0000 1.4
***************
*** 1,58 ****
! /*
! * @file FortranReaderTest.java
! * @creation 2002-06-28
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
!
! package org.fudaa.dodico.test;
!
! import java.io.File;
! import java.io.FileReader;
!
! import org.fudaa.dodico.fortran.FortranReader;
!
! /**
! *
! * @version $Id$
! * @author Fred Deniger
! */
! public class FortranReaderTest
! {
!
! public static void main(String[] args)
! {
! try
! {
! String s=FortranReaderTest.class.getResource("fichierTest.txt").getFile();
! System.out.println("fichier "+s);
! FortranReader f=new FortranReader(new FileReader(new File(s)));
! System.out.println("fichier trouve");
! int NB=7;
! for(int i=0;i<NB;i++)
! {
! f.readFieldsOld();
! for(int j=0;j<f.getNumberOfFields();j++)
! System.out.print("\""+f.stringField(j)+"\""+" ");
! System.out.println("");
! }
! System.out.println("nouvelle Version");
! f=new FortranReader(new FileReader(new File(s)));
! for(int i=0;i<NB;i++)
! {
! f.readFields();
! for(int j=0;j<f.getNumberOfFields();j++)
! System.out.print("\""+f.stringField(j)+"\""+" ");
! System.out.println("");
! }
! }
! catch(Exception e)
! {
! System.out.println(e);
! }
! }
!
! }
!
--- 1 ----
! /*
* @file FortranReaderTest.java
* @creation 2002-06-28
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.test;
import java.io.File;
import java.io.FileReader;
import org.fudaa.dodico.fortran.FortranReader;
/**
*
* @version $Id$
* @author Fred Deniger
*/
public class FortranReaderTest {
public static void main(String[] args) {
try {
String s=
FortranReaderTest.class.getResource("fichierTest.txt").getFile();
System.out.println("fichier " + s);
FortranReader f= new FortranReader(new FileReader(new File(s)));
System.out.println("fichier trouve");
int NB= 7;
for (int i= 0; i < NB; i++) {
f.readFieldsOld();
for (int j= 0; j < f.getNumberOfFields(); j++)
System.out.print("\"" + f.stringField(j) + "\"" + " ");
System.out.println("");
}
System.out.println("nouvelle Version");
f= new FortranReader(new FileReader(new File(s)));
for (int i= 0; i < NB; i++) {
f.readFields();
for (int j= 0; j < f.getNumberOfFields(); j++)
System.out.print("\"" + f.stringField(j) + "\"" + " ");
System.out.println("");
}
} catch (Exception e) {
System.out.println(e);
}
}
}
\ No newline at end of file
|
|
From: <de...@us...> - 2003-10-29 11:41:31
|
Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/telemac/dico
In directory sc8-pr-cvs1:/tmp/cvs-serv13994/telemac/dico
Modified Files:
DicoTelemac2dv5p3.java
Log Message:
Ajout du pattern command pour annuler des operations
Index: DicoTelemac2dv5p3.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/telemac/dico/DicoTelemac2dv5p3.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** DicoTelemac2dv5p3.java 10 Oct 2003 14:43:19 -0000 1.2
--- DicoTelemac2dv5p3.java 29 Oct 2003 11:41:27 -0000 1.3
***************
*** 4244,4252 ****
choiceKeys=new String[]{"1","2","3"};
choiceValues=new String[][] {{"Profil normal constant","u et v dans le fichier"
! +"\nconlim","Vitesse normale donnee dans ubor dans le fichier"
! +"\nconlim"}
! ,{"constant normal profile","u et v dans le fichier"
! +"\nconlim","Vitesse normale donnee dans ubor dans le fichier"
! +"\nconlim"} };
typeEntier.setChoice(choiceKeys,choiceValues[languageIndex_]);
--- 4244,4252 ----
choiceKeys=new String[]{"1","2","3"};
choiceValues=new String[][] {{"Profil normal constant","u et v dans le fichier"
! +"\n conlim","Vitesse normale donnee dans ubor dans le fichier"
! +"\n conlim"}
! ,{"constant normal profile","u and v given in the"
! +"\n conlim file","normal velocity given in ubor in the conlim"
! +"\n file"} };
typeEntier.setChoice(choiceKeys,choiceValues[languageIndex_]);
|
Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/h2d/reflux
In directory sc8-pr-cvs1:/tmp/cvs-serv13994/h2d/reflux
Modified Files:
H2dRefluxCLManager.java H2dRefluxParametres.java
Added Files:
H2dRefluxCLListener.java H2dRefluxProjectListener.java
Log Message:
Ajout du pattern command pour annuler des operations
--- NEW FILE: H2dRefluxCLListener.java ---
/*
* @file H2dRefluxCLListener.java
* @creation 23 oct. 2003
* @modification $Date: 2003/10/29 11:41:27 $
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.h2d.reflux;
import org.fudaa.dodico.h2d.H2dClListener;
/**
* @author deniger
* @version $Id: H2dRefluxCLListener.java,v 1.1 2003/10/29 11:41:27 deniger Exp $
*/
public interface H2dRefluxCLListener extends H2dClListener {}
--- NEW FILE: H2dRefluxProjectListener.java ---
/*
* @file H2dRefluxProjectListener.java
* @creation 23 oct. 2003
* @modification $Date: 2003/10/29 11:41:27 $
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.h2d.reflux;
import org.fudaa.dodico.h2d.H2dProjectListener;
/**
* @author deniger
* @version $Id: H2dRefluxProjectListener.java,v 1.1 2003/10/29 11:41:27 deniger Exp $
*/
public interface H2dRefluxProjectListener extends H2dProjectListener,H2dRefluxCLListener {}
Index: H2dRefluxCLManager.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/h2d/reflux/H2dRefluxCLManager.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** H2dRefluxCLManager.java 8 Oct 2003 11:53:08 -0000 1.3
--- H2dRefluxCLManager.java 29 Oct 2003 11:41:27 -0000 1.4
***************
*** 1 ****
! /*
* @file H2dRefluxBordManager.java
* @creation 21 août 2003
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.h2d.reflux;
import gnu.trove.TIntObjectHashMap;
import java.util.ArrayList;
import java.util.List;
import org.fudaa.dodico.commun.DodicoAnalyze;
import org.fudaa.dodico.commun.DodicoLib;
import org.fudaa.dodico.h2d.H2dBord;
import org.fudaa.dodico.h2d.H2dBordMutable;
import org.fudaa.dodico.h2d.H2dBorderPerFrontierInterface;
import org.fudaa.dodico.h2d.H2dCLManagerAbstract;
import org.fudaa.dodico.h2d.H2dConditionLimite;
import org.fudaa.dodico.h2d.H2dEvolution;
import org.fudaa.dodico.h2d.H2dMaillage;
import org.fudaa.dodico.h2d.H2dMaillageFrontiere;
import org.fudaa.dodico.h2d.H2dResource;
import org.fudaa.dodico.h2d.type.H2dBordType;
import org.fudaa.dodico.h2d.type.H2dClType;
/**
* @author deniger
* @version $Id$
*/
public class H2dRefluxCLManager extends H2dCLManagerAbstract {
H2dRefluxConditionLimite[] cls_;
/**
*
*/
protected H2dRefluxCLManager(
H2dMaillage _m,
RefluxBordParFrontiere[] _borders,
H2dRefluxConditionLimite[] _cls) {
super(_m, _borders);
cls_= _cls;
}
public H2dRefluxConditionLimite getRefluxCL(int _bordIdx) {
return cls_[_bordIdx];
}
public H2dRefluxConditionLimite[] getRefluxClTableau() {
H2dRefluxConditionLimite[] r= new H2dRefluxConditionLimite[cls_.length];
System.arraycopy(cls_, 0, r, 0, cls_.length);
return r;
}
public H2dRefluxBordIndexGeneral[] getRefluxBord() {
int n= bordByFrontier_.length;
ArrayList r= new ArrayList();
for (int i= 0; i < n; i++) {
r.addAll(
(
(
RefluxBordParFrontiere)bordByFrontier_[i])
.getRefluxIndexGeneralBords(
this,
i));
}
n= r.size();
if (n > 0) {
H2dRefluxBordIndexGeneral[] rfinal= new H2dRefluxBordIndexGeneral[n];
r.toArray(rfinal);
return rfinal;
}
return null;
}
public RefluxBordParFrontiere getRefluxBorderByFrontier(int _idxGeneral) {
return (RefluxBordParFrontiere)getBordPerFrontier(_idxGeneral);
}
public static H2dRefluxCLManager init(
H2dMaillage _maillage,
H2dRefluxBordIndexGeneral[] _bordInit,
H2dRefluxConditionLimite[] _cls,
DodicoAnalyze.Editor _analyze) {
H2dMaillageFrontiere frontieres= _maillage.getPtsFrontiere();
int nbPointFrontiere=frontieres.getNbTotalPt();
//les cls
if (nbPointFrontiere != _cls.length) {
_analyze.addError(
H2dResource.getS("Des conditions limites ne sont pas spécifiées"));
}
H2dRefluxConditionLimite[] cls=
new H2dRefluxConditionLimite[nbPointFrontiere];
int idxPt;
for (H2dMaillageFrontiere.FrontiereIdxIterator it=frontieres.getFrontierIterator();it.hasNext();) {
idxPt= it.next();
H2dRefluxConditionLimite cl=
(H2dRefluxConditionLimite)H2dConditionLimite.getCLFast(idxPt, _cls);
if (cl == null) {
if (_analyze != null)
_analyze.addError(
H2dResource.getS(
"Pas de cl pour le point de bord {0}",
DodicoLib.getString(it.getBoundaryIdx())));
H2dRefluxConditionLimiteMutable clN=
new H2dRefluxConditionLimiteMutable();
clN.setIndexPt(idxPt);
cls[it.getBoundaryIdx()]= clN;
} else {
cls[it.getBoundaryIdx()]= cl;
}
}
int ptId;
H2dBordMutable bordEnCours= null;
H2dBordMutable firstBord= null;
RefluxBordParFrontiere[] bordByFrontier=
new RefluxBordParFrontiere[frontieres.getNbFrontier()];
//le nb de frontiere
int n= frontieres.getNbFrontier();
//Si des bords sont specifie on traite le tout. Sinon que des bords uniques
if (_bordInit != null) {
for (int i= 0; i < n; i++) {
ArrayList bords= new ArrayList();
TIntObjectHashMap indexPtMilieuRugosite= new TIntObjectHashMap();
bordEnCours= null;
firstBord= null;
int nbPt= frontieres.getNbPt(i);
//On prend que les points milieux.
for (int j= 1; j < nbPt; j += 2) {
ptId= frontieres.getIdx(i, j);
H2dRefluxBordIndexGeneral bord=
H2dRefluxBordIndexGeneral.findBordWithIndex(ptId, _bordInit);
H2dBordType bordType=
bord == null ? H2dBordType.SOLIDE : bord.getBord();
if (bordType == H2dBordType.SOLIDE_FROTTEMENT) {
System.err.println("friction boundary found");
indexPtMilieuRugosite.put(
j,
new BordRugositeValeurs(
bord.getRugositeType(),
bord.getRugosite(),
bord.getRugositeTransitoireCourbe()));
}
if (bordEnCours == null) {
bordEnCours= new H2dBordMutable();
bordEnCours.setIdxmaillageFrontiere(i);
bordEnCours.setIdxDeb(j - 1);
bordEnCours.setIdxFin(j + 1);
bordEnCours.setType(bordType);
firstBord= bordEnCours;
bords.add(bordEnCours);
} else {
if (bordType == bordEnCours.getType()) {
bordEnCours.setIdxFin(j + 1);
} else {
bordEnCours= new H2dBordMutable();
bordEnCours.setIdxmaillageFrontiere(i);
bordEnCours.setIdxDeb(j - 1);
bordEnCours.setIdxFin(j + 1);
bordEnCours.setType(bordType);
bords.add(bordEnCours);
}
}
}
if (bordEnCours.getIdxFin() != nbPt) {
if (_analyze != null) {
_analyze.addFatalError(
H2dResource.getS(
"Détermination des bords impossible :erreur dans les indexs"));
}
new Throwable().printStackTrace();
return null;
} else {
bordEnCours.setIdxFin(0);
}
if ((bordEnCours != firstBord)
&& (bordEnCours.getType() == firstBord.getType())) {
firstBord.setIdxDeb(bordEnCours.getIdxDeb());
bords.remove(bordEnCours);
}
bordByFrontier[i]=
new RefluxBordParFrontiere(bords, i, indexPtMilieuRugosite);
}
//bord unique
} else {
for (int i= 0; i < n; i++) {
bordByFrontier[i]=
new RefluxBordParFrontiere(createBordDefautUniqueBord(), i);
}
}
return new H2dRefluxCLManager(_maillage, bordByFrontier, cls);
}
private static H2dBordMutable createBordDefautUniqueBord() {
H2dBordMutable r= new H2dBordMutable();
r.setIdxDeb(0);
r.setIdxFin(0);
r.setType(H2dBordType.SOLIDE);
return r;
}
public static class RefluxBordParFrontiere
implements H2dBorderPerFrontierInterface {
private ArrayList bords_;
private int maillageBordIdx_;
private TIntObjectHashMap indexMilieuRugosite_;
protected RefluxBordParFrontiere(
ArrayList _bords,
int _maillageindex,
TIntObjectHashMap _indexPtMilieuRugosite) {
bords_= _bords;
maillageBordIdx_= _maillageindex;
if ((_indexPtMilieuRugosite != null)
&& (_indexPtMilieuRugosite.size() > 0)) {
indexMilieuRugosite_= _indexPtMilieuRugosite;
}
}
protected RefluxBordParFrontiere(H2dBordMutable _m, int _maillageindex) {
bords_= new ArrayList(10);
bords_.add(_m);
maillageBordIdx_= _maillageindex;
}
public static List getRefluxIndexGeneralBords(
H2dRefluxCLManager _mng,
int _idxFrontier) {
RefluxBordParFrontiere borderByFrontier=
_mng.getRefluxBorderByFrontier(_idxFrontier);
ArrayList l= new ArrayList();
int n= borderByFrontier.bords_.size();
int idxFrontier= borderByFrontier.maillageBordIdx_;
H2dMaillage m= _mng.getMaillage();
H2dRefluxBordIndexGeneral bidxGene;
int[] idx;
H2dMaillageFrontiere frontieres= m.getPtsFrontiere();
for (int i= 0; i < n; i++) {
H2dBord b= borderByFrontier.getBord(i);
H2dBordType bType= b.getType();
if (bType != H2dBordType.SOLIDE) {
//cas bord simple
if (bType != H2dBordType.SOLIDE_FROTTEMENT) {
int deb= b.getIdxDeb();
int fin= b.getIdxFin();
for (int j= deb; j < fin; j += 2) {
bidxGene= new H2dRefluxBordIndexGeneral(bType);
idx= new int[3];
idx[0]= frontieres.getIdx(idxFrontier, j);
idx[1]= frontieres.getIdx(idxFrontier, j + 1);
idx[2]= frontieres.getIdx(idxFrontier, j + 2);
bidxGene.setIndex(idx);
l.add(bidxGene);
}
//bord avec rugosite
} else {
int deb= b.getIdxDeb() + 1;
int fin= b.getIdxFin();
for (int j= deb; j < fin; j += 2) {
bidxGene= new H2dRefluxBordIndexGeneral(bType);
BordRugositeValeurs v=
(BordRugositeValeurs)borderByFrontier.indexMilieuRugosite_.get(
j);
if (v == null) {
//a voir
System.out.println("problem: friction not found");
bidxGene.setRugositeType(H2dClType.PERMANENT);
bidxGene.setRugosite(0);
} else {
bidxGene.setRugositeType(v.getType());
bidxGene.setRugosite(v.getValue());
bidxGene.setRugositeTransitoireCourbe(v.getEvolution());
}
idx= new int[3];
idx[0]= frontieres.getIdx(idxFrontier, j - 1);
idx[1]= frontieres.getIdx(idxFrontier, j);
idx[2]= frontieres.getIdx(idxFrontier, j + 1);
bidxGene.setIndex(idx);
l.add(bidxGene);
}
}
}
}
return l;
}
public BordRugositeValeurs getRugositeValeurs(int _j) {
return (BordRugositeValeurs)indexMilieuRugosite_.get(_j);
}
public int getNbBord() {
return bords_.size();
}
public H2dBord getBord(int _i) {
return (H2dBord)bords_.get(_i);
}
}
public static class BordRugositeValeurs {
double value_;
H2dClType type_;
H2dEvolution evolution_;
public BordRugositeValeurs(
H2dClType _t,
double _value,
H2dEvolution _evol) {
setType(_t);
setValue(_value);
setEvolution(_evol);
}
/**
*
*/
public H2dEvolution getEvolution() {
return evolution_;
}
/**
*
*/
public H2dClType getType() {
return type_;
}
/**
*
*/
public double getValue() {
return value_;
}
/**
*
*/
protected final void setEvolution(H2dEvolution _evolution) {
if (type_ == H2dClType.TRANSITOIRE)
evolution_= _evolution;
}
/**
*
*/
protected final void setType(H2dClType _type) {
type_= _type;
if ((type_ == H2dClType.PERMANENT) || (type_ == H2dClType.LIBRE)) {
evolution_= null;
}
}
/**
*
*/
protected final void setValue(double _d) {
if (type_ == H2dClType.PERMANENT)
value_= _d;
}
}
}
\ No newline at end of file
--- 1 ----
! /*
* @file H2dRefluxBordManager.java
* @creation 21 août 2003
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.h2d.reflux;
import gnu.trove.TIntObjectHashMap;
import java.util.ArrayList;
import java.util.List;
import org.fudaa.dodico.commun.DodicoAnalyze;
import org.fudaa.dodico.commun.DodicoLib;
import org.fudaa.dodico.h2d.H2dBord;
import org.fudaa.dodico.h2d.H2dBordMutable;
import org.fudaa.dodico.h2d.H2dBorderPerFrontierInterface;
import org.fudaa.dodico.h2d.H2dCLManagerAbstract;
import org.fudaa.dodico.h2d.H2dConditionLimite;
import org.fudaa.dodico.h2d.H2dEvolution;
import org.fudaa.dodico.h2d.H2dMaillage;
import org.fudaa.dodico.h2d.H2dMaillageFrontiere;
import org.fudaa.dodico.h2d.H2dResource;
import org.fudaa.dodico.h2d.type.H2dBordType;
import org.fudaa.dodico.h2d.type.H2dClType;
/**
* @author deniger
* @version $Id$
*/
public class H2dRefluxCLManager extends H2dCLManagerAbstract {
H2dRefluxConditionLimite[] cls_;
/**
*
*/
protected H2dRefluxCLManager(
H2dMaillage _m,
RefluxBordParFrontiere[] _borders,
H2dRefluxConditionLimite[] _cls) {
super(_m, _borders);
cls_= _cls;
}
public void addClListener(H2dRefluxCLListener _l) {
listeners_.add(_l);
}
public void removeClListener(H2dRefluxCLListener _l) {
listeners_.remove(_l);
}
public H2dRefluxConditionLimite getRefluxCL(int _bordIdx) {
return cls_[_bordIdx];
}
public H2dRefluxConditionLimite[] getRefluxClTableau() {
H2dRefluxConditionLimite[] r= new H2dRefluxConditionLimite[cls_.length];
System.arraycopy(cls_, 0, r, 0, cls_.length);
return r;
}
public H2dRefluxBordIndexGeneral[] getRefluxBord() {
int n= bordByFrontier_.length;
ArrayList r= new ArrayList();
for (int i= 0; i < n; i++) {
r.addAll(
(
(
RefluxBordParFrontiere)bordByFrontier_[i])
.getRefluxIndexGeneralBords(
this,
i));
}
n= r.size();
if (n > 0) {
H2dRefluxBordIndexGeneral[] rfinal= new H2dRefluxBordIndexGeneral[n];
r.toArray(rfinal);
return rfinal;
}
return null;
}
public RefluxBordParFrontiere getRefluxBorderByFrontier(int _idxGeneral) {
return (RefluxBordParFrontiere)getBordPerFrontier(_idxGeneral);
}
public static H2dRefluxCLManager init(
H2dMaillage _maillage,
H2dRefluxBordIndexGeneral[] _bordInit,
H2dRefluxConditionLimite[] _cls,
DodicoAnalyze.Editor _analyze) {
H2dMaillageFrontiere frontieres= _maillage.getPtsFrontiere();
int nbPointFrontiere= frontieres.getNbTotalPt();
//les cls
if (nbPointFrontiere != _cls.length) {
_analyze.addError(
H2dResource.getS("Des conditions limites ne sont pas spécifiées"));
}
H2dRefluxConditionLimite[] cls=
new H2dRefluxConditionLimite[nbPointFrontiere];
int idxPt;
for (H2dMaillageFrontiere.FrontiereIdxIterator it=
frontieres.getFrontierIterator();
it.hasNext();
) {
idxPt= it.next();
H2dRefluxConditionLimite cl=
(H2dRefluxConditionLimite)H2dConditionLimite.getCLFast(idxPt, _cls);
if (cl == null) {
if (_analyze != null)
_analyze.addError(
H2dResource.getS(
"Pas de cl pour le point de bord {0}",
DodicoLib.getString(it.getBoundaryIdx())));
H2dRefluxConditionLimiteMutable clN=
new H2dRefluxConditionLimiteMutable();
clN.setIndexPt(idxPt);
cls[it.getBoundaryIdx()]= clN;
} else {
cls[it.getBoundaryIdx()]= cl;
}
}
int ptId;
H2dBordMutable bordEnCours= null;
H2dBordMutable firstBord= null;
RefluxBordParFrontiere[] bordByFrontier=
new RefluxBordParFrontiere[frontieres.getNbFrontier()];
//le nb de frontiere
int n= frontieres.getNbFrontier();
int indexBord=0;
//Si des bords sont specifie on traite le tout. Sinon que des bords uniques
if (_bordInit != null) {
for (int i= 0; i < n; i++) {
ArrayList bords= new ArrayList();
TIntObjectHashMap indexPtMilieuRugosite= new TIntObjectHashMap();
bordEnCours= null;
firstBord= null;
int nbPt= frontieres.getNbPt(i);
//On prend que les points milieux.
for (int j= 1; j < nbPt; j += 2) {
ptId= frontieres.getIdx(i, j);
H2dRefluxBordIndexGeneral bord=
H2dRefluxBordIndexGeneral.findBordWithIndex(ptId, _bordInit);
H2dBordType bordType=
bord == null ? H2dBordType.SOLIDE : bord.getBord();
if (bordType == H2dBordType.SOLIDE_FROTTEMENT) {
System.err.println("friction boundary found");
indexPtMilieuRugosite.put(
j,
new BordRugositeValeurs(
bord.getRugositeType(),
bord.getRugosite(),
bord.getRugositeTransitoireCourbe()));
}
if (bordEnCours == null) {
bordEnCours= new H2dBordMutable();
bordEnCours.setIdxmaillageFrontiere(i);
bordEnCours.setIdxDeb(j - 1);
bordEnCours.setIdxFin(j + 1);
bordEnCours.setType(bordType);
firstBord= bordEnCours;
bords.add(bordEnCours);
} else {
if (bordType == bordEnCours.getType()) {
bordEnCours.setIdxFin(j + 1);
} else {
bordEnCours= new H2dBordMutable();
bordEnCours.setIdxmaillageFrontiere(i);
bordEnCours.setIdxDeb(j - 1);
bordEnCours.setIdxFin(j + 1);
bordEnCours.setType(bordType);
bords.add(bordEnCours);
}
}
}
if (bordEnCours.getIdxFin() != nbPt) {
if (_analyze != null) {
_analyze.addFatalError(
H2dResource.getS(
"Détermination des bords impossible :erreur dans les indexs"));
}
new Throwable().printStackTrace();
return null;
} else {
bordEnCours.setIdxFin(0);
}
if ((bordEnCours != firstBord)
&& (bordEnCours.getType() == firstBord.getType())) {
firstBord.setIdxDeb(bordEnCours.getIdxDeb());
bords.remove(bordEnCours);
}
bordByFrontier[i]=
new RefluxBordParFrontiere(bords, i, indexPtMilieuRugosite);
}
//bord unique
} else {
for (int i= 0; i < n; i++) {
bordByFrontier[i]=
new RefluxBordParFrontiere(createBordDefautUniqueBord(),i);
}
}
return new H2dRefluxCLManager(_maillage, bordByFrontier, cls);
}
private static H2dBordMutable createBordDefautUniqueBord() {
H2dBordMutable r= new H2dBordMutable();
r.setIdxDeb(0);
r.setIdxFin(0);
r.setType(H2dBordType.SOLIDE);
return r;
}
public static class RefluxBordParFrontiere
implements H2dBorderPerFrontierInterface {
private ArrayList bords_;
private int maillageBordIdx_;
private TIntObjectHashMap indexMilieuRugosite_;
protected RefluxBordParFrontiere(
ArrayList _bords,
int _maillageindex,
TIntObjectHashMap _indexPtMilieuRugosite) {
bords_= _bords;
maillageBordIdx_= _maillageindex;
if ((_indexPtMilieuRugosite != null)
&& (_indexPtMilieuRugosite.size() > 0)) {
indexMilieuRugosite_= _indexPtMilieuRugosite;
}
}
protected RefluxBordParFrontiere(H2dBordMutable _m, int _maillageindex) {
bords_= new ArrayList(10);
bords_.add(_m);
maillageBordIdx_= _maillageindex;
}
public static List getRefluxIndexGeneralBords(
H2dRefluxCLManager _mng,
int _idxFrontier) {
RefluxBordParFrontiere borderByFrontier=
_mng.getRefluxBorderByFrontier(_idxFrontier);
ArrayList l= new ArrayList();
int n= borderByFrontier.bords_.size();
int idxFrontier= borderByFrontier.maillageBordIdx_;
H2dMaillage m= _mng.getMaillage();
H2dRefluxBordIndexGeneral bidxGene;
int[] idx;
H2dMaillageFrontiere frontieres= m.getPtsFrontiere();
for (int i= 0; i < n; i++) {
H2dBord b= borderByFrontier.getBord(i);
H2dBordType bType= b.getType();
if (bType != H2dBordType.SOLIDE) {
//cas bord simple
if (bType != H2dBordType.SOLIDE_FROTTEMENT) {
int deb= b.getIdxDeb();
int fin= b.getIdxFin();
for (int j= deb; j < fin; j += 2) {
bidxGene= new H2dRefluxBordIndexGeneral(bType);
idx= new int[3];
idx[0]= frontieres.getIdx(idxFrontier, j);
idx[1]= frontieres.getIdx(idxFrontier, j + 1);
idx[2]= frontieres.getIdx(idxFrontier, j + 2);
bidxGene.setIndex(idx);
l.add(bidxGene);
}
//bord avec rugosite
} else {
int deb= b.getIdxDeb() + 1;
int fin= b.getIdxFin();
for (int j= deb; j < fin; j += 2) {
bidxGene= new H2dRefluxBordIndexGeneral(bType);
BordRugositeValeurs v=
(BordRugositeValeurs)borderByFrontier.indexMilieuRugosite_.get(
j);
if (v == null) {
//a voir
System.out.println("problem: friction not found");
bidxGene.setRugositeType(H2dClType.PERMANENT);
bidxGene.setRugosite(0);
} else {
bidxGene.setRugositeType(v.getType());
bidxGene.setRugosite(v.getValue());
bidxGene.setRugositeTransitoireCourbe(v.getEvolution());
}
idx= new int[3];
idx[0]= frontieres.getIdx(idxFrontier, j - 1);
idx[1]= frontieres.getIdx(idxFrontier, j);
idx[2]= frontieres.getIdx(idxFrontier, j + 1);
bidxGene.setIndex(idx);
l.add(bidxGene);
}
}
}
}
return l;
}
public BordRugositeValeurs getRugositeValeurs(int _j) {
return (BordRugositeValeurs)indexMilieuRugosite_.get(_j);
}
public int getNbBord() {
return bords_.size();
}
public H2dBord getBord(int _i) {
return (H2dBord)bords_.get(_i);
}
/**
*
*/
public H2dBord getBordContainingIdx(int _indexToSearch) {
return null;
}
/**
*
*/
public H2dConditionLimite getCl(int _idxOnThisFrontier) {
return null;
}
/**
*
*/
public int getNbPt() {
return 0;
}
}
public static class BordRugositeValeurs {
double value_;
H2dClType type_;
H2dEvolution evolution_;
public BordRugositeValeurs(
H2dClType _t,
double _value,
H2dEvolution _evol) {
setType(_t);
setValue(_value);
setEvolution(_evol);
}
/**
*
*/
public H2dEvolution getEvolution() {
return evolution_;
}
/**
*
*/
public H2dClType getType() {
return type_;
}
/**
*
*/
public double getValue() {
return value_;
}
/**
*
*/
protected final void setEvolution(H2dEvolution _evolution) {
if (type_ == H2dClType.TRANSITOIRE)
evolution_= _evolution;
}
/**
*
*/
protected final void setType(H2dClType _type) {
type_= _type;
if ((type_ == H2dClType.PERMANENT) || (type_ == H2dClType.LIBRE)) {
evolution_= null;
}
}
/**
*
*/
protected final void setValue(double _d) {
if (type_ == H2dClType.PERMANENT)
value_= _d;
}
}
}
\ No newline at end of file
Index: H2dRefluxParametres.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/h2d/reflux/H2dRefluxParametres.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** H2dRefluxParametres.java 10 Oct 2003 14:43:19 -0000 1.6
--- H2dRefluxParametres.java 29 Oct 2003 11:41:27 -0000 1.7
***************
*** 1 ****
! /*
* @file H2dParametresReflux.java
* @creation 26 juin 2003
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.h2d.reflux;
import org.fudaa.dodico.commun.DodicoAnalyze;
import org.fudaa.dodico.commun.DodicoLib;
import org.fudaa.dodico.commun.DodicoPermanentList;
import org.fudaa.dodico.commun.ProgressionInterface;
import org.fudaa.dodico.dico.DicoCasFileFormatVersionAbstract;
import org.fudaa.dodico.dico.DicoParams;
import org.fudaa.dodico.h2d.H2dGroupePasTemps;
import org.fudaa.dodico.h2d.H2dParametres;
import org.fudaa.dodico.h2d.H2dProprieteElementaire;
import org.fudaa.dodico.h2d.H2dResource;
import org.fudaa.dodico.h2d.type.H2dBordType;
/**
* Classe contenant les parametres de base.
* Notation:
* cl: condition limite
* pn: propriete nodale.
* @author deniger
* @version $Id$
*/
public class H2dRefluxParametres extends H2dParametres {
public static final DodicoPermanentList BORD_LIST=
new DodicoPermanentList(
DodicoLib.sort(
new H2dBordType[] {
H2dBordType.SOLIDE,
H2dBordType.SOLIDE_FROTTEMENT,
H2dBordType.LIQUIDE_VITESSES_IMPOSEES,
H2dBordType.LIQUIDE_HAUTEUR_IMPOSEE,
H2dBordType.LIQUIDE_HAUTEUR_VITESSES_IMPOSEES,
H2dBordType.LIQUIDE_DEBIT_IMPOSE }));
H2dGroupePasTemps[] gptTemps_;
H2dProprieteElementaire[] propEls_;
/**
*
*/
private H2dRefluxParametres(DicoParams _p) {
super(_p);
}
public DodicoPermanentList getBordList(){
return BORD_LIST;
}
public H2dRefluxCLManager getRefluxClManager(){
return (H2dRefluxCLManager)getCLManager();
}
public H2dRefluxConditionLimite getRefluxCL(int _indexPtFrontiere) {
return getRefluxClManager().getRefluxCL(_indexPtFrontiere);
}
public H2dRefluxConditionLimite[] getRefluxCLTableau() {
return getRefluxClManager().getRefluxClTableau();
}
public int getProprietesElementairesNb() {
return propEls_.length;
}
public H2dProprieteElementaire getProprieteElementaire(int _i) {
return propEls_[_i];
}
public H2dProprieteElementaire[] getProprieteElementaireTab() {
H2dProprieteElementaire[] r= new H2dProprieteElementaire[propEls_.length];
System.arraycopy(propEls_, 0, r, 0, propEls_.length);
return r;
}
public int getGroupePasTempsNb() {
return gptTemps_.length;
}
public H2dGroupePasTemps getGroupePasTemps(int _i) {
return gptTemps_[_i];
}
public H2dGroupePasTemps[] getGroupePasTempsTab() {
H2dGroupePasTemps[] r= new H2dGroupePasTemps[gptTemps_.length];
System.arraycopy(gptTemps_, 0, r, 0, gptTemps_.length);
return r;
}
//DEBUG A Continuer
public boolean contientPnTransitoire() {
return false;
}
//DEBUG A Continuer
public boolean contientClTransitoire() {
return false;
}
public static H2dRefluxParametres init(
H2dRefluxSourceInterface _inter,
ProgressionInterface _prog,
DicoCasFileFormatVersionAbstract _ft,
DodicoAnalyze.Editor _analyze) {
if (_prog != null) {
_prog.setDesc(H2dResource.getS("Analyse données"));
_prog.setProgression(0);
}
if (_ft == null) {
_analyze.addFatalError(H2dResource.getS("Version non spécifiée"));
return null;
}
DicoParams params= new DicoParams(_inter.getEntiteValue(), _ft);
H2dRefluxParametres r= new H2dRefluxParametres(params);
r.setMaillage(_inter.getMaillage(),_prog,_analyze);
if (r.getMaillage() == null) {
_analyze.addFatalError(H2dResource.getS("Maillage non spécifié"));
return null;
}
//Classement de cl
//Classement de bord
H2dRefluxCLManager bords=
H2dRefluxCLManager.init(
r.getMaillage(),
_inter.getBords(),
_inter.getConditionLimite(),
_analyze);
if (_prog != null) {
_prog.setProgression(60);
}
r.setClManager(bords);
//sauv des prop elementaires
r.propEls_= _inter.getPropElementaires();
//sauv groupe pas de temps
r.gptTemps_= _inter.getGroupePasTemps();
if (_prog != null) {
_prog.setProgression(100);
}
if (DodicoLib.DEBUG)
System.out.println("End of data analyze");
return r;
}
}
\ No newline at end of file
--- 1 ----
! /*
* @file H2dParametresReflux.java
* @creation 26 juin 2003
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.h2d.reflux;
import org.fudaa.dodico.commun.DodicoAnalyze;
import org.fudaa.dodico.commun.DodicoLib;
import org.fudaa.dodico.commun.DodicoPermanentList;
import org.fudaa.dodico.commun.ProgressionInterface;
import org.fudaa.dodico.dico.DicoCasFileFormatVersionAbstract;
import org.fudaa.dodico.dico.DicoParams;
import org.fudaa.dodico.h2d.H2dCLManagerInterface;
import org.fudaa.dodico.h2d.H2dGroupePasTemps;
import org.fudaa.dodico.h2d.H2dParametres;
import org.fudaa.dodico.h2d.H2dProprieteElementaire;
import org.fudaa.dodico.h2d.H2dResource;
import org.fudaa.dodico.h2d.type.H2dBordType;
/**
* Classe contenant les parametres de base.
* Notation:
* cl: condition limite
* pn: propriete nodale.
* @author deniger
* @version $Id$
*/
public class H2dRefluxParametres extends H2dParametres {
private H2dRefluxCLManager clMng_;
private H2dRefluxProjectListener listener_;
public static final DodicoPermanentList BORD_LIST=
new DodicoPermanentList(
DodicoLib.sort(
new H2dBordType[] {
H2dBordType.SOLIDE,
H2dBordType.SOLIDE_FROTTEMENT,
H2dBordType.LIQUIDE_VITESSES_IMPOSEES,
H2dBordType.LIQUIDE_HAUTEUR_IMPOSEE,
H2dBordType.LIQUIDE_HAUTEUR_VITESSES_IMPOSEES,
H2dBordType.LIQUIDE_DEBIT_IMPOSE }));
H2dGroupePasTemps[] gptTemps_;
H2dProprieteElementaire[] propEls_;
/**
*
*/
private H2dRefluxParametres(DicoParams _p) {
super(_p);
}
public DodicoPermanentList getBordList(){
return BORD_LIST;
}
public H2dRefluxCLManager getRefluxClManager(){
return (H2dRefluxCLManager)getCLManager();
}
public H2dRefluxConditionLimite getRefluxCL(int _indexPtFrontiere) {
return getRefluxClManager().getRefluxCL(_indexPtFrontiere);
}
public H2dRefluxConditionLimite[] getRefluxCLTableau() {
return getRefluxClManager().getRefluxClTableau();
}
public int getProprietesElementairesNb() {
return propEls_.length;
}
public H2dProprieteElementaire getProprieteElementaire(int _i) {
return propEls_[_i];
}
public H2dProprieteElementaire[] getProprieteElementaireTab() {
H2dProprieteElementaire[] r= new H2dProprieteElementaire[propEls_.length];
System.arraycopy(propEls_, 0, r, 0, propEls_.length);
return r;
}
public int getGroupePasTempsNb() {
return gptTemps_.length;
}
public H2dGroupePasTemps getGroupePasTemps(int _i) {
return gptTemps_[_i];
}
public H2dGroupePasTemps[] getGroupePasTempsTab() {
H2dGroupePasTemps[] r= new H2dGroupePasTemps[gptTemps_.length];
System.arraycopy(gptTemps_, 0, r, 0, gptTemps_.length);
return r;
}
//DEBUG A Continuer
public boolean contientPnTransitoire() {
return false;
}
//DEBUG A Continuer
public boolean contientClTransitoire() {
return false;
}
public static H2dRefluxParametres init(
H2dRefluxSourceInterface _inter,
ProgressionInterface _prog,
DicoCasFileFormatVersionAbstract _ft,
DodicoAnalyze.Editor _analyze) {
if (_prog != null) {
_prog.setDesc(H2dResource.getS("Analyse données"));
_prog.setProgression(0);
}
if (_ft == null) {
_analyze.addFatalError(H2dResource.getS("Version non spécifiée"));
return null;
}
DicoParams params= new DicoParams(_inter.getEntiteValue(), _ft);
H2dRefluxParametres r= new H2dRefluxParametres(params);
r.setMaillage(_inter.getMaillage(),_prog,_analyze);
if (r.getMaillage() == null) {
_analyze.addFatalError(H2dResource.getS("Maillage non spécifié"));
return null;
}
//Classement de cl
//Classement de bord
H2dRefluxCLManager bords=
H2dRefluxCLManager.init(
r.getMaillage(),
_inter.getBords(),
_inter.getConditionLimite(),
_analyze);
if (_prog != null) {
_prog.setProgression(60);
}
r.setClManager(bords);
//sauv des prop elementaires
r.propEls_= _inter.getPropElementaires();
//sauv groupe pas de temps
r.gptTemps_= _inter.getGroupePasTemps();
if (_prog != null) {
_prog.setProgression(100);
}
if (DodicoLib.DEBUG)
System.out.println("End of data analyze");
return r;
}
public boolean isModified(){
return super.getDicoParams().isModified();
}
protected void setClManager(H2dRefluxCLManager _clMng){
if((clMng_!=_clMng) && (_clMng!=null)){
if(_clMng!=null) _clMng.removeClListener(listener_);
clMng_=_clMng;
clMng_.addClListener(listener_);
}
}
/**
*
*/
public H2dCLManagerInterface getCLManager() {
return clMng_;
}
}
\ No newline at end of file
|
|
From: <de...@us...> - 2003-10-29 11:41:30
|
Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/fichiers
In directory sc8-pr-cvs1:/tmp/cvs-serv13994/fichiers
Modified Files:
FileOperationSynthese.java FileWriteOperationAbstract.java
Log Message:
Ajout du pattern command pour annuler des operations
Index: FileOperationSynthese.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/fichiers/FileOperationSynthese.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** FileOperationSynthese.java 23 Sep 2003 19:31:41 -0000 1.4
--- FileOperationSynthese.java 29 Oct 2003 11:41:26 -0000 1.5
***************
*** 1,106 ****
! /*
! * @file TrFileReadView.java
! * @creation 12 mars 2003
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
! package org.fudaa.dodico.fichiers;
!
! import java.io.File;
!
! import org.fudaa.dodico.commun.DodicoAnalyze;
! import org.fudaa.dodico.fortran.FortranInterface;
! import org.fudaa.dodico.fortran.FortranLib;
!
! /**
! *
! * @author deniger
! * @version $Id$
! */
! public class FileOperationSynthese {
! private String exClose_;
! private DodicoAnalyze.Editor analyze_;
! FortranInterface fileOp_;
! private Object source_;
!
! public void printAnalyze() {
! if (analyze_ != null)
! analyze_.toAnalyze().printResume();
! else
! System.out.println("No error");
! }
!
! public Object getSource() {
! return source_;
! }
!
! // public void initOpTime()
! // {
! // opTime_= System.currentTimeMillis();
! // }
!
! public FileOperationSynthese() {
! }
!
! public DodicoAnalyze.Editor getAnalyze() {
! return analyze_;
! }
!
! public String getClosingException() {
! return exClose_;
! }
!
! public boolean containsFatalError() {
! return ((analyze_ != null) && (analyze_.containsFatalError()));
! }
!
! public boolean containsClosingError() {
! return exClose_ != null;
! }
!
! /**
! *
! */
! public boolean containsMessages() {
! return (analyze_ != null) && (!analyze_.isEmpty());
! }
!
! /**
! *
! */
! public FortranInterface getFileOp() {
! return fileOp_;
! }
!
!
! /**
! *
! */
! public void setClosingOperation(String _exception) {
! exClose_= _exception;
! }
!
! /**
! *
! */
! public void setFileOp(FortranInterface _interface) {
! fileOp_= _interface;
! }
!
! /**
! *
! */
! public void setSource(Object _object) {
! source_= _object;
! }
!
! /**
! *
! */
! public void setAnalyze(DodicoAnalyze.Editor _editor) {
! analyze_= _editor;
! }
!
! }
--- 1 ----
! /*
* @file TrFileReadView.java
* @creation 12 mars 2003
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.fichiers;
import java.io.File;
import org.fudaa.dodico.commun.DodicoAnalyze;
import org.fudaa.dodico.fortran.FortranInterface;
import org.fudaa.dodico.fortran.FortranLib;
/**
*
* @author deniger
* @version $Id$
*/
public class FileOperationSynthese {
private String exClose_;
private DodicoAnalyze.Editor analyze_;
FortranInterface fileOp_;
private Object source_;
public void printAnalyze() {
if (analyze_ != null)
analyze_.toAnalyze().printResume();
else
System.out.println("No error");
}
public Object getSource() {
return source_;
}
// public void initOpTime()
// {
// opTime_= System.currentTimeMillis();
// }
public FileOperationSynthese() {}
public DodicoAnalyze.Editor getAnalyze() {
return analyze_;
}
public String getClosingException() {
return exClose_;
}
public boolean containsFatalError() {
return ((analyze_ != null) && (analyze_.containsFatalError()));
}
public boolean containsClosingError() {
return exClose_ != null;
}
/**
*
*/
public boolean containsMessages() {
return (analyze_ != null) && (!analyze_.isEmpty());
}
/**
*
*/
public FortranInterface getFileOp() {
return fileOp_;
}
/**
*
*/
public void setClosingOperation(String _exception) {
exClose_= _exception;
}
/**
*
*/
public void setFileOp(FortranInterface _interface) {
fileOp_= _interface;
}
/**
*
*/
public void setSource(Object _object) {
source_= _object;
}
/**
*
*/
public void setAnalyze(DodicoAnalyze.Editor _editor) {
analyze_= _editor;
}
}
\ No newline at end of file
Index: FileWriteOperationAbstract.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/fichiers/FileWriteOperationAbstract.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** FileWriteOperationAbstract.java 23 Sep 2003 19:31:41 -0000 1.3
--- FileWriteOperationAbstract.java 29 Oct 2003 11:41:26 -0000 1.4
***************
*** 1,55 ****
! /*
! * @file FileWriteOperation.java
! * @creation 22 août 2003
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
! package org.fudaa.dodico.fichiers;
!
! import java.io.File;
!
! import org.fudaa.dodico.commun.DodicoLib;
! import org.fudaa.dodico.commun.DodicoResource;
! import org.fudaa.dodico.commun.ProgressionInterface;
!
! /**
! * @author deniger
! * @version $Id$
! */
! public abstract class FileWriteOperationAbstract
! extends FileOperationAbstract {
!
! protected abstract void _write(Object _o);
!
! /**
! *
! */
! public final FileOperationSynthese write(Object _o) {
! if (progress_ != null)
! progress_.setDesc(
! getOperationDescription() + DodicoLib.ESPACE + getVersion());
! _write(_o);
! return closeOperation(_o);
! }
!
! public final FileOperationSynthese write(Object _o,File _f,ProgressionInterface _inter){
! setFile(_f);
! setProgressReceiver(_inter);
! return write(_o);
! }
!
! /**
! *
! */
! protected String getOperationDescription() {
! return DodicoResource.getS("Ecriture");
! }
!
! protected void _donneesInvalides(Object _o) {
! analyze_.addFatalError(DodicoResource.getS("Données invalides"));
! analyze_.addInfo(_o.getClass().toString());
! }
!
! }
--- 1 ----
! /*
* @file FileWriteOperation.java
* @creation 22 août 2003
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.fichiers;
import java.io.File;
import org.fudaa.dodico.commun.DodicoLib;
import org.fudaa.dodico.commun.DodicoResource;
import org.fudaa.dodico.commun.ProgressionInterface;
/**
* @author deniger
* @version $Id$
*/
public abstract class FileWriteOperationAbstract
extends FileOperationAbstract {
protected abstract void _write(Object _o);
/**
*
*/
public final FileOperationSynthese write(Object _o) {
if (progress_ != null)
progress_.setDesc(
getOperationDescription() + DodicoLib.ESPACE + getVersion());
_write(_o);
return closeOperation(_o);
}
public final FileOperationSynthese write(
Object _o,
File _f,
ProgressionInterface _inter) {
setFile(_f);
setProgressReceiver(_inter);
return write(_o);
}
/**
*
*/
protected String getOperationDescription() {
return DodicoResource.getS("Ecriture");
}
protected void _donneesInvalides(Object _o) {
analyze_.addFatalError(DodicoResource.getS("Données invalides"));
analyze_.addInfo(_o.getClass().toString());
}
}
\ No newline at end of file
|
|
From: <de...@us...> - 2003-10-29 11:41:29
|
Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/commun
In directory sc8-pr-cvs1:/tmp/cvs-serv13994/commun
Modified Files:
DodicoLib.java ProgressionBuAdapter.java
ProgressionInterface.java
Added Files:
DodicoCmdMngListener.java DodicoCommand.java
DodicoCommandComposite.java DodicoCommandManager.java
Log Message:
Ajout du pattern command pour annuler des operations
--- NEW FILE: DodicoCmdMngListener.java ---
/*
* @file DodicoCmdMngListener.java
* @creation 21 oct. 2003
* @modification $Date: 2003/10/29 11:41:26 $
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.commun;
/**
* @author deniger
* @version $Id: DodicoCmdMngListener.java,v 1.1 2003/10/29 11:41:26 deniger Exp $
*/
public interface DodicoCmdMngListener {
public void undoredoStateChange(DodicoCommandManager _source);
}
--- NEW FILE: DodicoCommand.java ---
/*
* @file DodicoCommand.java
* @creation 20 oct. 2003
* @modification $Date: 2003/10/29 11:41:26 $
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.commun;
/**
* @author deniger
* @version $Id: DodicoCommand.java,v 1.1 2003/10/29 11:41:26 deniger Exp $
*/
public interface DodicoCommand {
public void undo();
public void redo();
}
--- NEW FILE: DodicoCommandComposite.java ---
/*
* @file DodicoCommandComposite.java
* @creation 21 oct. 2003
* @modification $Date: 2003/10/29 11:41:26 $
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.commun;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* @author deniger
* @version $Id: DodicoCommandComposite.java,v 1.1 2003/10/29 11:41:26 deniger Exp $
*/
public class DodicoCommandComposite implements DodicoCommand {
private List command_;
/**
*
*/
public DodicoCommandComposite() {
super();
}
public boolean isEmpty(){
return ((command_==null) || (command_.size()==0));
}
public void addCmd(DodicoCommand _cmd) {
if (_cmd != null) {
if (command_ == null)
command_= new ArrayList(10);
command_.add(_cmd);
}
}
public void removeCmd(DodicoCommand _cmd) {
if ((command_ != null) && (_cmd != null)) {
command_.remove(_cmd);
}
}
public int getNbCmd() {
return command_ == null ? 0 : command_.size();
}
/**
*
*/
public void undo() {
if (command_ != null) {
int n=command_.size()-1;
for (int i=n-1;i>=0;i--) {
((DodicoCommand)command_.get(i)).undo();
}
}
}
/**
*
*/
public void redo() {
if (command_ != null) {
for (Iterator it= command_.iterator(); it.hasNext();) {
((DodicoCommand)it.next()).redo();
}
}
}
}
--- NEW FILE: DodicoCommandManager.java ---
/*
* @file DodicoCommandManager.java
* @creation 21 oct. 2003
* @modification $Date: 2003/10/29 11:41:26 $
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.commun;
import java.util.LinkedList;
/**
* @author deniger
* @version $Id: DodicoCommandManager.java,v 1.1 2003/10/29 11:41:26 deniger Exp $
*/
public class DodicoCommandManager {
private LinkedList cmd_;
private int nbMaxCommand_=
DodicoPreferences.DODICO.getIntegerProperty("dodico.undo.cmd.nb", 10);
private int indexLastUndoCmd_;
private DodicoCmdMngListener listener_;
private boolean canUndo_;
private boolean canRedo_;
/**
*
*/
public DodicoCommandManager() {}
public DodicoCommandManager(int _maxNb) {
if (_maxNb > 0)
nbMaxCommand_= _maxNb;
}
public void setListener(DodicoCmdMngListener _l) {
if ((_l != null) && (_l != listener_)) {
listener_= _l;
}
}
public void removeListener() {
listener_= null;
}
public void clean(){
if(cmd_!=null) {
cmd_.clear();
indexLastUndoCmd_= 0;
update();
if(listener_!=null) listener_.undoredoStateChange(this);
}
}
public boolean containsCmd(DodicoCommand _c) {
return cmd_.contains(_c);
}
public synchronized void addCmd(DodicoCommand _c) {
if(_c==null) return;
if (cmd_ == null) {
cmd_= new LinkedList();
cmd_.add(_c);
indexLastUndoCmd_= 1;
} else {
//reset undo command
if (indexLastUndoCmd_ != cmd_.size()) {
int nbToRemove= cmd_.size() - indexLastUndoCmd_;
for (int i= nbToRemove; i > 0; i--) {
cmd_.removeLast();
}
}
//add the new command
cmd_.add(_c);
if (indexLastUndoCmd_ > nbMaxCommand_) {
cmd_.removeFirst();
}
indexLastUndoCmd_= cmd_.size();
}
update();
}
public int getNbMaxCmd() {
return nbMaxCommand_;
}
public int getNbCmd() {
return cmd_.size();
}
public boolean isUndo(DodicoCommand _c) {
return isUndo(cmd_.indexOf(_c));
}
public boolean isUndo(int _idx) {
return _idx >= indexLastUndoCmd_;
}
public boolean isACommandUndo() {
return indexLastUndoCmd_ != cmd_.size();
}
private void update() {
boolean change= false;
boolean newValue=
((cmd_ != null) && (cmd_.size() > 0) && (indexLastUndoCmd_ > 0));
if (newValue != canUndo_) {
canUndo_= newValue;
change= true;
}
newValue=
((cmd_ != null)
&& (cmd_.size() > 0)
&& (indexLastUndoCmd_ != cmd_.size()));
if (newValue != canRedo_) {
canRedo_= newValue;
change= true;
}
if (change && (listener_ != null)) {
listener_.undoredoStateChange(this);
}
}
public boolean canUndo() {
return canUndo_;
}
public boolean canRedo() {
return canRedo_;
}
public void undo() {
if (canUndo()) {
((DodicoCommand)cmd_.get(--indexLastUndoCmd_)).undo();
update();
}
}
public void redo() {
if (canRedo()) {
((DodicoCommand)cmd_.get(indexLastUndoCmd_++)).redo();
update();
}
}
}
Index: DodicoLib.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/commun/DodicoLib.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** DodicoLib.java 26 Sep 2003 10:42:08 -0000 1.14
--- DodicoLib.java 29 Oct 2003 11:41:26 -0000 1.15
***************
*** 449,452 ****
--- 449,461 ----
return new File(_baseDir, _path);
}
+
+ public static File getAbsolutePath(File _baseDir, String _path) {
+ File f= new File(_path);
+ if (f.isAbsolute())
+ return f;
+ else
+ return new File(_baseDir, _path);
+ }
+
public static boolean copyFile(File _fileFrom, File _fileTo) {
Index: ProgressionBuAdapter.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/commun/ProgressionBuAdapter.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** ProgressionBuAdapter.java 22 Sep 2003 20:47:47 -0000 1.7
--- ProgressionBuAdapter.java 29 Oct 2003 11:41:26 -0000 1.8
***************
*** 1,50 ****
! /*
! * @file ProgressionBuAdapter.java
! * @creation 2002-11-21
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
! package org.fudaa.dodico.commun;
!
! import com.memoire.bu.BuTask;
! /**
! * une interface pour mettre a jour la progression.
! *
! * @version $Id$
! * @author Fred Deniger
! */
! public class ProgressionBuAdapter
! implements ProgressionInterface
! {
! private BuTask t_;
!
! public ProgressionBuAdapter()
! {
! this(null);
! }
!
! public ProgressionBuAdapter(BuTask _t)
! {
! t_=_t;
! }
!
! public void setTask(BuTask _t)
! {
! t_=_t;
! }
!
!
! public void setProgression(int _v)
! {
! if(t_!=null) t_.setProgression(_v);
! }
!
! public void setDesc(String _s)
! {
! if(t_!=null) t_.setName(_s);
! }
! }
!
!
--- 1 ----
! /*
* @file ProgressionBuAdapter.java
* @creation 2002-11-21
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.commun;
import com.memoire.bu.BuTask;
/**
* une interface pour mettre a jour la progression.
*
* @version $Id$
* @author Fred Deniger
*/
public class ProgressionBuAdapter implements ProgressionInterface {
private BuTask t_;
public ProgressionBuAdapter() {
this(null);
}
public ProgressionBuAdapter(BuTask _t) {
t_= _t;
}
public void setTask(BuTask _t) {
t_= _t;
}
public void setProgression(int _v) {
if (t_ != null)
t_.setProgression(_v);
}
public void setDesc(String _s) {
if (t_ != null)
t_.setName(_s);
}
}
\ No newline at end of file
Index: ProgressionInterface.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/commun/ProgressionInterface.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ProgressionInterface.java 22 Sep 2003 20:47:47 -0000 1.5
--- ProgressionInterface.java 29 Oct 2003 11:41:26 -0000 1.6
***************
*** 1,23 ****
! /*
! * @file ProgressionInterface.java
! * @creation 2002-11-21
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
! package org.fudaa.dodico.commun;
!
! /**
! * une interface pour mettre a jour la progression.
! *
! * @version $Id$
! * @author Fred Deniger
! */
! public interface ProgressionInterface
! {
! void setProgression(int _v);
! void setDesc(String _s);
! }
!
!
--- 1 ----
! /*
* @file ProgressionInterface.java
* @creation 2002-11-21
* @modification $Date$
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.commun;
/**
* une interface pour mettre a jour la progression.
*
* @version $Id$
* @author Fred Deniger
*/
public interface ProgressionInterface {
void setProgression(int _v);
void setDesc(String _s);
}
\ No newline at end of file
|
|
From: <jm_...@us...> - 2003-10-20 18:20:08
|
Update of /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/ihmhelper
In directory sc8-pr-cvs1:/tmp/cvs-serv19646/fudaa/src/org/fudaa/fudaa/hydraulique1d/ihmhelper
Modified Files:
Hydraulique1dIHM_Base.java
Hydraulique1dIHM_ResultatsGeneraux.java
Log Message:
Ajout de la liaison casier "Orifice".
Ajout d'un scrollPane pour les éditeurs de conditions initiales,
paramètres résultats, variables résultats et graphes résultats.
Amélioration des perfs pour l'affichage des résultats généraux en utilisant
les évènements du modèle hydrauliques1d.
Index: Hydraulique1dIHM_Base.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/ihmhelper/Hydraulique1dIHM_Base.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Hydraulique1dIHM_Base.java 18 Mar 2003 17:55:45 -0000 1.3
--- Hydraulique1dIHM_Base.java 20 Oct 2003 17:25:32 -0000 1.4
***************
*** 31,35 ****
/**
* @version $Revision$ $Date$ by $Author$
! * @author Axel von Arnim
*/
abstract public class Hydraulique1dIHM_Base
--- 31,35 ----
/**
* @version $Revision$ $Date$ by $Author$
! * @author Axel von Arnim
*/
abstract public class Hydraulique1dIHM_Base
***************
*** 120,125 ****
public void objetSupprime(IObjetEvent e) {
! System.out.println("Hydraulique1dIHM_BASE "+this.getClass().getName());
! System.out.println("objetSupprime(IObjetEvent e) e.getSource().enChaine()="+e.getSource().enChaine());
}
--- 120,125 ----
public void objetSupprime(IObjetEvent e) {
! // System.out.println("Hydraulique1dIHM_BASE "+this.getClass().getName());
! // System.out.println("objetSupprime(IObjetEvent e) e.getSource().enChaine()="+e.getSource().enChaine());
}
Index: Hydraulique1dIHM_ResultatsGeneraux.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/ihmhelper/Hydraulique1dIHM_ResultatsGeneraux.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Hydraulique1dIHM_ResultatsGeneraux.java 18 Mar 2003 17:55:45 -0000 1.3
--- Hydraulique1dIHM_ResultatsGeneraux.java 20 Oct 2003 17:25:32 -0000 1.4
***************
*** 57,60 ****
--- 57,83 ----
}
+ public void objetModifie(IObjetEvent e) {
+ if (edit_ == null) return;
+ if (etude_ == null) return;
+ if (etude_.resultatsGeneraux() == null) return;
+ if (e.getSource().enChaine().equals("resultatsGeneraux")) {
+ if (e.getChamp().equals("listing")) {
+ edit_.setListing(etude_.resultatsGeneraux().listing());
+ }
+ else if (e.getChamp().equals("listingDamocles")) {
+ edit_.setListingDamocle(etude_.resultatsGeneraux().listingDamocles());
+ }
+ else if (e.getChamp().equals("messagesEcran")) {
+ edit_.setMessagesEcran(etude_.resultatsGeneraux().messagesEcran());
+ }
+ else if (e.getChamp().equals("listingCasier")) {
+ edit_.setListingCasier(etude_.resultatsGeneraux().listingCasier());
+ }
+ else if (e.getChamp().equals("listingLiaison")) {
+ edit_.setListingLiaison(etude_.resultatsGeneraux().listingLiaison());
+ }
+ }
+ }
+
protected void installContextHelp(JComponent e)
{
|
|
From: <jm_...@us...> - 2003-10-20 18:12:48
|
Update of /cvsroot/fudaa//fudaa_devel/dodico/idl/code
In directory sc8-pr-cvs1:/tmp/cvs-serv19646/dodico/idl/code
Modified Files:
mascaret.idl
Log Message:
Ajout de la liaison casier "Orifice".
Ajout d'un scrollPane pour les éditeurs de conditions initiales,
paramètres résultats, variables résultats et graphes résultats.
Amélioration des perfs pour l'affichage des résultats généraux en utilisant
les évènements du modèle hydrauliques1d.
Index: mascaret.idl
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/dodico/idl/code/mascaret.idl,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** mascaret.idl 4 Aug 2003 17:41:26 -0000 1.6
--- mascaret.idl 20 Oct 2003 17:25:30 -0000 1.7
***************
*** 269,287 ****
struct SParametresLiaisons {
entier nbLiaisons; // nombre de liaisons
! ventier types; // liaison type : 1->liaison seuil, 2-> liaison chenal, 3-> liaison siphon
ventier nature; // liaison nature : 1->"liaison rivière-casier", 2->"liaison casier-casier"
vreel cote; // liaison cote (valeur de la cote de chaques liaisons )
! vreel largeur; // liaison largeur (largeur pour les liaisons de type chenal ou seuil, -1 pour un siphon)
! vreel longueur; // liaison longueur (longueur pour les liaisons de type chenal ou siphon, -1 pour un seuil)
vreel rugosite; // liaison rugosite (coefficients de Strickler pour les liaisons de type chenal,
! // -1 pour les seuils et siphons)
! vreel section; // liaison section (sections transverse pour les liaisons de type siphon, -1 pour les seuils
// et chenals)
vreel coefPerteCharge; // liaison coefficient perte de charge (coefficients pertes de charge pour les liaisons de
! // type siphon, -1 pour les seuils et chenals)
! vreel coefDebit; // liaison coefficient de debit (coefficients de débit pour les liaisons de type seuil,
// -1 pour les siphons et chenals)
vreel coefEnnoiment; // liaison coefficient d'ennoiment (coefficients d'ennoiment pour les liaisons de type seuil,
! // -1 pour les siphons et chenals)
ventier numCasierOrigine; // liaison numero casier origine (les numéros du casier amont pour une liaison de type "casier-casier"
// ou les numéros du casier associé pour une liaison "rivière-casier")
--- 269,292 ----
struct SParametresLiaisons {
entier nbLiaisons; // nombre de liaisons
! ventier types; // liaison type : 1->liaison seuil, 2-> liaison chenal, 3-> liaison siphon, 4-> liaison orifice
ventier nature; // liaison nature : 1->"liaison rivière-casier", 2->"liaison casier-casier"
vreel cote; // liaison cote (valeur de la cote de chaques liaisons )
! vreel largeur; // liaison largeur (largeur pour les liaisons de type chenal ou seuil ou orifice, -1 pour un siphon)
! vreel longueur; // liaison longueur (longueur pour les liaisons de type chenal ou siphon, -1 pour un seuil ou un orifice)
vreel rugosite; // liaison rugosite (coefficients de Strickler pour les liaisons de type chenal,
! // -1 pour les seuils et siphons et orifice)
! vreel section; // liaison section (sections transverse pour les liaisons de type siphon ou orifice, -1 pour les seuils
// et chenals)
vreel coefPerteCharge; // liaison coefficient perte de charge (coefficients pertes de charge pour les liaisons de
! // type siphon ou orifice, -1 pour les seuils et chenals)
! vreel coefDebit; // liaison coefficient de debit (coefficients de débit pour les liaisons de type seuil ou orifice,
// -1 pour les siphons et chenals)
vreel coefEnnoiment; // liaison coefficient d'ennoiment (coefficients d'ennoiment pour les liaisons de type seuil,
! // -1 pour les siphons et chenals et orifices)
! vreel coteMin; // liaison cote minimal (cote minimale pour les liaisons de type orifice,
! // -1 pour les autres)
! ventier typeOrifice; // liaison type orifice : 1->débit possible dans les 2 sens, 2-> débit possible uiniquement dans le sens casier origine vers casier fin,
! // 3-> débit possible uniquement dans le sens inverse. Type de l'orifice pour les liaisons de type orifice,
! // -1 pour les autres.
ventier numCasierOrigine; // liaison numero casier origine (les numéros du casier amont pour une liaison de type "casier-casier"
// ou les numéros du casier associé pour une liaison "rivière-casier")
|
|
From: <jm_...@us...> - 2003-10-20 17:59:15
|
Update of /cvsroot/fudaa//fudaa_devel/dodico/src/org/fudaa/dodico/mascaret
In directory sc8-pr-cvs1:/tmp/cvs-serv19646/dodico/src/org/fudaa/dodico/mascaret
Modified Files:
CConversionHydraulique1d.java DParametresMascaret.java
Log Message:
Ajout de la liaison casier "Orifice".
Ajout d'un scrollPane pour les éditeurs de conditions initiales,
paramètres résultats, variables résultats et graphes résultats.
Amélioration des perfs pour l'affichage des résultats généraux en utilisant
les évènements du modèle hydrauliques1d.
Index: CConversionHydraulique1d.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/dodico/src/org/fudaa/dodico/mascaret/CConversionHydraulique1d.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** CConversionHydraulique1d.java 17 Oct 2003 16:22:06 -0000 1.7
--- CConversionHydraulique1d.java 20 Oct 2003 17:25:31 -0000 1.8
***************
*** 1,1765 ****
! /*
! * @file CConversionHydraulique1d.java
! * @creation 2000-08-10
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 EDF/LNHE
! * @mail de...@fu...
! */
!
! package org.fudaa.dodico.mascaret;
[...3511 lines suppressed...]
! }
! if (indexeFrotMin!=-1) pt.coefFrottementMin(section.valeurs[indexeFrotMin]);
! newLigneEau.add(pt);
! }
! }
! ILigneEauPoint[] points = new ILigneEauPoint[newLigneEau.size()];
! for (int i=0 ; i<points.length ; i++) {
! points[i] = (ILigneEauPoint)newLigneEau.get(i);
! }
! return points;
! }
!
! private static int rechercheIndexe(String nomCourt, SResultatsVariable[] variables) {
! int indexe = -1;
! for (indexe=0; indexe< variables.length ; indexe++) {
! if (nomCourt.equals(variables[indexe].nomCourt)) return indexe;
! }
! return -1;
! }
! }
Index: DParametresMascaret.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/dodico/src/org/fudaa/dodico/mascaret/DParametresMascaret.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** DParametresMascaret.java 17 Oct 2003 16:22:07 -0000 1.5
--- DParametresMascaret.java 20 Oct 2003 17:25:31 -0000 1.6
***************
*** 1,1157 ****
! /*
! * @file DParametresMascaret.java
! * @creation 2000-05-10
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 EDF/LNHE
! * @mail de...@fu...
! */
!
! package org.fudaa.dodico.mascaret;
[...2287 lines suppressed...]
! fnca.stringField(0, params.nom);
! fnca.writeFields();
! fnca.close();
! } catch(Exception ex) {
! ex.printStackTrace(System.err);
! System.err.println("IT: "+ ex);
! }
! }
!
! //******************* EXTENSIONS DODICO ***********************
! // public SParametresEXT parametresEXT()
! // {
! // return paramsEXT_;
! // }
!
! // public void parametresEXT(SParametresEXT _paramsEXT)
! // {
! // paramsEXT_ = _paramsEXT;
! // }
! }
|
|
From: <jm_...@us...> - 2003-10-20 17:47:49
|
Update of /cvsroot/fudaa//fudaa_devel/dodico/idl/metier
In directory sc8-pr-cvs1:/tmp/cvs-serv19646/dodico/idl/metier
Modified Files:
hydraulique1d.idl
Log Message:
Ajout de la liaison casier "Orifice".
Ajout d'un scrollPane pour les éditeurs de conditions initiales,
paramètres résultats, variables résultats et graphes résultats.
Amélioration des perfs pour l'affichage des résultats généraux en utilisant
les évènements du modèle hydrauliques1d.
Index: hydraulique1d.idl
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/dodico/idl/metier/hydraulique1d.idl,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** hydraulique1d.idl 4 Aug 2003 17:40:40 -0000 1.6
--- hydraulique1d.idl 20 Oct 2003 17:25:30 -0000 1.7
***************
*** 1,1266 ****
! /*
! * @file hydraulique1d.idl
! * @creation 2000-05-17
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
!
! #ifndef _HYDRAULIQUE1D_IDL
[...2529 lines suppressed...]
! booleen isPlanimetrage();
! rien toPlanimetrage();
! };
!
! //************************************************************************/
! //* FIN DONNEES CASIER */
! //************************************************************************/
!
! //************************************************************************/
! //* CALCUL */
! //************************************************************************/
!
! interface ICalculHydraulique1d : iservice //::calcul::ICalculMetier
! {
! attribute calcul::ICalcul calculCode;
! attribute IEtude1d etude;
! };
! };
!
! #endif
|
|
From: <jm_...@us...> - 2003-10-20 17:34:16
|
Update of /cvsroot/fudaa//fudaa_devel/dodico/src/org/fudaa/dodico/hydraulique1d/casier
In directory sc8-pr-cvs1:/tmp/cvs-serv19646/dodico/src/org/fudaa/dodico/hydraulique1d/casier
Modified Files:
DCaracteristiqueLiaison.java
Added Files:
DOrificeLiaison.java
Log Message:
Ajout de la liaison casier "Orifice".
Ajout d'un scrollPane pour les éditeurs de conditions initiales,
paramètres résultats, variables résultats et graphes résultats.
Amélioration des perfs pour l'affichage des résultats généraux en utilisant
les évènements du modèle hydrauliques1d.
--- NEW FILE: DOrificeLiaison.java ---
/*
* @file DOrificeLiaison.java
* @creation 2003-10-20
* @modification $Date: 2003/10/20 17:25:31 $
* @license GNU General Public License 2
* @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
* @mail de...@fu...
*/
package org.fudaa.dodico.hydraulique1d.casier;
import org.fudaa.dodico.corba.objet.*;
import org.fudaa.dodico.objet.*;
import org.fudaa.dodico.corba.hydraulique1d.*;
import org.fudaa.dodico.corba.hydraulique1d.casier.*;
import java.util.*;
/**
* @version $Revision: 1.1 $ $Date: 2003/10/20 17:25:31 $ by $Author: jm_lacombe $
* @author Jean-Marc Lacombe
*/
public final class DOrificeLiaison
extends DCaracteristiqueLiaison
implements IOrificeLiaisonOperations
{
public void initialise(IObjet _o)
{
super.initialise(_o);
if(_o instanceof IOrificeLiaison) {
IOrificeLiaison q=(IOrificeLiaison)_o;
coefPerteCharge(q.coefPerteCharge());
coefQ(q.coefQ());
coteMin(q.coteMin());
largeur(q.largeur());
section(q.section());
sensDebit(LSensDebitLiaison.from_int(q.sensDebit().value()));
}
}
final public IObjet creeClone()
{
IOrificeLiaison p=CDodico.findUsine().creeHydraulique1dOrificeLiaison();
p.initialise(tie());
return p;
}
public String[] getInfos()
{
String[] res = new String[2];
res[0]="Orifice";
res[1]=super.getInfos()[1]+" larg. : "+largeur_+" coef. Q : "+coefQ_+" coef. Perte Charge : "+coefPerteCharge_+" cote min : "+coteMin_;
return res;
}
/*** ILiaison ***/
// constructeurs
public DOrificeLiaison()
{
super();
largeur_=1;
coefQ_=0.40;
section_=1;
coefPerteCharge_=0.5;
coteMin_=1;
sensDebit_=LSensDebitLiaison.DEUX_SENS;
}
public void dispose()
{
id_=0;
largeur_=0;
coefQ_=0;
section_=0;
coefPerteCharge_=0;
coteMin_=0;
sensDebit_=null;
super.dispose();
}
/*** ISeuilLiaison ***/
// attributs
private double largeur_;
public double largeur() {
return largeur_;
}
public void largeur(double s) {
largeur_=s;
CDodico.findUsine().fireObjetModifie(toString(), tie(), "largeur");
}
private double coefQ_;
public double coefQ() {
return coefQ_;
}
public void coefQ(double s) {
coefQ_=s;
CDodico.findUsine().fireObjetModifie(toString(), tie(), "coefQ");
}
private double section_;
public double section() {
return section_;
}
public void section(double s) {
section_=s;
CDodico.findUsine().fireObjetModifie(toString(), tie(), "section");
}
private double coefPerteCharge_;
public double coefPerteCharge() {
return coefPerteCharge_;
}
public void coefPerteCharge(double s) {
coefPerteCharge_=s;
CDodico.findUsine().fireObjetModifie(toString(), tie(), "coefPerteCharge");
}
private double coteMin_;
public double coteMin() {
return coteMin_;
}
public void coteMin(double s) {
coteMin_=s;
CDodico.findUsine().fireObjetModifie(toString(), tie(), "coteMin");
}
private LSensDebitLiaison sensDebit_;
public LSensDebitLiaison sensDebit() {
return sensDebit_;
}
public void sensDebit(LSensDebitLiaison s) {
sensDebit_=s;
CDodico.findUsine().fireObjetModifie(toString(), tie(), "sensDebit");
}
// méthodes
public boolean isOrifice(){
return true;
}
public double getLargeur(){
return largeur();
}
public void setLargeur(double largeur){
largeur(largeur);
}
public double getCoefQ(){
return coefQ();
}
public void setCoefQ(double coefQ){
coefQ(coefQ);
}
public double getSection(){
return section();
}
public void setSection(double section){
section(section);
}
public double getCoefPerteCharge(){
return coefPerteCharge();
}
public void setCoefPerteCharge(double coefPerteCharge){
coefPerteCharge(coefPerteCharge);
}
public double getCoteMin(){
return coteMin();
}
public void setCoteMin(double coteMin){
coteMin(coteMin);
}
public LSensDebitLiaison getSensDebit(){
return sensDebit();
}
public void setSensDebit(LSensDebitLiaison sensDebit){
sensDebit(sensDebit);
}
}
Index: DCaracteristiqueLiaison.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/dodico/src/org/fudaa/dodico/hydraulique1d/casier/DCaracteristiqueLiaison.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** DCaracteristiqueLiaison.java 22 Jul 2003 13:32:22 -0000 1.2
--- DCaracteristiqueLiaison.java 20 Oct 2003 17:25:31 -0000 1.3
***************
*** 89,92 ****
--- 89,96 ----
}
+ public boolean isOrifice(){
+ return false;
+ }
+
public double getCote(){
return cote();
***************
*** 151,154 ****
--- 155,174 ----
public void setCoefPerteCharge(double coefPerteCharge){
throw new IllegalArgumentException("methode invalide : setCoefPerteCharge()");
+ }
+
+ public double getCoteMin(){
+ throw new IllegalArgumentException("methode invalide : getCoteMin()");
+ }
+
+ public void setCoteMin(double coteMin){
+ throw new IllegalArgumentException("methode invalide : setCoteMin()");
+ }
+
+ public LSensDebitLiaison getSensDebit(){
+ throw new IllegalArgumentException("methode invalide : getSensDebit()");
+ }
+
+ public void setSensDebit(LSensDebitLiaison sensDebit){
+ throw new IllegalArgumentException("methode invalide : setSensDebit()");
}
}
|
|
From: <jm_...@us...> - 2003-10-20 17:31:40
|
Update of /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor
In directory sc8-pr-cvs1:/tmp/cvs-serv19646/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor
Modified Files:
Hydraulique1dConditionsInitialesEditor.java
Hydraulique1dGraphesResultatsEditor.java
Hydraulique1dParametresResultatsEditor.java
Hydraulique1dResultatsGenerauxEditor.java
Hydraulique1dVariablesResultatsEditor.java
Log Message:
Ajout de la liaison casier "Orifice".
Ajout d'un scrollPane pour les éditeurs de conditions initiales,
paramètres résultats, variables résultats et graphes résultats.
Amélioration des perfs pour l'affichage des résultats généraux en utilisant
les évènements du modèle hydrauliques1d.
Index: Hydraulique1dConditionsInitialesEditor.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor/Hydraulique1dConditionsInitialesEditor.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Hydraulique1dConditionsInitialesEditor.java 18 Mar 2003 17:50:30 -0000 1.3
--- Hydraulique1dConditionsInitialesEditor.java 20 Oct 2003 17:25:31 -0000 1.4
***************
*** 197,201 ****
pnCondInitiales_.add(pnBtVisuReprise_, n++);
! pnMain_.add(pnCondInitiales_, BorderLayout.CENTER);
setNavPanel(EbliPreferences.DIALOG.VALIDER | EbliPreferences.DIALOG.ANNULER);
--- 197,202 ----
pnCondInitiales_.add(pnBtVisuReprise_, n++);
! BuScrollPane scrlpEditor = new BuScrollPane(pnCondInitiales_);
! pnMain_.add(scrlpEditor, BorderLayout.CENTER);
setNavPanel(EbliPreferences.DIALOG.VALIDER | EbliPreferences.DIALOG.ANNULER);
Index: Hydraulique1dGraphesResultatsEditor.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor/Hydraulique1dGraphesResultatsEditor.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Hydraulique1dGraphesResultatsEditor.java 4 Aug 2003 17:50:07 -0000 1.5
--- Hydraulique1dGraphesResultatsEditor.java 20 Oct 2003 17:25:31 -0000 1.6
***************
*** 118,122 ****
new EmptyBorder(new Insets(5, 5, 5, 5))));
! getContentPane().add(pnGraphesResultats_, BuBorderLayout.CENTER);
cmbListeBiefCasierLiaison_.setActionCommand("LISTE_COMBO");
--- 118,122 ----
new EmptyBorder(new Insets(5, 5, 5, 5))));
! getContentPane().add(new BuScrollPane(pnGraphesResultats_), BuBorderLayout.CENTER);
cmbListeBiefCasierLiaison_.setActionCommand("LISTE_COMBO");
Index: Hydraulique1dParametresResultatsEditor.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor/Hydraulique1dParametresResultatsEditor.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Hydraulique1dParametresResultatsEditor.java 18 Mar 2003 17:50:27 -0000 1.3
--- Hydraulique1dParametresResultatsEditor.java 20 Oct 2003 17:25:32 -0000 1.4
***************
*** 327,331 ****
pnParametres_.add(pnVarEnregistres_, n++);
! pnMain_.add(pnParametres_, BorderLayout.CENTER);
setNavPanel(EbliPreferences.DIALOG.VALIDER);
--- 327,332 ----
pnParametres_.add(pnVarEnregistres_, n++);
! BuScrollPane scrlpEditor = new BuScrollPane(pnParametres_);
! pnMain_.add(scrlpEditor, BorderLayout.CENTER);
setNavPanel(EbliPreferences.DIALOG.VALIDER);
Index: Hydraulique1dResultatsGenerauxEditor.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor/Hydraulique1dResultatsGenerauxEditor.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Hydraulique1dResultatsGenerauxEditor.java 17 Oct 2003 16:26:08 -0000 1.6
--- Hydraulique1dResultatsGenerauxEditor.java 20 Oct 2003 17:25:32 -0000 1.7
***************
*** 31,35 ****
* @author Jean-Marc Lacombe
*/
! public class Hydraulique1dResultatsGenerauxEditor
extends Hydraulique1dCustomizer
implements ActionListener
--- 31,35 ----
* @author Jean-Marc Lacombe
*/
! public final class Hydraulique1dResultatsGenerauxEditor
extends Hydraulique1dCustomizer
implements ActionListener
***************
*** 101,144 ****
setValeurs();
}
- protected boolean isObjectModificationImportant(IObjet o) {
- return false;
- }
! protected boolean getValeurs() {
! return false;
}
! protected void setValeurs() {
! if ((param_.messagesEcran()==null)||(param_.messagesEcran().length==0)) {
txtaEcran_.setText("");
tbpResultatsGeneraux_.getComponent(0).setEnabled(false);
}
else {
! txtaEcran_.setText(new String(param_.messagesEcran()));
}
! if ((param_.listingDamocles()==null)||(param_.listingDamocles().length==0)) {
txtaDamocle_.setText("");
tbpResultatsGeneraux_.getComponent(1).setEnabled(false);
}
else {
! txtaDamocle_.setText(new String(param_.listingDamocles()));
}
! if ((param_.listing()==null)||(param_.listing().length==0)) {
txtaListing_.setText("");
tbpResultatsGeneraux_.getComponent(2).setEnabled(false);
}
else {
! txtaListing_.setText(new String(param_.listing()));
}
int indexCasier = tbpResultatsGeneraux_.indexOfTab("Listing Casier");
! if ((param_.listingCasier()==null)||(param_.listingCasier().length==0)) {
if (indexCasier != -1) tbpResultatsGeneraux_.removeTabAt(indexCasier);
txtaCasier_.setText("");
}
else {
! txtaCasier_.setText(new String(param_.listingCasier()));
if (indexCasier == -1) tbpResultatsGeneraux_.addTab("Listing Casier",scrlpCasier_);
}
int indexLiaison = tbpResultatsGeneraux_.indexOfTab("Listing Liaison");
--- 101,179 ----
setValeurs();
}
! public void show()
! {
! super.activate();
}
! public void setMessagesEcran(byte[] messageEcran) {
! if ( (messageEcran==null) || (messageEcran.length==0) ) {
txtaEcran_.setText("");
tbpResultatsGeneraux_.getComponent(0).setEnabled(false);
}
else {
! txtaEcran_.setText(new String(messageEcran));
}
! }
!
! public void setListingDamocle(byte[] listingDamoc) {
! if ( (listingDamoc==null) || (listingDamoc.length==0) ) {
txtaDamocle_.setText("");
tbpResultatsGeneraux_.getComponent(1).setEnabled(false);
}
else {
! txtaDamocle_.setText(new String(listingDamoc));
}
! }
!
! public void setListing(byte[] listing) {
! if ( (listing==null) || (listing.length==0) ) {
txtaListing_.setText("");
tbpResultatsGeneraux_.getComponent(2).setEnabled(false);
}
else {
! txtaListing_.setText(new String(listing));
}
+ }
+ public void setListingCasier(byte[] listingCasier) {
int indexCasier = tbpResultatsGeneraux_.indexOfTab("Listing Casier");
! if ((listingCasier==null)||(listingCasier.length==0)) {
if (indexCasier != -1) tbpResultatsGeneraux_.removeTabAt(indexCasier);
txtaCasier_.setText("");
}
else {
! txtaCasier_.setText(new String(listingCasier));
if (indexCasier == -1) tbpResultatsGeneraux_.addTab("Listing Casier",scrlpCasier_);
}
+ }
+
+ public void setListingLiaison(byte[] listingLiaison) {
+ int indexLiaison = tbpResultatsGeneraux_.indexOfTab("Listing Liaison");
+ if ((listingLiaison==null)||(listingLiaison.length==0)) {
+ if (indexLiaison != -1) tbpResultatsGeneraux_.removeTabAt(indexLiaison);
+ txtaLiaison_.setText("");
+ }
+ else {
+ txtaLiaison_.setText(new String(listingLiaison));
+ if (indexLiaison == -1) tbpResultatsGeneraux_.addTab("Listing Liaison",scrlpLiaison_);
+ }
+ }
+
+ protected boolean isObjectModificationImportant(IObjet o) {
+ return false;
+ }
+
+ protected boolean getValeurs() {
+ return false;
+ }
+
+ protected void setValeurs() {
+ System.out.println("Hydraulique1dResultatsGenerauxEditor.setValeurs()");
+ setMessagesEcran(param_.messagesEcran());
+ setListingDamocle(param_.listingDamocles());
+ setListing(param_.listing());
+
+ setListingCasier(param_.listingCasier());
int indexLiaison = tbpResultatsGeneraux_.indexOfTab("Listing Liaison");
Index: Hydraulique1dVariablesResultatsEditor.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor/Hydraulique1dVariablesResultatsEditor.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Hydraulique1dVariablesResultatsEditor.java 18 Mar 2003 17:50:27 -0000 1.3
--- Hydraulique1dVariablesResultatsEditor.java 20 Oct 2003 17:25:32 -0000 1.4
***************
*** 210,214 ****
pnVariables_.add(new BuLabel(""), n++);
! pnMain_.add(pnVariables_, BorderLayout.CENTER);
setNavPanel(EbliPreferences.DIALOG.VALIDER | EbliPreferences.DIALOG.ANNULER);
--- 210,214 ----
pnVariables_.add(new BuLabel(""), n++);
! pnMain_.add(new BuScrollPane(pnVariables_), BorderLayout.CENTER);
setNavPanel(EbliPreferences.DIALOG.VALIDER | EbliPreferences.DIALOG.ANNULER);
|
|
From: <jm_...@us...> - 2003-10-20 17:31:35
|
Update of /cvsroot/fudaa//fudaa_devel/dodico/src/org/fudaa/dodico/hydraulique1d
In directory sc8-pr-cvs1:/tmp/cvs-serv19646/dodico/src/org/fudaa/dodico/hydraulique1d
Modified Files:
DLiaison.java
Log Message:
Ajout de la liaison casier "Orifice".
Ajout d'un scrollPane pour les éditeurs de conditions initiales,
paramètres résultats, variables résultats et graphes résultats.
Amélioration des perfs pour l'affichage des résultats généraux en utilisant
les évènements du modèle hydrauliques1d.
Index: DLiaison.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/dodico/src/org/fudaa/dodico/hydraulique1d/DLiaison.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** DLiaison.java 22 Jul 2003 13:34:24 -0000 1.2
--- DLiaison.java 20 Oct 2003 17:25:31 -0000 1.3
***************
*** 16,19 ****
--- 16,20 ----
import org.fudaa.dodico.corba.hydraulique1d.ILiaison;
import org.fudaa.dodico.corba.hydraulique1d.ILiaisonOperations;
+ import org.fudaa.dodico.corba.hydraulique1d.LSensDebitLiaison;
import org.fudaa.dodico.corba.hydraulique1d.casier.ITopologieLiaison;
import org.fudaa.dodico.corba.hydraulique1d.casier.ICaracteristiqueLiaison;
***************
*** 208,211 ****
--- 209,222 ----
}
+ public boolean isOrifice(){
+ return caracteristiques_.isOrifice();
+ }
+
+ public void toOrifice(){
+ if (isOrifice()) return;
+ ICaracteristiqueLiaison carac = CDodico.findUsine().creeHydraulique1dOrificeLiaison();
+ caracteristiques(carac);
+ }
+
public double getCote(){
return caracteristiques_.getCote();
***************
*** 216,219 ****
--- 227,238 ----
}
+ public double getCoteMin(){
+ return caracteristiques_.getCoteMin();
+ }
+
+ public void setCoteMin(double coteMin){
+ caracteristiques_.setCoteMin(coteMin);
+ }
+
public double getLargeur(){
return caracteristiques_.getLargeur();
***************
*** 270,273 ****
--- 289,300 ----
public void setCoefPerteCharge(double coefPerteCharge){
caracteristiques_.setCoefPerteCharge(coefPerteCharge);
+ }
+
+ public LSensDebitLiaison getSensDebit(){
+ return caracteristiques_.getSensDebit();
+ }
+
+ public void setSensDebit(LSensDebitLiaison sensDebit){
+ caracteristiques_.setSensDebit(sensDebit);
}
}
|
Update of /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor
In directory sc8-pr-cvs1:/tmp/cvs-serv8255/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor
Modified Files:
Hydraulique1dNoyauEditor.java
Hydraulique1dParametresGenerauxAvancesEditor.java
Hydraulique1dParametresGenerauxEditor.java
Hydraulique1dResultatsGenerauxEditor.java
Hydraulique1dSeuilChooser.java
Hydraulique1dSeuilLoiEditor.java
Hydraulique1dSeuilTransEditor.java
Log Message:
Désactivation de la fonction Casier et des nouveautés de mascaret V5P2.
Index: Hydraulique1dNoyauEditor.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor/Hydraulique1dNoyauEditor.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Hydraulique1dNoyauEditor.java 4 Aug 2003 17:50:07 -0000 1.4
--- Hydraulique1dNoyauEditor.java 17 Oct 2003 16:26:08 -0000 1.5
***************
*** 72,76 ****
new EmptyBorder(new Insets(5, 5, 5, 5))));
! lbVersion_ = new BuLabel("MASCARET 5.2");
lbVersion_.setBorder(new LineBorder(Color.black));
pnVersion_.add(new BuLabel("Version"),0);
--- 72,76 ----
new EmptyBorder(new Insets(5, 5, 5, 5))));
! lbVersion_ = new BuLabel("MASCARET 5.1");
lbVersion_.setBorder(new LineBorder(Color.black));
pnVersion_.add(new BuLabel("Version"),0);
Index: Hydraulique1dParametresGenerauxAvancesEditor.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor/Hydraulique1dParametresGenerauxAvancesEditor.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Hydraulique1dParametresGenerauxAvancesEditor.java 22 Jul 2003 13:37:19 -0000 1.4
--- Hydraulique1dParametresGenerauxAvancesEditor.java 17 Oct 2003 16:26:08 -0000 1.5
***************
*** 177,194 ****
pnImplicitMascaret_.add(pnRepImplicitMascaret_, n++);
! n=0;
! rbPerteChargeAutoElargOui_ = new BuRadioButton("Oui");
! rbPerteChargeAutoElargOui_.addActionListener(this);
! rbPerteChargeAutoElargOui_.setActionCommand("PERTE_CHARGE_AUTO_ELARG");
! rbPerteChargeAutoElargNon_ = new BuRadioButton("Non");
! rbPerteChargeAutoElargNon_.addActionListener(this);
! rbPerteChargeAutoElargNon_.setActionCommand("PAS_PERTE_CHARGE_AUTO_ELARG");
! n=0;
! pnRepPerteChargeAutoElarg_.add(rbPerteChargeAutoElargOui_,n++);
! pnRepPerteChargeAutoElarg_.add(rbPerteChargeAutoElargNon_,n++);
! n=0;
! pnPerteChargeAutoElarg_.add(new BuLabelMultiLine("Perte de charge automatique\nen cas d'élargissement ?"), n++);
! pnPerteChargeAutoElarg_.add(pnRepPerteChargeAutoElarg_, n++);
tfFroude_ = BuTextField.createDoubleField();
--- 177,197 ----
pnImplicitMascaret_.add(pnRepImplicitMascaret_, n++);
! if (CGlobal.autorisationPerteChargeAutoElarg) {
! n = 0;
! rbPerteChargeAutoElargOui_ = new BuRadioButton("Oui");
! rbPerteChargeAutoElargOui_.addActionListener(this);
! rbPerteChargeAutoElargOui_.setActionCommand("PERTE_CHARGE_AUTO_ELARG");
! rbPerteChargeAutoElargNon_ = new BuRadioButton("Non");
! rbPerteChargeAutoElargNon_.addActionListener(this);
! rbPerteChargeAutoElargNon_.setActionCommand("PAS_PERTE_CHARGE_AUTO_ELARG");
! n = 0;
! pnRepPerteChargeAutoElarg_.add(rbPerteChargeAutoElargOui_, n++);
! pnRepPerteChargeAutoElarg_.add(rbPerteChargeAutoElargNon_, n++);
! n = 0;
! pnPerteChargeAutoElarg_.add(new BuLabelMultiLine(
! "Perte de charge automatique\nen cas d'élargissement ?"), n++);
! pnPerteChargeAutoElarg_.add(pnRepPerteChargeAutoElarg_, n++);
! }
tfFroude_ = BuTextField.createDoubleField();
***************
*** 211,215 ****
pnParamGenerauxAvances_.add(pnImplicitFrot_, n++);
pnParamGenerauxAvances_.add(pnImplicitMascaret_, n++);
! pnParamGenerauxAvances_.add(pnPerteChargeAutoElarg_, n++);
pnParamGenerauxAvances_.add(pnFroude_, n++);
pnParamGenerauxAvances_.add(pnSurelevation_, n++);
--- 214,220 ----
pnParamGenerauxAvances_.add(pnImplicitFrot_, n++);
pnParamGenerauxAvances_.add(pnImplicitMascaret_, n++);
! if (CGlobal.autorisationPerteChargeAutoElarg) {
! pnParamGenerauxAvances_.add(pnPerteChargeAutoElarg_, n++);
! }
pnParamGenerauxAvances_.add(pnFroude_, n++);
pnParamGenerauxAvances_.add(pnSurelevation_, n++);
***************
*** 308,315 ****
}
! boolean perteChargeAutoElarg = rbPerteChargeAutoElargOui_.isSelected();
! if ( perteChargeAutoElarg != param_.perteChargeAutoElargissement() ) {
! param_.perteChargeAutoElargissement(perteChargeAutoElarg);
! changed=true;
}
--- 313,322 ----
}
! if (CGlobal.autorisationPerteChargeAutoElarg) {
! boolean perteChargeAutoElarg = rbPerteChargeAutoElargOui_.isSelected();
! if (perteChargeAutoElarg != param_.perteChargeAutoElargissement()) {
! param_.perteChargeAutoElargissement(perteChargeAutoElarg);
! changed = true;
! }
}
***************
*** 339,381 ****
}
protected void setValeurs() {
! if (param_.compositionLits().value() == LTypeCompositionLits._MINEUR_MAJEUR) {
! rbDebord_.setSelected(true);
! rbFondBerge_.setSelected(false);
}
else {
! rbDebord_.setSelected(false);
! rbFondBerge_.setSelected(true);
}
! if (param_.interpolationLineaireCoefFrottement() ) {
! rbInterpolOui_.setSelected(true);
! rbInterpolNon_.setSelected(false);
}
else {
! rbInterpolOui_.setSelected(false);
! rbInterpolNon_.setSelected(true);
}
! if (param_.traitementImpliciteFrottements() ) {
! rbImplicitFrotOui_.setSelected(true);
! rbImplicitFrotNon_.setSelected(false);
}
else {
! rbImplicitFrotOui_.setSelected(false);
! rbImplicitFrotNon_.setSelected(true);
}
! if (param_.implicitationNoyauTrans() ) {
! rbImplicitMascaretOui_.setSelected(true);
! rbImplicitMascaretNon_.setSelected(false);
}
else {
! rbImplicitMascaretOui_.setSelected(false);
! rbImplicitMascaretNon_.setSelected(true);
! }
! if (param_.perteChargeAutoElargissement() ) {
! rbPerteChargeAutoElargOui_.setSelected(true);
! rbPerteChargeAutoElargNon_.setSelected(false);
}
! else {
! rbPerteChargeAutoElargOui_.setSelected(false);
! rbPerteChargeAutoElargNon_.setSelected(true);
}
tfFroude_.setValue(new Double(param_.froudeLimConditionLimite()));
--- 346,391 ----
}
protected void setValeurs() {
! if (param_.compositionLits().value() ==
! LTypeCompositionLits._MINEUR_MAJEUR) {
! rbDebord_.setSelected(true);
! rbFondBerge_.setSelected(false);
}
else {
! rbDebord_.setSelected(false);
! rbFondBerge_.setSelected(true);
}
! if (param_.interpolationLineaireCoefFrottement()) {
! rbInterpolOui_.setSelected(true);
! rbInterpolNon_.setSelected(false);
}
else {
! rbInterpolOui_.setSelected(false);
! rbInterpolNon_.setSelected(true);
}
! if (param_.traitementImpliciteFrottements()) {
! rbImplicitFrotOui_.setSelected(true);
! rbImplicitFrotNon_.setSelected(false);
}
else {
! rbImplicitFrotOui_.setSelected(false);
! rbImplicitFrotNon_.setSelected(true);
}
! if (param_.implicitationNoyauTrans()) {
! rbImplicitMascaretOui_.setSelected(true);
! rbImplicitMascaretNon_.setSelected(false);
}
else {
! rbImplicitMascaretOui_.setSelected(false);
! rbImplicitMascaretNon_.setSelected(true);
}
! if (CGlobal.autorisationPerteChargeAutoElarg) {
! if (param_.perteChargeAutoElargissement()) {
! rbPerteChargeAutoElargOui_.setSelected(true);
! rbPerteChargeAutoElargNon_.setSelected(false);
! }
! else {
! rbPerteChargeAutoElargOui_.setSelected(false);
! rbPerteChargeAutoElargNon_.setSelected(true);
! }
}
tfFroude_.setValue(new Double(param_.froudeLimConditionLimite()));
***************
*** 386,391 ****
rbImplicitMascaretOui_.setEnabled(false);
rbImplicitMascaretNon_.setEnabled(false);
! rbPerteChargeAutoElargOui_.setEnabled(false);
! rbPerteChargeAutoElargNon_.setEnabled(false);
tfFroude_.setEnabled(false);
tfSurelevation_.setEnabled(false);
--- 396,403 ----
rbImplicitMascaretOui_.setEnabled(false);
rbImplicitMascaretNon_.setEnabled(false);
! if (CGlobal.autorisationPerteChargeAutoElarg) {
! rbPerteChargeAutoElargOui_.setEnabled(false);
! rbPerteChargeAutoElargNon_.setEnabled(false);
! }
tfFroude_.setEnabled(false);
tfSurelevation_.setEnabled(false);
Index: Hydraulique1dParametresGenerauxEditor.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor/Hydraulique1dParametresGenerauxEditor.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Hydraulique1dParametresGenerauxEditor.java 22 Jul 2003 13:37:19 -0000 1.4
--- Hydraulique1dParametresGenerauxEditor.java 17 Oct 2003 16:26:08 -0000 1.5
***************
*** 228,233 ****
pnBoutonsLaissFrotCasier_.add(btLaisseCrue_);
pnBoutonsLaissFrotCasier_.add(btZonesFrot_);
! pnBoutonsLaissFrotCasier_.add(btCasier_);
! // pnBoutonsLaissFrot_.add(btZonesStock_, BuBorderLayout.EAST);
n=0;
--- 228,234 ----
pnBoutonsLaissFrotCasier_.add(btLaisseCrue_);
pnBoutonsLaissFrotCasier_.add(btZonesFrot_);
! if (CGlobal.autorisationCasier) {
! pnBoutonsLaissFrotCasier_.add(btCasier_);
! }
n=0;
Index: Hydraulique1dResultatsGenerauxEditor.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor/Hydraulique1dResultatsGenerauxEditor.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Hydraulique1dResultatsGenerauxEditor.java 4 Aug 2003 17:50:07 -0000 1.5
--- Hydraulique1dResultatsGenerauxEditor.java 17 Oct 2003 16:26:08 -0000 1.6
***************
*** 133,139 ****
int indexCasier = tbpResultatsGeneraux_.indexOfTab("Listing Casier");
- System.out.println("Hydraulique1dResultatsGenerauxEditor : setValeurs()");
- System.out.println("indexCasier="+indexCasier);
- System.out.println("param_.listingCasier()="+param_.listingCasier());
if ((param_.listingCasier()==null)||(param_.listingCasier().length==0)) {
if (indexCasier != -1) tbpResultatsGeneraux_.removeTabAt(indexCasier);
--- 133,136 ----
***************
*** 146,151 ****
int indexLiaison = tbpResultatsGeneraux_.indexOfTab("Listing Liaison");
- System.out.println("indexLiaison="+indexLiaison);
- System.out.println("param_.listingLiaison()="+param_.listingLiaison());
if ((param_.listingLiaison()==null)||(param_.listingLiaison().length==0)) {
if (indexLiaison != -1) tbpResultatsGeneraux_.removeTabAt(indexLiaison);
--- 143,146 ----
Index: Hydraulique1dSeuilChooser.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor/Hydraulique1dSeuilChooser.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Hydraulique1dSeuilChooser.java 22 Jul 2003 13:37:19 -0000 1.4
--- Hydraulique1dSeuilChooser.java 17 Oct 2003 16:26:08 -0000 1.5
***************
*** 46,50 ****
transcritique_ = transcritique;
init();
- System.err.println("Hydraulique1dSeuilChooser: <init> fin");
}
--- 46,49 ----
Index: Hydraulique1dSeuilLoiEditor.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor/Hydraulique1dSeuilLoiEditor.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Hydraulique1dSeuilLoiEditor.java 4 Aug 2003 17:50:07 -0000 1.5
--- Hydraulique1dSeuilLoiEditor.java 17 Oct 2003 16:26:08 -0000 1.6
***************
*** 149,158 ****
pnQ_.add(tfQ_, 1);
! cbEpaisseur_= new BuComboBox(TYPE_EPAISSEUR);
! cbEpaisseur_.setEditable(true);
! BuLabel lbEpaisseur = new BuLabel("Epaisseur");
! lbEpaisseur.setPreferredSize(dimLabel);
! pnEpaisseur_.add(lbEpaisseur, 0);
! pnEpaisseur_.add(cbEpaisseur_, 1);
pnSeuil_.add(pnNumero_, 0);
--- 149,160 ----
pnQ_.add(tfQ_, 1);
! if (CGlobal.autorisationSeuilLoiEpaisseur) {
! cbEpaisseur_ = new BuComboBox(TYPE_EPAISSEUR);
! cbEpaisseur_.setEditable(false);
! BuLabel lbEpaisseur = new BuLabel("Epaisseur");
! lbEpaisseur.setPreferredSize(dimLabel);
! pnEpaisseur_.add(lbEpaisseur, 0);
! pnEpaisseur_.add(cbEpaisseur_, 1);
! }
pnSeuil_.add(pnNumero_, 0);
***************
*** 162,166 ****
pnSeuil_.add(pnZCrete_, 4);
pnSeuil_.add(pnQ_, 5);
! pnSeuil_.add(pnEpaisseur_, 6);
pnMain_.add(pnSeuil_, BorderLayout.CENTER);
--- 164,168 ----
pnSeuil_.add(pnZCrete_, 4);
pnSeuil_.add(pnQ_, 5);
! if (CGlobal.autorisationSeuilLoiEpaisseur) pnSeuil_.add(pnEpaisseur_, 6);
pnMain_.add(pnSeuil_, BorderLayout.CENTER);
***************
*** 236,243 ****
}
! int index=cbEpaisseur_.getSelectedIndex();
! if( index!=seuil_.epaisseur().value() ) {
! seuil_.epaisseur(LEpaisseurSeuil.from_int(index));
! changed=true;
}
return changed;
--- 238,247 ----
}
! if (CGlobal.autorisationSeuilLoiEpaisseur) {
! int index = cbEpaisseur_.getSelectedIndex();
! if (index != seuil_.epaisseur().value()) {
! seuil_.epaisseur(LEpaisseurSeuil.from_int(index));
! changed = true;
! }
}
return changed;
***************
*** 252,256 ****
tfZCrete_.setValue(new Double(seuil_.coteCrete()));
tfQ_.setValue(new Double(seuil_.coefQ()));
! cbEpaisseur_.setSelectedIndex(seuil_.epaisseur().value());
String textAbsc="";
--- 256,262 ----
tfZCrete_.setValue(new Double(seuil_.coteCrete()));
tfQ_.setValue(new Double(seuil_.coefQ()));
! if (CGlobal.autorisationSeuilLoiEpaisseur) {
! cbEpaisseur_.setSelectedIndex(seuil_.epaisseur().value());
! }
String textAbsc="";
Index: Hydraulique1dSeuilTransEditor.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor/Hydraulique1dSeuilTransEditor.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Hydraulique1dSeuilTransEditor.java 4 Aug 2003 17:50:07 -0000 1.5
--- Hydraulique1dSeuilTransEditor.java 17 Oct 2003 16:26:08 -0000 1.6
***************
*** 176,185 ****
pnZCrete_.add(tfZCrete_, 1);
! cbEpaisseur_=new BuComboBox(TYPE_EPAISSEUR);
! cbEpaisseur_.setEditable(true);
! BuLabel lbEpaisseur = new BuLabel("Epaisseur");
! lbEpaisseur.setPreferredSize(dimLabel);
! pnEpaisseur_.add(lbEpaisseur, 0);
! pnEpaisseur_.add(cbEpaisseur_, 1);
pnSeuilBase_.add(pnNumero_, 0);
--- 176,187 ----
pnZCrete_.add(tfZCrete_, 1);
! if (CGlobal.autorisationSeuilLoiEpaisseur) {
! cbEpaisseur_ = new BuComboBox(TYPE_EPAISSEUR);
! cbEpaisseur_.setEditable(true);
! BuLabel lbEpaisseur = new BuLabel("Epaisseur");
! lbEpaisseur.setPreferredSize(dimLabel);
! pnEpaisseur_.add(lbEpaisseur, 0);
! pnEpaisseur_.add(cbEpaisseur_, 1);
! }
pnSeuilBase_.add(pnNumero_, 0);
***************
*** 188,192 ****
pnSeuilBase_.add(pnZRupture_, 3);
pnSeuilBase_.add(pnZCrete_, 4);
! pnSeuilBase_.add(pnEpaisseur_, 5);
tfQ_= BuTextField.createDoubleField();
--- 190,194 ----
pnSeuilBase_.add(pnZRupture_, 3);
pnSeuilBase_.add(pnZCrete_, 4);
! if (CGlobal.autorisationSeuilLoiEpaisseur) pnSeuilBase_.add(pnEpaisseur_, 5);
tfQ_= BuTextField.createDoubleField();
***************
*** 327,334 ****
}
! int index=cbEpaisseur_.getSelectedIndex();
! if( index!=seuil_.epaisseur().value() ) {
! seuil_.epaisseur(LEpaisseurSeuil.from_int(index));
! changed=true;
}
--- 329,338 ----
}
! if (CGlobal.autorisationSeuilLoiEpaisseur) {
! int index = cbEpaisseur_.getSelectedIndex();
! if (index != seuil_.epaisseur().value()) {
! seuil_.epaisseur(LEpaisseurSeuil.from_int(index));
! changed = true;
! }
}
***************
*** 374,378 ****
tfQ_.setValue(new Double(seuil_.coefQ()));
tfZCrete_.setValue(new Double(seuil_.coteCrete()));
! cbEpaisseur_.setSelectedIndex(seuil_.epaisseur().value());
rbRupture_.setSelected(seuil_.ruptureInstantanee());
rbLoiSeuil_.setSelected(!seuil_.ruptureInstantanee());
--- 378,384 ----
tfQ_.setValue(new Double(seuil_.coefQ()));
tfZCrete_.setValue(new Double(seuil_.coteCrete()));
! if (CGlobal.autorisationSeuilLoiEpaisseur) {
! cbEpaisseur_.setSelectedIndex(seuil_.epaisseur().value());
! }
rbRupture_.setSelected(seuil_.ruptureInstantanee());
rbLoiSeuil_.setSelected(!seuil_.ruptureInstantanee());
|
|
From: <jm_...@us...> - 2003-10-19 09:09:24
|
Update of /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/mascaret
In directory sc8-pr-cvs1:/tmp/cvs-serv8255/fudaa/src/org/fudaa/fudaa/mascaret
Modified Files:
MascaretImplementation.java
Log Message:
Désactivation de la fonction Casier et des nouveautés de mascaret V5P2.
Index: MascaretImplementation.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/mascaret/MascaretImplementation.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** MascaretImplementation.java 23 Sep 2003 21:26:28 -0000 1.6
--- MascaretImplementation.java 17 Oct 2003 16:26:08 -0000 1.7
***************
*** 1,1390 ****
! /*
! * @file MascaretImplementation.java
! * @creation 2000-07-04
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 EDF/LNHE
! * @mail de...@fu...
! */
!
! package org.fudaa.fudaa.mascaret;
[...4074 lines suppressed...]
! }
!
! }
!
! /*
! try
! {
! previsuFille_.setMaximum(true);
! System.out.println("est agrandie");
! }
! catch( java.beans.PropertyVetoException _e)
! {
! System.out.println("ne peut etre agrandie");
! previsuFille_.setSize(100,100);
! }*/
!
! }
!
! }
\ No newline at end of file
|
Update of /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/reseau
In directory sc8-pr-cvs1:/tmp/cvs-serv8255/fudaa/src/org/fudaa/fudaa/hydraulique1d/reseau
Modified Files:
Hydraulique1dReseauBarragePrincipal.java
Hydraulique1dReseauFrame.java Hydraulique1dReseauPalette.java
Log Message:
Désactivation de la fonction Casier et des nouveautés de mascaret V5P2.
Index: Hydraulique1dReseauBarragePrincipal.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/reseau/Hydraulique1dReseauBarragePrincipal.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Hydraulique1dReseauBarragePrincipal.java 22 Jul 2003 13:37:20 -0000 1.4
--- Hydraulique1dReseauBarragePrincipal.java 17 Oct 2003 16:26:08 -0000 1.5
***************
*** 112,115 ****
--- 112,117 ----
}
+
+
public String[] getInfos() {
IBarragePrincipal iobjet = (IBarragePrincipal)getData("barragePrincipal");
Index: Hydraulique1dReseauFrame.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/reseau/Hydraulique1dReseauFrame.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Hydraulique1dReseauFrame.java 4 Aug 2003 17:50:09 -0000 1.6
--- Hydraulique1dReseauFrame.java 17 Oct 2003 16:26:08 -0000 1.7
***************
*** 164,174 ****
ISeuil iseuil;
boolean transcritique = (etude_.paramGeneraux().regime().value() == LRegime._TRANSCRITIQUE);
! iseuil = new Hydraulique1dSeuilChooser(reseau_, transcritique).activate();
! if (iseuil != null) {
! Hydraulique1dReseauSeuil seuil = new Hydraulique1dReseauSeuil(iseuil);
! grid_.add(seuil);
! repaint();
! }
}
--- 164,179 ----
ISeuil iseuil;
boolean transcritique = (etude_.paramGeneraux().regime().value() == LRegime._TRANSCRITIQUE);
! if (transcritique && (! CGlobal.autorisation2SingulariteTrans)) {
! iseuil = reseau_.creeSeuilTranscritique();
! }
! else {
! iseuil = new Hydraulique1dSeuilChooser(reseau_, transcritique).activate();
! }
! if (iseuil != null) {
! Hydraulique1dReseauSeuil seuil = new Hydraulique1dReseauSeuil(iseuil);
! grid_.add(seuil);
! repaint();
! }
}
Index: Hydraulique1dReseauPalette.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/reseau/Hydraulique1dReseauPalette.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Hydraulique1dReseauPalette.java 8 Jun 2003 22:10:19 -0000 1.4
--- Hydraulique1dReseauPalette.java 17 Oct 2003 16:26:08 -0000 1.5
***************
*** 12,15 ****
--- 12,16 ----
import com.memoire.bu.*;
import com.memoire.dja.*;
+ import org.fudaa.dodico.hydraulique1d.CGlobal;
import org.fudaa.fudaa.hydraulique1d.Hydraulique1dResource;
***************
*** 50,55 ****
buttons_=new BuButton[names.length];
!
! for(int i=0; i<buttons_.length; i++)
{
BuIcon icon=Hydraulique1dResource.HYDRAULIQUE1D.getIcon("hydraulique1d"+icons[i]);
--- 51,59 ----
buttons_=new BuButton[names.length];
! int decalage = 0;
! if (! CGlobal.autorisationCasier) {
! decalage = 2;
! }
! for(int i=0; i<(buttons_.length-decalage); i++)
{
BuIcon icon=Hydraulique1dResource.HYDRAULIQUE1D.getIcon("hydraulique1d"+icons[i]);
***************
*** 59,63 ****
buttons_[i].setMargin(new Insets(1,1,1,1));
buttons_[i].setRequestFocusEnabled(false);
! buttons_[i].setToolTipText( /* "Créer "+ */ names[i]);
buttons_[i].setActionCommand("HYDRAULIQUE1D_CREATE_RESEAU("+names[i]+")");
--- 63,67 ----
buttons_[i].setMargin(new Insets(1,1,1,1));
buttons_[i].setRequestFocusEnabled(false);
! buttons_[i].setToolTipText( names[i]);
buttons_[i].setActionCommand("HYDRAULIQUE1D_CREATE_RESEAU("+names[i]+")");
|
|
From: <jm_...@us...> - 2003-10-17 23:23:46
|
Update of /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d
In directory sc8-pr-cvs1:/tmp/cvs-serv8255/fudaa/src/org/fudaa/fudaa/hydraulique1d
Modified Files:
Hydraulique1dExportPanneau.java
Log Message:
Désactivation de la fonction Casier et des nouveautés de mascaret V5P2.
Index: Hydraulique1dExportPanneau.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/Hydraulique1dExportPanneau.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Hydraulique1dExportPanneau.java 4 Aug 2003 17:53:02 -0000 1.4
--- Hydraulique1dExportPanneau.java 17 Oct 2003 16:26:08 -0000 1.5
***************
*** 12,15 ****
--- 12,16 ----
import com.memoire.bu.*;
import org.fudaa.fudaa.commun.*;
+ import org.fudaa.dodico.hydraulique1d.CGlobal;
import java.awt.*;
import java.awt.event.*;
***************
*** 77,83 ****
pnChoixParam_.add(cb, n++);
! cb=new JCheckBox("Fichier géométrie des casiers");
! cbs_.put("GEO_CASIER", cb);
! pnChoixParam_.add(cb, n++);
pnChoixResu_=new BuPanel();
--- 78,86 ----
pnChoixParam_.add(cb, n++);
! if (CGlobal.autorisationCasier) {
! cb = new JCheckBox("Fichier géométrie des casiers");
! cbs_.put("GEO_CASIER", cb);
! pnChoixParam_.add(cb, n++);
! }
pnChoixResu_=new BuPanel();
***************
*** 109,136 ****
pnChoixResu_.add(cb, n++);
! cb=new JCheckBox("Fichier réesultat casier (format Opthyca)");
! cbs_.put("RESU_CASIER_OPTYCA", cb);
! pnChoixResu_.add(cb, n++);
!
! cb=new JCheckBox("Fichier résultat casier (format Rubens)");
! cbs_.put("RESU_CASIER_RUBENS", cb);
! pnChoixResu_.add(cb, n++);
! cb=new JCheckBox("Fichier listing casier");
! cbs_.put("RESU_CASIER_LISTING", cb);
! pnChoixResu_.add(cb, n++);
! cb=new JCheckBox("Fichier résultat liaison (format Opthyca)");
! cbs_.put("RESU_LIAISON_OPTYCA", cb);
! pnChoixResu_.add(cb, n++);
! cb=new JCheckBox("Fichier résultat liaison (format Rubens)");
! cbs_.put("RESU_LIAISON_RUBENS", cb);
! pnChoixResu_.add(cb, n++);
! cb=new JCheckBox("Fichier listing liaison");
! cbs_.put("RESU_LIAISON_LISTING", cb);
! pnChoixResu_.add(cb, n++);
choix_=new String[cbs_.size()];
--- 112,140 ----
pnChoixResu_.add(cb, n++);
! if (CGlobal.autorisationCasier) {
! cb = new JCheckBox("Fichier réesultat casier (format Opthyca)");
! cbs_.put("RESU_CASIER_OPTYCA", cb);
! pnChoixResu_.add(cb, n++);
! cb = new JCheckBox("Fichier résultat casier (format Rubens)");
! cbs_.put("RESU_CASIER_RUBENS", cb);
! pnChoixResu_.add(cb, n++);
! cb = new JCheckBox("Fichier listing casier");
! cbs_.put("RESU_CASIER_LISTING", cb);
! pnChoixResu_.add(cb, n++);
! cb = new JCheckBox("Fichier résultat liaison (format Opthyca)");
! cbs_.put("RESU_LIAISON_OPTYCA", cb);
! pnChoixResu_.add(cb, n++);
! cb = new JCheckBox("Fichier résultat liaison (format Rubens)");
! cbs_.put("RESU_LIAISON_RUBENS", cb);
! pnChoixResu_.add(cb, n++);
+ cb = new JCheckBox("Fichier listing liaison");
+ cbs_.put("RESU_LIAISON_LISTING", cb);
+ pnChoixResu_.add(cb, n++);
+ }
choix_=new String[cbs_.size()];
|
|
From: <jm_...@us...> - 2003-10-17 16:29:11
|
Update of /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor
In directory sc8-pr-cvs1:/tmp/cvs-serv8668/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor
Modified Files:
Hydraulique1dNoyauEditor.java
Log Message:
Dernier noyau de calcul mascaret : 5.2
Index: Hydraulique1dNoyauEditor.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/fudaa/src/org/fudaa/fudaa/hydraulique1d/editor/Hydraulique1dNoyauEditor.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Hydraulique1dNoyauEditor.java 17 Oct 2003 16:26:08 -0000 1.5
--- Hydraulique1dNoyauEditor.java 17 Oct 2003 16:27:44 -0000 1.6
***************
*** 72,76 ****
new EmptyBorder(new Insets(5, 5, 5, 5))));
! lbVersion_ = new BuLabel("MASCARET 5.1");
lbVersion_.setBorder(new LineBorder(Color.black));
pnVersion_.add(new BuLabel("Version"),0);
--- 72,76 ----
new EmptyBorder(new Insets(5, 5, 5, 5))));
! lbVersion_ = new BuLabel("MASCARET 5.2");
lbVersion_.setBorder(new LineBorder(Color.black));
pnVersion_.add(new BuLabel("Version"),0);
|
|
From: <jm_...@us...> - 2003-10-17 16:27:59
|
Update of /cvsroot/fudaa//fudaa_devel/dodico/src/org/fudaa/dodico/evenement
In directory sc8-pr-cvs1:/tmp/cvs-serv7839
Modified Files:
DObjetEvent.java
Log Message:
Modification de la méthode dispose avec mise à null des attributs
Index: DObjetEvent.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/dodico/src/org/fudaa/dodico/evenement/DObjetEvent.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** DObjetEvent.java 23 Sep 2003 19:31:01 -0000 1.4
--- DObjetEvent.java 17 Oct 2003 16:24:21 -0000 1.5
***************
*** 16,20 ****
/**
* @version $Id$
! * @author Axel von Arnim
*/
public class DObjetEvent
--- 16,20 ----
/**
* @version $Id$
! * @author Axel von Arnim
*/
public class DObjetEvent
***************
*** 26,30 ****
private String field_;
private boolean consumed_;
!
// constructeurs
--- 26,30 ----
private String field_;
private boolean consumed_;
!
// constructeurs
***************
*** 37,59 ****
consumed_=false;
}
!
public void dispose()
{
setConsomme();
super.dispose();
}
// methodes
!
public void setMessage(String _msg)
{
msg_=_msg;
}
!
public void setSource(IObjet _src)
{
source_=_src;
}
!
public void setChamp(String _field)
{
--- 37,62 ----
consumed_=false;
}
!
public void dispose()
{
setConsomme();
+ msg_=null;
+ source_=null;
+ field_=null;
super.dispose();
}
// methodes
!
public void setMessage(String _msg)
{
msg_=_msg;
}
!
public void setSource(IObjet _src)
{
source_=_src;
}
!
public void setChamp(String _field)
{
|
Update of /cvsroot/fudaa//fudaa_devel/dodico/src/org/fudaa/dodico/mascaret
In directory sc8-pr-cvs1:/tmp/cvs-serv7231
Modified Files:
CConversionHydraulique1d.java DCalculMascaret.java
DParametresMascaret.java EdamoxWriter.java
Log Message:
Déactivation de la fonction Casier et des nouveautés de mascaret V5P2.
Index: CConversionHydraulique1d.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/dodico/src/org/fudaa/dodico/mascaret/CConversionHydraulique1d.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** CConversionHydraulique1d.java 4 Aug 2003 17:43:54 -0000 1.6
--- CConversionHydraulique1d.java 17 Oct 2003 16:22:06 -0000 1.7
***************
*** 62,65 ****
--- 62,66 ----
parametresMascaret.parametresTailleMaxFichier(new SParametresTailleMaxFichier(t.maxListingCode(), t.maxListingDamocles(), t.maxResultatRubens(), t.maxResultatOpthyca(), t.maxResultatReprise()) );
boolean presenceCasier = (calculHydraulique1d.etude().reseau().casiers().length > 0);
+ if (! CGlobal.autorisationCasier) presenceCasier = false;
if (presenceCasier) {
parametresMascaret.casierGEO(convertirParametresGeoCasiers(calculHydraulique1d.etude().reseau().casiers()));
***************
*** 197,201 ****
paramMas.implicitNoyauTrans=iparamGen.implicitationNoyauTrans();
// perte de charge automatique en cas d'élargissement
! paramMas.perteChargeAutoElargissement=iparamGen.perteChargeAutoElargissement();
// Casier
--- 198,204 ----
paramMas.implicitNoyauTrans=iparamGen.implicitationNoyauTrans();
// perte de charge automatique en cas d'élargissement
! if (CGlobal.autorisationPerteChargeAutoElarg) {
! paramMas.perteChargeAutoElargissement = iparamGen.perteChargeAutoElargissement();
! }
// Casier
***************
*** 540,544 ****
sMas.type = 4; // type du seuil : Zam=f(Cote Crete , Coeff Debit)
sMas.coteCrete = l.coteCrete();
! sMas.epaisseur = l.epaisseur().value() +1;
if (!l.ruptureInstantanee()) {
sMas.coeffDebit = l.coefQ();
--- 543,547 ----
sMas.type = 4; // type du seuil : Zam=f(Cote Crete , Coeff Debit)
sMas.coteCrete = l.coteCrete();
! if (CGlobal.autorisationSeuilLoiEpaisseur) sMas.epaisseur = l.epaisseur().value() +1;
if (!l.ruptureInstantanee()) {
sMas.coeffDebit = l.coefQ();
***************
*** 554,558 ****
sMas.coteCrete = l.coteCrete();
sMas.coeffDebit = l.coefQ();
! sMas.epaisseur = l.epaisseur().value() +1;
}
else if (s instanceof IBarrage) {
--- 557,561 ----
sMas.coteCrete = l.coteCrete();
sMas.coeffDebit = l.coefQ();
! if (CGlobal.autorisationSeuilLoiEpaisseur) sMas.epaisseur = l.epaisseur().value() +1;
}
else if (s instanceof IBarrage) {
Index: DCalculMascaret.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/dodico/src/org/fudaa/dodico/mascaret/DCalculMascaret.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** DCalculMascaret.java 4 Aug 2003 17:43:54 -0000 1.5
--- DCalculMascaret.java 17 Oct 2003 16:22:06 -0000 1.6
***************
*** 185,203 ****
File ficCasierLIS=getFichier(c, ".cas_lis");
File ficLiaisonLIS=getFichier(c, ".liai_lis");
- if (casier) {
- if (ficCasierGEO.exists())ficCasierGEO.delete();
-
- if (ficCasierOPT.exists())ficCasierOPT.delete();
-
- if (ficCasierRUB.exists())ficCasierRUB.delete();
-
- if (ficLiaisonOPT.exists())ficLiaisonOPT.delete();
-
- if (ficLiaisonRUB.exists())ficLiaisonRUB.delete();
! if (ficCasierLIS.exists())ficCasierLIS.delete();
!
! if (ficLiaisonLIS.exists())ficLiaisonLIS.delete();
! }
// fin des fichier casiers
--- 185,196 ----
File ficCasierLIS=getFichier(c, ".cas_lis");
File ficLiaisonLIS=getFichier(c, ".liai_lis");
! if (ficCasierGEO.exists())ficCasierGEO.delete();
! if (ficCasierOPT.exists())ficCasierOPT.delete();
! if (ficCasierRUB.exists())ficCasierRUB.delete();
! if (ficLiaisonOPT.exists())ficLiaisonOPT.delete();
! if (ficLiaisonRUB.exists())ficLiaisonRUB.delete();
! if (ficCasierLIS.exists())ficCasierLIS.delete();
! if (ficLiaisonLIS.exists())ficLiaisonLIS.delete();
// fin des fichier casiers
***************
*** 337,388 ****
// pour les casier
! if (casier) {
! setProgression("Lecture des resultats", 85);
! if (ficCasierOPT.exists()) {
! results.resultatsCasierOPT(DResultatsMascaret.litResultatsOPT(ficCasierOPT, 10000.,false));
! }
! else {
! results.resultatsCasierOPT(new SResultatsOPT(new SResultatsVariable[0],
! new SResultatPasTemps[0]));
! }
! if (ficCasierRUB.exists()) {
! results.resultatsCasierRUB(DResultatsMascaret.litResultatsRUB(ficCasierRUB, 10000.));
! }
! else {
! results.resultatsCasierRUB(new SResultatsRUB(new byte[0]));
! }
! setProgression("Lecture des resultats", 90);
! if (ficLiaisonOPT.exists()) {
! results.resultatsLiaisonOPT(DResultatsMascaret.litResultatsOPT(ficLiaisonOPT, 10000.,false));
! }
! else {
! results.resultatsLiaisonOPT(new SResultatsOPT(new SResultatsVariable[0],
! new SResultatPasTemps[0]));
! }
! if (ficLiaisonRUB.exists()) {
! results.resultatsLiaisonRUB(DResultatsMascaret.litResultatsRUB(ficLiaisonRUB, 10000.));
! }
! else {
! results.resultatsLiaisonRUB(new SResultatsRUB(new byte[0]));
! }
! setProgression("Lecture des resultats", 95);
! if (ficCasierLIS.exists()) {
! results.casierLIS(DResultatsMascaret.litResultatsLIS(ficCasierLIS, 10000.));
! }
! else {
! results.casierLIS(new SResultatsLIS(new byte[0]));
! }
! setProgression("Lecture des resultats", 97);
! if (ficLiaisonLIS.exists()) {
! results.liaisonLIS(DResultatsMascaret.litResultatsLIS(ficLiaisonLIS, 10000.));
! }
! else {
! results.liaisonLIS(new SResultatsLIS(new byte[0]));
! }
}
// fin des fichier casiers
--- 330,379 ----
// pour les casier
! setProgression("Lecture des resultats", 85);
! if (ficCasierOPT.exists()) {
! results.resultatsCasierOPT(DResultatsMascaret.litResultatsOPT(ficCasierOPT, 10000.,false));
! }
! else {
! results.resultatsCasierOPT(new SResultatsOPT(new SResultatsVariable[0],
! new SResultatPasTemps[0]));
! }
! if (ficCasierRUB.exists()) {
! results.resultatsCasierRUB(DResultatsMascaret.litResultatsRUB(ficCasierRUB, 10000.));
! }
! else {
! results.resultatsCasierRUB(new SResultatsRUB(new byte[0]));
! }
! setProgression("Lecture des resultats", 90);
! if (ficLiaisonOPT.exists()) {
! results.resultatsLiaisonOPT(DResultatsMascaret.litResultatsOPT(ficLiaisonOPT, 10000.,false));
! }
! else {
! results.resultatsLiaisonOPT(new SResultatsOPT(new SResultatsVariable[0],
! new SResultatPasTemps[0]));
! }
! if (ficLiaisonRUB.exists()) {
! results.resultatsLiaisonRUB(DResultatsMascaret.litResultatsRUB(ficLiaisonRUB, 10000.));
! }
! else {
! results.resultatsLiaisonRUB(new SResultatsRUB(new byte[0]));
! }
! setProgression("Lecture des resultats", 95);
! if (ficCasierLIS.exists()) {
! results.casierLIS(DResultatsMascaret.litResultatsLIS(ficCasierLIS, 10000.));
! }
! else {
! results.casierLIS(new SResultatsLIS(new byte[0]));
! }
! setProgression("Lecture des resultats", 97);
! if (ficLiaisonLIS.exists()) {
! results.liaisonLIS(DResultatsMascaret.litResultatsLIS(ficLiaisonLIS, 10000.));
! }
! else {
! results.liaisonLIS(new SResultatsLIS(new byte[0]));
}
// fin des fichier casiers
Index: DParametresMascaret.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/dodico/src/org/fudaa/dodico/mascaret/DParametresMascaret.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** DParametresMascaret.java 4 Aug 2003 17:43:54 -0000 1.4
--- DParametresMascaret.java 17 Oct 2003 16:22:07 -0000 1.5
***************
*** 22,25 ****
--- 22,26 ----
import org.fudaa.dodico.corba.mascaret.*;
import org.fudaa.dodico.fortran.*;
+ import org.fudaa.dodico.hydraulique1d.CGlobal;
/**
***************
*** 177,186 ****
ecritureParametres.setNomRubrique("PARAMETRES NUMERIQUES (1)");
Object[] descriptionChamp = new Object[7];
! descriptionChamp[0] = "CALCUL D'UNE ONDE DE SUBMERSION";
! descriptionChamp[1] = "FROUDE LIMITE POUR LES CONDITIONS LIMITES";
! descriptionChamp[2] = "TRAITEMENT IMPLICITE DU FROTTEMENT";
! descriptionChamp[3] = "HAUTEUR D'EAU MINIMALE";
! descriptionChamp[4] = "IMPLICITATION DU NOYAU TRANSCRITIQUE";
! descriptionChamp[5] = "PERTES DE CHARGE AUTOMATIQUE NOYAU TRANSCRITIQUE";
// description sous rubrique casier
--- 178,195 ----
ecritureParametres.setNomRubrique("PARAMETRES NUMERIQUES (1)");
Object[] descriptionChamp = new Object[7];
!
! int n=0;
! descriptionChamp[n++] = "CALCUL D'UNE ONDE DE SUBMERSION";
! descriptionChamp[n++] = "FROUDE LIMITE POUR LES CONDITIONS LIMITES";
! descriptionChamp[n++] = "TRAITEMENT IMPLICITE DU FROTTEMENT";
! descriptionChamp[n++] = "HAUTEUR D'EAU MINIMALE";
! descriptionChamp[n++] = "IMPLICITATION DU NOYAU TRANSCRITIQUE";
! if (CGlobal.autorisationPerteChargeAutoElarg) {
! descriptionChamp[n++] =
! "PERTES DE CHARGE AUTOMATIQUE NOYAU TRANSCRITIQUE";
! }
! else {
! descriptionChamp[n++] ="";
! }
// description sous rubrique casier
***************
*** 194,198 ****
descriptionCasier[1] = descriptionChampCasier;
}
! descriptionChamp[6] = descriptionCasier;
ecritureParametres.setDescriptionChamp(descriptionChamp);
--- 203,207 ----
descriptionCasier[1] = descriptionChampCasier;
}
! descriptionChamp[n++] = descriptionCasier;
ecritureParametres.setDescriptionChamp(descriptionChamp);
Index: EdamoxWriter.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/dodico/src/org/fudaa/dodico/mascaret/EdamoxWriter.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** EdamoxWriter.java 4 Aug 2003 17:43:54 -0000 1.4
--- EdamoxWriter.java 17 Oct 2003 16:22:07 -0000 1.5
***************
*** 127,150 ****
}
else { // pas une Structure défini dans l'IDL
! s = descriptionChamp[i].toString()+" = ";
! if (lobj instanceof Boolean) {
! if ( ((Boolean)lobj).booleanValue() )
! ecrit(s+"VRAI");
! else
! ecrit(s+"FAUX");
! }
! else if (lobj instanceof String) {
! ecrit(s+"'"+lobj.toString()+"'");
! }
! else if (lobj instanceof Integer) {
! if (((Integer)lobj).intValue() != IRIEN)
! ecrit(s+lobj.toString());
! }
! else if (lobj instanceof Double) {
! if (!((Double)lobj).isNaN())
! ecrit(s+lobj.toString());
! }
! else { // pas un booleen ni une chaine ni entier ni double
! ecrit(s+lobj.toString());
}
}
--- 127,153 ----
}
else { // pas une Structure défini dans l'IDL
! String champ = descriptionChamp[i].toString();
! if (!champ.equals("")) {
! s = champ + " = ";
! if (lobj instanceof Boolean) {
! if ( ( (Boolean) lobj).booleanValue())
! ecrit(s + "VRAI");
! else
! ecrit(s + "FAUX");
! }
! else if (lobj instanceof String) {
! ecrit(s + "'" + lobj.toString() + "'");
! }
! else if (lobj instanceof Integer) {
! if ( ( (Integer) lobj).intValue() != IRIEN)
! ecrit(s + lobj.toString());
! }
! else if (lobj instanceof Double) {
! if (! ( (Double) lobj).isNaN())
! ecrit(s + lobj.toString());
! }
! else { // pas un booleen ni une chaine ni entier ni double
! ecrit(s + lobj.toString());
! }
}
}
|
|
From: <jm_...@us...> - 2003-10-17 16:20:19
|
Update of /cvsroot/fudaa//fudaa_devel/dodico/src/org/fudaa/dodico/hydraulique1d
In directory sc8-pr-cvs1:/tmp/cvs-serv6874
Modified Files:
CGlobal.java
Log Message:
Ajout de variable globale permettant de déactiver la fonction casier et les fonctions
de mascaret V5P2
Index: CGlobal.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/dodico/src/org/fudaa/dodico/hydraulique1d/CGlobal.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** CGlobal.java 18 Mar 2003 12:50:54 -0000 1.2
--- CGlobal.java 17 Oct 2003 16:18:42 -0000 1.3
***************
*** 14,22 ****
/**
* @version $Revision$ $Date$ by $Author$
! * @author Axel von Arnim
*/
public final class CGlobal
{
public final static long PRECISION=10000L;
public static long arrondiLong(double nb)
--- 14,28 ----
/**
* @version $Revision$ $Date$ by $Author$
! * @author Axel von Arnim
*/
public final class CGlobal
{
public final static long PRECISION=10000L;
+
+ public final static boolean autorisationCasier = true;
+
+ public final static boolean autorisation2SingulariteTrans = true;
+ public final static boolean autorisationSeuilLoiEpaisseur = true;
+ public final static boolean autorisationPerteChargeAutoElarg = true;
public static long arrondiLong(double nb)
|
|
From: <jm_...@us...> - 2003-09-24 12:55:51
|
Update of /cvsroot/fudaa//fudaa_devel/ebli/src/org/fudaa/ebli/calque
In directory sc8-pr-cvs1:/tmp/cvs-serv10317/src/org/fudaa/ebli/calque
Modified Files:
ZCalqueLongPolygone.java
Log Message:
suppression de l'import dodico
Index: ZCalqueLongPolygone.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZCalqueLongPolygone.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ZCalqueLongPolygone.java 23 Sep 2003 20:35:03 -0000 1.3
--- ZCalqueLongPolygone.java 24 Sep 2003 12:55:44 -0000 1.4
***************
*** 1,350 ****
! /*
! * @file ZcalqueLongPolygone.java
! * @creation 1 juil. 2003
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
! package org.fudaa.ebli.calque;
!
! import java.awt.Color;
! import java.awt.Graphics;
! import java.awt.Graphics2D;
!
! import javax.swing.Icon;
!
! import org.fudaa.dodico.commun.DodicoLib;
!
! import org.fudaa.ebli.commun.EbliListeSelection;
! import org.fudaa.ebli.geometrie.GrBoite;
! import org.fudaa.ebli.geometrie.GrMorphisme;
! import org.fudaa.ebli.geometrie.GrPoint;
! import org.fudaa.ebli.geometrie.GrPolygone;
! import org.fudaa.ebli.trace.TraceLigne;
!
! /**
! * @author deniger
! * @version $Id$
! */
! public class ZCalqueLongPolygone extends ZCalqueAffichageDonnees {
!
! /** Propriete modele*/
! protected ZModeleLongPolygone modele_= null;
! protected TraceLigne tl_= null;
! protected TraceLigne tlSelection_= null;
!
! public ZCalqueLongPolygone() {
! super();
! }
!
! public ZCalqueLongPolygone(ZModeleLongPolygone _modele) {
! this();
! modele(_modele);
! }
!
! /**
! * @param _modele Modele
! */
! public void modele(ZModeleLongPolygone _modele) {
! if (modele_ != _modele) {
! ZModeleLongPolygone vp= modele_;
! modele_= _modele;
! firePropertyChange("modele", vp, modele_);
! }
! }
!
! /**
! * @return Modele
! */
! public ZModeleLongPolygone modele() {
! return modele_;
! }
! public ZModeleDonnees modeleDonnees() {
! return modele();
! }
!
! /**
! * @param _g
! */
! public void paintComponent(Graphics _g) {
! super.paintComponent(_g);
! if ((modele_ == null) || (modele_.getNombre() <= 0))
! return;
! GrBoite clip= getClipReel(_g);
! GrBoite domaine= modele_.getDomaine();
!
! if (!domaine.intersectXY(clip)) {
! return;
! }
! GrMorphisme versEcran= getVersEcran();
! boolean attenue= isAttenue();
!
! // BPaletteCouleur paletteCouleur = getPaletteCouleur();
! // BPaletteIcone paletteIcone = getPaletteIcone();
! int nombre= modele_.getNombre();
! Color foreground= getForeground();
! if (attenue)
! foreground= attenueCouleur(foreground);
! boolean rapide= isRapide();
!
! Icon icone= getIcone();
! if (attenue)
! icone= attenueIcone(icone);
!
! GrBoite bPoly;
! if (tl_ == null)
! tl_= new TraceLigne((Graphics2D)_g);
! else
! tl_.graphics((Graphics2D)_g);
!
! for (int i= 0; i < nombre; i++) {
! bPoly= modele_.getDomaineForPolygoneIdx(i);
! //Si la boite du polygone n'est pas dans la boite d'affichage on passe
! if (bPoly.intersectionXY(clip) == null)
! continue;
! int nbPoints= modele_.getNbPointForPolygoneIdx(i);
! if (nbPoints <= 0)
! continue;
! //QUESTION: a rajouter
! /* double z = 0.;
! if(domaine.e.z > domaine.o.z)
! z = (p.z - domaine.o.z) / (domaine.e.z - domaine.o.z);*/
! // p.autoApplique(versEcran);
! Color c= foreground;
! Icon s= icone;
! /*if(paletteCouleur != null)
! {
! c = paletteCouleur.couleur(z);
! if(attenue)
! c = attenueCouleur(c);
! }
! if(paletteIcone != null)
! {
! s = paletteIcone.icone(z);
! if(attenue)
! s = attenueIcone(s);
! } */
! if (c == null)
! return;
! _g.setColor(c);
! tl_.setCouleur(c);
! GrPoint ptOri= new GrPoint();
! modele_.point(ptOri, i, nbPoints-1);
! ptOri.autoApplique(versEcran);
! if (s != null)
! s.paintIcon(this, _g, (int)ptOri.x, (int)ptOri.y);
! GrPoint ptDest= new GrPoint();
! for (int j= 0; j < nbPoints; j++) {
! //le point de dest est initialise
! modele_.point(ptDest, i, j);
! ptDest.autoApplique(versEcran);
! if (s != null)
! s.paintIcon(this, _g, (int)ptDest.x, (int)ptDest.y);
! tl_.dessineTrait(ptOri.x, ptOri.y, ptDest.x, ptDest.y);
! ptOri.initialise(ptDest);
! // indexGlobal++;
! // tl_.dessineTexte(
! // DodicoLib.getString(indexGlobal),
! // (int)ptOri.x,
! // (int)ptOri.y);
! }
! }
!
! if ((!rapide) && (!isSelectionEmpty())) {
! if (tlSelection_ == null)
! tlSelection_= new TraceLigne((Graphics2D)_g);
! else
! tlSelection_.graphics((Graphics2D)_g);
! initIconeSelection();
! initCouleurSelection();
! Color cs= couleurSelection();
! Icon ic= iconeSelection();
! if (attenue) {
! cs= attenueCouleur(cs);
! ic= attenueIcone(ic);
! }
! _g.setColor(cs);
! tlSelection_.setCouleur(cs);
! //tlSelection_.setEpaisseur(2f);
! int nb= selection_.getMaxIndex();
! for (int i= nb; i >= 0; i--) {
! if (!selection_.isSelected(i))
! continue;
! bPoly= modele_.getDomaineForPolygoneIdx(i);
! //Si la boite du polygone n'est pas dans la boite d'affichage on passe
! if (bPoly.intersectionXY(clip) == null)
! continue;
! int nbPoints= modele_.getNbPointForPolygoneIdx(i);
! GrPoint ptOri= new GrPoint();
! modele_.point(ptOri, i, 0);
! ptOri.autoApplique(versEcran);
! GrPoint ptDest= new GrPoint();
! for (int j= nbPoints - 1; j >= 0; j--) {
! //le point de dest est initialise
! modele_.point(ptDest, i, j);
! ptDest.autoApplique(versEcran);
! ic.paintIcon(this, _g, (int)ptDest.x, (int)ptDest.y);
! tlSelection_.dessineTrait(ptOri.x, ptOri.y, ptDest.x, ptDest.y);
! ptOri.initialise(ptDest);
! }
! }
! /* if(!selection_.isSelectionPartielleVide())
! {
! int[] s=entitePartielleSelection();
! int nb=s.length-1;
! initIconeSelectionPartielle();
! initCouleurSelection();
! Color cs=couleurSelection();
! Icon ic=iconeSelectionPartielle();
! if(attenue)
! {
! cs=attenueCouleur(cs);
! ic=attenueIcone(ic);
! }
! _g.setColor(cs);
! int t;
! for(int i = nb; i >=0; i--)
! {
! t=s[i];
! modele_.polygone(p,t);
! if(clip.intersectXY(p.boite()))
! {
! int[] atomes=partielleSelection(t);
! int nbAtomes=atomes.length-1;
! GrPoint pt=new GrPoint();
! for(int j=nbAtomes;j>=0;j--)
! {
! p.sommets.renvoie(pt,atomes[j]);
! if(clip.contientXY(pt))
! {
! p.autoApplique(versEcran);
! ic.paintIcon(this, _g, (int)pt.x, (int)pt.y);
! }
! }
! }
! }
! } */
! }
! }
!
! public EbliListeSelection selection(
! GrPolygone _polySelection,
! boolean _partiel) {
! GrBoite boitePolySelection= _polySelection.boite();
! GrMorphisme versEcran= getVersEcran();
! GrBoite bClip= getDomaine();
! bClip.autoApplique(versEcran);
! if (!boitePolySelection.intersectXY(bClip))
! return null;
! int nb= modele().getNombre() - 1;
! bClip= getClipReel(getGraphics());
! // GrPolygone poly = new GrPolygone();
! EbliListeSelection r= creeSelection();
! if (_partiel) {
! /* for(int i=nb;i>=0;i--)
! {
! modele().polygone(poly,i);
! if(bClip.intersectXY(poly.boite()))
! {
! poly.autoApplique(versEcran);
! if(boitePolySelection.intersectXY(poly.boite()))
! {
! DefaultListSelectionModel l=GrPolygone.pointsSelectionnes(poly,_polySelection);
! if(l!=null)
! {
! if(EbliListeSelection.estTotal(l,poly.nombre()))
! r.add(i);
! else
! r.setSelectionPartielle(i,l);
! }
! }
! }
! } */
! } else {
!
! for (int i= nb; i >= 0; i--) {
! //modele().polygone(poly, i);
! if (bClip.contientXY(modele_.getDomaineForPolygoneIdx(i))) {
! int nbPoint= modele_.getNbPointForPolygoneIdx(i) - 1;
! GrPoint p= new GrPoint();
! boolean selected= true;
! for (int j= nbPoint;(j >= 0) && selected; j--) {
! modele_.point(p, i, j);
! p.autoApplique(versEcran);
! if ((!boitePolySelection.contient(p))
! || (!_polySelection.contientXY(p))) {
! selected= false;
! }
! }
! if (selected)
! r.add(i);
! }
! }
! }
! if (r.isEmpty())
! return null;
! else
! return r;
!
! }
!
! public EbliListeSelection selection(
! GrPoint _pt,
! int _tolerance,
! boolean _partiel) {
!
! GrMorphisme versEcran= getVersEcran();
! GrBoite bClip= getDomaine();
! bClip.autoApplique(versEcran);
! if ((!bClip.contientXY(_pt)) && (bClip.distanceXY(_pt) > _tolerance))
! return null;
! int nb= modele().getNombre() - 1;
! bClip= getClipReel(getGraphics());
! GrPolygone poly= new GrPolygone();
! GrPoint pt1= new GrPoint();
! GrPoint pt2= new GrPoint();
! poly.sommets.ajoute(pt1);
! poly.sommets.ajoute(pt2);
! if (_partiel) {
! /* GrPoint p=new GrPoint();
! for(int i=nb;i>=0;i--)
! {
! modele().polygone(poly,i);
! if(bClip.intersectXY(poly.boite()))
! {
! poly.autoApplique(versEcran);
! int nbPt=poly.sommets.nombre()-1;
! for(int j=nbPt;j>=0;j--)
! {
! poly.sommets.renvoie(p,j);
! if(GrPoint.estSelectionne(p, _tolerance, _pt))
! {
! EbliListeSelection r=creeSelection();
! r.setSelectionPartielle(i,j);
! return r;
! }
! }
! }
! } */
! } else {
! for (int i= nb; i >= 0; i--) {
! if (bClip.intersectXY(modele_.getDomaineForPolygoneIdx(i))) {
! int nbPt= modele_.getNbPointForPolygoneIdx(i) - 1;
! for (int j= nbPt; j >= 1; j--) {
! modele_.point(pt1, i, j);
! modele_.point(pt2, i, j - 1);
! poly.autoApplique(versEcran);
! if (GrPolygone.estSelectionne(poly, _tolerance, _pt)) {
! EbliListeSelection r= creeSelection();
! r.add(i);
! return r;
! }
! }
! }
! }
! }
! return null;
!
! }
}
--- 1,348 ----
! /*
! * @file ZcalqueLongPolygone.java
! * @creation 1 juil. 2003
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
! package org.fudaa.ebli.calque;
!
! import java.awt.Color;
! import java.awt.Graphics;
! import java.awt.Graphics2D;
!
! import javax.swing.Icon;
!
! import org.fudaa.ebli.commun.EbliListeSelection;
! import org.fudaa.ebli.geometrie.GrBoite;
! import org.fudaa.ebli.geometrie.GrMorphisme;
! import org.fudaa.ebli.geometrie.GrPoint;
! import org.fudaa.ebli.geometrie.GrPolygone;
! import org.fudaa.ebli.trace.TraceLigne;
!
! /**
! * @author deniger
! * @version $Id$
! */
! public class ZCalqueLongPolygone extends ZCalqueAffichageDonnees {
!
! /** Propriete modele*/
! protected ZModeleLongPolygone modele_= null;
! protected TraceLigne tl_= null;
! protected TraceLigne tlSelection_= null;
!
! public ZCalqueLongPolygone() {
! super();
! }
!
! public ZCalqueLongPolygone(ZModeleLongPolygone _modele) {
! this();
! modele(_modele);
! }
!
! /**
! * @param _modele Modele
! */
! public void modele(ZModeleLongPolygone _modele) {
! if (modele_ != _modele) {
! ZModeleLongPolygone vp= modele_;
! modele_= _modele;
! firePropertyChange("modele", vp, modele_);
! }
! }
!
! /**
! * @return Modele
! */
! public ZModeleLongPolygone modele() {
! return modele_;
! }
! public ZModeleDonnees modeleDonnees() {
! return modele();
! }
!
! /**
! * @param _g
! */
! public void paintComponent(Graphics _g) {
! super.paintComponent(_g);
! if ((modele_ == null) || (modele_.getNombre() <= 0))
! return;
! GrBoite clip= getClipReel(_g);
! GrBoite domaine= modele_.getDomaine();
!
! if (!domaine.intersectXY(clip)) {
! return;
! }
! GrMorphisme versEcran= getVersEcran();
! boolean attenue= isAttenue();
!
! // BPaletteCouleur paletteCouleur = getPaletteCouleur();
! // BPaletteIcone paletteIcone = getPaletteIcone();
! int nombre= modele_.getNombre();
! Color foreground= getForeground();
! if (attenue)
! foreground= attenueCouleur(foreground);
! boolean rapide= isRapide();
!
! Icon icone= getIcone();
! if (attenue)
! icone= attenueIcone(icone);
!
! GrBoite bPoly;
! if (tl_ == null)
! tl_= new TraceLigne((Graphics2D)_g);
! else
! tl_.graphics((Graphics2D)_g);
!
! for (int i= 0; i < nombre; i++) {
! bPoly= modele_.getDomaineForPolygoneIdx(i);
! //Si la boite du polygone n'est pas dans la boite d'affichage on passe
! if (bPoly.intersectionXY(clip) == null)
! continue;
! int nbPoints= modele_.getNbPointForPolygoneIdx(i);
! if (nbPoints <= 0)
! continue;
! //QUESTION: a rajouter
! /* double z = 0.;
! if(domaine.e.z > domaine.o.z)
! z = (p.z - domaine.o.z) / (domaine.e.z - domaine.o.z);*/
! // p.autoApplique(versEcran);
! Color c= foreground;
! Icon s= icone;
! /*if(paletteCouleur != null)
! {
! c = paletteCouleur.couleur(z);
! if(attenue)
! c = attenueCouleur(c);
! }
! if(paletteIcone != null)
! {
! s = paletteIcone.icone(z);
! if(attenue)
! s = attenueIcone(s);
! } */
! if (c == null)
! return;
! _g.setColor(c);
! tl_.setCouleur(c);
! GrPoint ptOri= new GrPoint();
! modele_.point(ptOri, i, nbPoints-1);
! ptOri.autoApplique(versEcran);
! if (s != null)
! s.paintIcon(this, _g, (int)ptOri.x, (int)ptOri.y);
! GrPoint ptDest= new GrPoint();
! for (int j= 0; j < nbPoints; j++) {
! //le point de dest est initialise
! modele_.point(ptDest, i, j);
! ptDest.autoApplique(versEcran);
! if (s != null)
! s.paintIcon(this, _g, (int)ptDest.x, (int)ptDest.y);
! tl_.dessineTrait(ptOri.x, ptOri.y, ptDest.x, ptDest.y);
! ptOri.initialise(ptDest);
! // indexGlobal++;
! // tl_.dessineTexte(
! // DodicoLib.getString(indexGlobal),
! // (int)ptOri.x,
! // (int)ptOri.y);
! }
! }
!
! if ((!rapide) && (!isSelectionEmpty())) {
! if (tlSelection_ == null)
! tlSelection_= new TraceLigne((Graphics2D)_g);
! else
! tlSelection_.graphics((Graphics2D)_g);
! initIconeSelection();
! initCouleurSelection();
! Color cs= couleurSelection();
! Icon ic= iconeSelection();
! if (attenue) {
! cs= attenueCouleur(cs);
! ic= attenueIcone(ic);
! }
! _g.setColor(cs);
! tlSelection_.setCouleur(cs);
! //tlSelection_.setEpaisseur(2f);
! int nb= selection_.getMaxIndex();
! for (int i= nb; i >= 0; i--) {
! if (!selection_.isSelected(i))
! continue;
! bPoly= modele_.getDomaineForPolygoneIdx(i);
! //Si la boite du polygone n'est pas dans la boite d'affichage on passe
! if (bPoly.intersectionXY(clip) == null)
! continue;
! int nbPoints= modele_.getNbPointForPolygoneIdx(i);
! GrPoint ptOri= new GrPoint();
! modele_.point(ptOri, i, 0);
! ptOri.autoApplique(versEcran);
! GrPoint ptDest= new GrPoint();
! for (int j= nbPoints - 1; j >= 0; j--) {
! //le point de dest est initialise
! modele_.point(ptDest, i, j);
! ptDest.autoApplique(versEcran);
! ic.paintIcon(this, _g, (int)ptDest.x, (int)ptDest.y);
! tlSelection_.dessineTrait(ptOri.x, ptOri.y, ptDest.x, ptDest.y);
! ptOri.initialise(ptDest);
! }
! }
! /* if(!selection_.isSelectionPartielleVide())
! {
! int[] s=entitePartielleSelection();
! int nb=s.length-1;
! initIconeSelectionPartielle();
! initCouleurSelection();
! Color cs=couleurSelection();
! Icon ic=iconeSelectionPartielle();
! if(attenue)
! {
! cs=attenueCouleur(cs);
! ic=attenueIcone(ic);
! }
! _g.setColor(cs);
! int t;
! for(int i = nb; i >=0; i--)
! {
! t=s[i];
! modele_.polygone(p,t);
! if(clip.intersectXY(p.boite()))
! {
! int[] atomes=partielleSelection(t);
! int nbAtomes=atomes.length-1;
! GrPoint pt=new GrPoint();
! for(int j=nbAtomes;j>=0;j--)
! {
! p.sommets.renvoie(pt,atomes[j]);
! if(clip.contientXY(pt))
! {
! p.autoApplique(versEcran);
! ic.paintIcon(this, _g, (int)pt.x, (int)pt.y);
! }
! }
! }
! }
! } */
! }
! }
!
! public EbliListeSelection selection(
! GrPolygone _polySelection,
! boolean _partiel) {
! GrBoite boitePolySelection= _polySelection.boite();
! GrMorphisme versEcran= getVersEcran();
! GrBoite bClip= getDomaine();
! bClip.autoApplique(versEcran);
! if (!boitePolySelection.intersectXY(bClip))
! return null;
! int nb= modele().getNombre() - 1;
! bClip= getClipReel(getGraphics());
! // GrPolygone poly = new GrPolygone();
! EbliListeSelection r= creeSelection();
! if (_partiel) {
! /* for(int i=nb;i>=0;i--)
! {
! modele().polygone(poly,i);
! if(bClip.intersectXY(poly.boite()))
! {
! poly.autoApplique(versEcran);
! if(boitePolySelection.intersectXY(poly.boite()))
! {
! DefaultListSelectionModel l=GrPolygone.pointsSelectionnes(poly,_polySelection);
! if(l!=null)
! {
! if(EbliListeSelection.estTotal(l,poly.nombre()))
! r.add(i);
! else
! r.setSelectionPartielle(i,l);
! }
! }
! }
! } */
! } else {
!
! for (int i= nb; i >= 0; i--) {
! //modele().polygone(poly, i);
! if (bClip.contientXY(modele_.getDomaineForPolygoneIdx(i))) {
! int nbPoint= modele_.getNbPointForPolygoneIdx(i) - 1;
! GrPoint p= new GrPoint();
! boolean selected= true;
! for (int j= nbPoint;(j >= 0) && selected; j--) {
! modele_.point(p, i, j);
! p.autoApplique(versEcran);
! if ((!boitePolySelection.contient(p))
! || (!_polySelection.contientXY(p))) {
! selected= false;
! }
! }
! if (selected)
! r.add(i);
! }
! }
! }
! if (r.isEmpty())
! return null;
! else
! return r;
!
! }
!
! public EbliListeSelection selection(
! GrPoint _pt,
! int _tolerance,
! boolean _partiel) {
!
! GrMorphisme versEcran= getVersEcran();
! GrBoite bClip= getDomaine();
! bClip.autoApplique(versEcran);
! if ((!bClip.contientXY(_pt)) && (bClip.distanceXY(_pt) > _tolerance))
! return null;
! int nb= modele().getNombre() - 1;
! bClip= getClipReel(getGraphics());
! GrPolygone poly= new GrPolygone();
! GrPoint pt1= new GrPoint();
! GrPoint pt2= new GrPoint();
! poly.sommets.ajoute(pt1);
! poly.sommets.ajoute(pt2);
! if (_partiel) {
! /* GrPoint p=new GrPoint();
! for(int i=nb;i>=0;i--)
! {
! modele().polygone(poly,i);
! if(bClip.intersectXY(poly.boite()))
! {
! poly.autoApplique(versEcran);
! int nbPt=poly.sommets.nombre()-1;
! for(int j=nbPt;j>=0;j--)
! {
! poly.sommets.renvoie(p,j);
! if(GrPoint.estSelectionne(p, _tolerance, _pt))
! {
! EbliListeSelection r=creeSelection();
! r.setSelectionPartielle(i,j);
! return r;
! }
! }
! }
! } */
! } else {
! for (int i= nb; i >= 0; i--) {
! if (bClip.intersectXY(modele_.getDomaineForPolygoneIdx(i))) {
! int nbPt= modele_.getNbPointForPolygoneIdx(i) - 1;
! for (int j= nbPt; j >= 1; j--) {
! modele_.point(pt1, i, j);
! modele_.point(pt2, i, j - 1);
! poly.autoApplique(versEcran);
! if (GrPolygone.estSelectionne(poly, _tolerance, _pt)) {
! EbliListeSelection r= creeSelection();
! r.add(i);
! return r;
! }
! }
! }
! }
! }
! return null;
!
! }
}
|
|
From: <de...@us...> - 2003-09-09 05:10:34
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/lido/graphe
In directory sc8-pr-cvs1:/tmp/cvs-serv23942/graphe
Modified Files:
LidoGrapheProfil.java
Log Message:
Correction bogue 801164
Index: LidoGrapheProfil.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/lido/graphe/LidoGrapheProfil.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** LidoGrapheProfil.java 4 Jul 2003 15:46:50 -0000 1.7
--- LidoGrapheProfil.java 8 Sep 2003 08:00:39 -0000 1.8
***************
*** 23,27 ****
* Un composant pour afficher les profils.
*
! * @version $Revision$ $Date$ by $Author$
* @author Axel von Arnim
*/
--- 23,27 ----
* Un composant pour afficher les profils.
*
! * @version $Id$
* @author Axel von Arnim
*/
***************
*** 292,298 ****
return;
axeX_[0] = axeX_[1] = axeZ_[0] = axeZ_[1] = null;
- if (FudaaLib.DEBUG)
- System.out.println("update graphe");
updateParametres();
}
}
--- 292,297 ----
return;
axeX_[0] = axeX_[1] = axeZ_[0] = axeZ_[1] = null;
updateParametres();
+ updateGraphe();
}
}
|
|
From: <de...@us...> - 2003-09-09 04:09:48
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/lido/editor
In directory sc8-pr-cvs1:/tmp/cvs-serv23942/editor
Modified Files:
LidoProfilEditor.java
Log Message:
Correction bogue 801164
Index: LidoProfilEditor.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/lido/editor/LidoProfilEditor.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** LidoProfilEditor.java 4 Jul 2003 15:46:49 -0000 1.7
--- LidoProfilEditor.java 8 Sep 2003 08:00:38 -0000 1.8
***************
*** 30,35 ****
import java.util.*;
-
-
// ATTENTION: On ne gere ici que le cas de profils entres par points!!
// prevoir la gestion par largeurs ou transformer automatiquement en
--- 30,33 ----
***************
*** 40,57 ****
* @author Axel von Arnim
[...1535 lines suppressed...]
! if (graphe_ == null)
! return 0;
return 1;
}
!
! public int print(Graphics _g, PageFormat _format, int _page) {
! if (graphe_ == null)
! return Printable.NO_SUCH_PAGE;
graphe_.setName(getTitle());
! return graphe_.print(_g, _format, _page);
}
! public BuInformationsDocument getInformationsDocument() {
! return p_.getInformationsDocument();
! }
!
! protected boolean isObjectModificationImportant(Object o) {
! return (o == profil_);
}
}
|