|
From: <de...@us...> - 2003-08-19 07:44:25
|
Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/h2d
In directory sc8-pr-cvs1:/tmp/cvs-serv9684/h2d
Modified Files:
H2dParametres.java
Log Message:
Maj des import
Index: H2dParametres.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/h2d/H2dParametres.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** H2dParametres.java 4 Jul 2003 13:07:25 -0000 1.2
--- H2dParametres.java 19 Aug 2003 07:44:22 -0000 1.3
***************
*** 9,19 ****
package org.fudaa.dodico.h2d;
- import java.util.Comparator;
-
- import com.memoire.bu.BuInformationsDocument;
-
- import org.fudaa.dodico.corba.tr.STrProjetH2d;
- import org.fudaa.dodico.corba.tr.STrProprieteElementaireTransitoire;
- import org.fudaa.dodico.corba.tr.STrProprieteElementaireValeur;
/**
--- 9,12 ----
***************
*** 22,122 ****
* @version $Id$
*/
! public abstract class H2dParametres
{
-
- private STrProjetH2d projet_;
- public static final String CODE_NON_INITIALISE = "INCONNU";
- public static final String CODE_LIBRE = "LIBRE";
- public static final String CODE_PERMANENT = "PERMANENT";
- public static final String CODE_TRANSITOIRE_BEGIN = "TRANS_";
- public static final double NORMALE_NON_INITIALISEE = 400;
-
- //Taille de 16 maxi pour serafin.
- public static String PROPRIETE_VISCOSITE = "VISCOSITE";
- public static String PROPRIETE_RUGOSITE = "RUGOSITE";
- public static String PROPRIETE_ALPHA_LONGUEUR_MELANGE = "LONGUEUR MELANGE";
- public static String PROPRIETE_PERTE_CHARGE = "PERTE CHARGE";
-
-
-
- public H2dParametres()
- {
- }
-
-
- public static boolean isTransitoire(String _code)
- {
- return _code.startsWith(CODE_TRANSITOIRE_BEGIN);
- }
-
-
- // public void setMaillage(SMaillageIndex _index)
- // {
- // if (projet_ == null)
- // projet_ = new STrProjetH2d();
- // projet_.maillage = _index;
- // }
-
- /**
- * Permet de comparer les STrProprieteElementaireValeur a partir de leur
- * index.
- */
- public static Comparator getProprieteElementaireValeurIndexComparator()
- {
- return new proprieteElementaireValeurIndexComparator();
-
- }
! /**
! * Permet de comparer les STrProprieteElementaireTransitoire a partir de leur
! * index.
! */
! public static Comparator getProprieteElementaireTransitoireIndexComparator()
! {
! return new proprieteElementaireTransitoireIndexComparator();
!
! }
!
! static class proprieteElementaireValeurIndexComparator implements Comparator
! {
!
! /**
! * @see java.util.Comparator#compare(Object, Object)
! */
! public int compare(Object o1, Object o2)
! {
! if( (! (o1 instanceof STrProprieteElementaireValeur)) ||
! (! (o2 instanceof STrProprieteElementaireValeur)) )
! {
! throw new IllegalArgumentException("Arguments non valides");
! }
!
! STrProprieteElementaireValeur v1=(STrProprieteElementaireValeur)o1;
! STrProprieteElementaireValeur v2=(STrProprieteElementaireValeur)o2;
! return v1.indexElement-v2.indexElement;
! }
!
! }
!
! static class proprieteElementaireTransitoireIndexComparator implements Comparator
! {
!
! /**
! * @see java.util.Comparator#compare(Object, Object)
! */
! public int compare(Object o1, Object o2)
! {
! if( (! (o1 instanceof STrProprieteElementaireTransitoire)) ||
! (! (o2 instanceof STrProprieteElementaireTransitoire)) )
! {
! throw new IllegalArgumentException("Arguments non valides");
! }
!
! STrProprieteElementaireTransitoire v1=(STrProprieteElementaireTransitoire)o1;
! STrProprieteElementaireTransitoire v2=(STrProprieteElementaireTransitoire)o2;
! return v1.indexElement-v2.indexElement;
! }
- }
}
--- 15,23 ----
* @version $Id$
*/
! public interface H2dParametres
{
! public H2dMaillage getMaillage();
}
|