From: Bertrand M. <bma...@us...> - 2004-04-15 07:42:46
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14098 Modified Files: RefondeGroupeProprietes.java Log Message: Intégration du calcul des seiches dans Fudaa-Refonde : Prise en compte des spécificités seiche. Index: RefondeGroupeProprietes.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeGroupeProprietes.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** RefondeGroupeProprietes.java 25 Nov 2003 10:14:15 -0000 1.3 --- RefondeGroupeProprietes.java 15 Apr 2004 07:42:33 -0000 1.4 *************** *** 8,13 **** */ package org.fudaa.fudaa.refonde; ! import java.io.*; ! import java.util.*; /** * Classe de regroupement de propriétés suivant la nature. --- 8,12 ---- */ package org.fudaa.fudaa.refonde; ! /** * Classe de regroupement de propriétés suivant la nature. *************** *** 19,22 **** --- 18,22 ---- private int type_; private RefondePropriete[] proprietes_; + public static final int HOULE_BORD_OUVERT_SORTIE= 0; public static final int HOULE_BORD_OUVERT_ENTREE= 1; *************** *** 24,86 **** public static final int HOULE_FOND_PAROI_PERFOREE= 3; public static final int HOULE_FOND_DIGUE_TRANSMISSIBLE= 4; /** * Attributs de classes, architecture des groupes de propriétés */ // Types ! public static final int[] types= ! { ! HOULE_BORD_OUVERT_SORTIE, ! HOULE_BORD_OUVERT_ENTREE, ! HOULE_BORD_SEMI_REFLECHISSANT, ! HOULE_FOND_PAROI_PERFOREE, ! HOULE_FOND_DIGUE_TRANSMISSIBLE }; // Noms des groupes de propriétés visibles depuis l'ihm ! public static final String[] labels= ! { ! "Bord ouvert en sortie", ! "Bord ouvert en entrée", ! "Bord semi réflechissant", ! "Paroi perforée", ! "Digue transmissible" }; // Types des propriétés pour le type de groupe ! public static final int[][] typesProprietes= { {}, {}, { ! RefondePropriete.REFLEXION }, { ! RefondePropriete.PERTE_CHARGE_R, ! RefondePropriete.PERTE_CHARGE_I, ! RefondePropriete.POROSITE, ! RefondePropriete.CONTRACTION, ! RefondePropriete.INTG_VERTICALE }, ! { ! RefondePropriete.REFLEXION, ! RefondePropriete.TRANSMISSION, ! RefondePropriete.DP_REFLEXION, ! RefondePropriete.DP_TRANSMISSION } }; // Imposition des proprietes ! public static final int[][] imposeProprietes= { {}, {}, { ! 1 }, { ! 1, 1, 1, 1, 1 }, { ! 1, 1, 1, 1 } }; // Comportement des proprietes (STATIONNAIRE, TRANSITOIRE, MIXTE) ! public static final int[][] cas= { {}, {}, { ! RefondePropriete.STATIONNAIRE }, { RefondePropriete.STATIONNAIRE, - RefondePropriete.STATIONNAIRE, - RefondePropriete.STATIONNAIRE, - RefondePropriete.STATIONNAIRE, - RefondePropriete.STATIONNAIRE }, - { RefondePropriete.STATIONNAIRE, ! RefondePropriete.STATIONNAIRE, ! RefondePropriete.STATIONNAIRE, ! RefondePropriete.STATIONNAIRE } }; // Valeurs par défaut ! public static final double[][] valeursDefaut= { {}, {}, { ! 1. }, { ! 1., 0., 0., 0., 1. }, { ! 1., 0., 0., 0. } }; /** * Création d'un groupe de propriétés de type donné. Les propriétés sont créées --- 24,116 ---- public static final int HOULE_FOND_PAROI_PERFOREE= 3; public static final int HOULE_FOND_DIGUE_TRANSMISSIBLE= 4; + public static final int SEICHE_BORD_OUVERT=5; + public static final int SEICHE_BORD_FERME=6; + /** * Attributs de classes, architecture des groupes de propriétés */ + // Types ! public static final int[] types={ ! HOULE_BORD_OUVERT_SORTIE, ! HOULE_BORD_OUVERT_ENTREE, ! HOULE_BORD_SEMI_REFLECHISSANT, ! HOULE_FOND_PAROI_PERFOREE, ! HOULE_FOND_DIGUE_TRANSMISSIBLE , ! SEICHE_BORD_OUVERT, ! SEICHE_BORD_FERME ! }; ! // Noms des groupes de propriétés visibles depuis l'ihm ! public static final String[] labels={ ! "Bord ouvert en sortie", ! "Bord ouvert en entrée", ! "Bord semi réflechissant", ! "Paroi perforée", ! "Digue transmissible", ! "Bord ouvert", ! "Bord fermé" ! }; ! // Types des propriétés pour le type de groupe ! public static final int[][] typesProprietes={ ! {}, ! {}, ! { RefondePropriete.REFLEXION }, ! ! { RefondePropriete.PERTE_CHARGE_R, ! RefondePropriete.PERTE_CHARGE_I, ! RefondePropriete.POROSITE, ! RefondePropriete.CONTRACTION, ! RefondePropriete.INTG_VERTICALE }, ! ! { RefondePropriete.REFLEXION, ! RefondePropriete.TRANSMISSION, ! RefondePropriete.DP_REFLEXION, ! RefondePropriete.DP_TRANSMISSION }, ! {}, ! {} }; + // Imposition des proprietes ! public static final int[][] imposeProprietes={ ! {}, ! {}, ! { 1 }, ! { 1, 1, 1, 1, 1 }, ! { 1, 1, 1, 1 }, ! {}, ! {} }; + // Comportement des proprietes (STATIONNAIRE, TRANSITOIRE, MIXTE) ! public static final int[][] cas={ ! {}, ! {}, ! { RefondePropriete.STATIONNAIRE }, ! { RefondePropriete.STATIONNAIRE, RefondePropriete.STATIONNAIRE, RefondePropriete.STATIONNAIRE, ! RefondePropriete.STATIONNAIRE, ! RefondePropriete.STATIONNAIRE }, ! { RefondePropriete.STATIONNAIRE, ! RefondePropriete.STATIONNAIRE, ! RefondePropriete.STATIONNAIRE, ! RefondePropriete.STATIONNAIRE }, ! {}, ! {} }; + // Valeurs par défaut ! public static final double[][] valeursDefaut={ ! {}, ! {}, ! { 1. }, ! { 1., 0., 0., 0., 1. }, ! { 1., 0., 0., 0. }, ! {}, ! {} }; + /** * Création d'un groupe de propriétés de type donné. Les propriétés sont créées *************** *** 96,99 **** --- 126,130 ---- proprietes_= prps; } + /** * Création d'un groupe de proprietes *************** *** 103,109 **** --- 134,142 ---- proprietes_= _proprietes; } + public int getType() { return type_; } + public RefondePropriete[] getProprietes() { return proprietes_; |