erreur de compil dans la creation d'une matrice
une erreur de compil dans la creation d'une matrice stockee dasn resultManager MatrixND matrixOtherCatchWeight = matrixOtherCatch.sumOverDim(1); // Somme sur les zones matrixOtherCatchWeight = matrixOtherCatchWeight.reduce(); //log.info("matrixOtherCatchWeight = " + matrixOtherCatchWeight); //on stocke cette matrice en nombre dans le resultManager pour la HCR MatrixND matrixCatchOtherNumber = MatrixFactory.getInstance().create( ResultName.MATRIX_CATCHOTHER, new List[] { Arrays.asList(new String[]{"Group"})}); matrixCatchOtherNumber = matrixOtherCatch; resultmanager.addResult(step, param_pop, matrixCatchOtherNumber); sacahnt que dans ResultName j'ai defini /** * Matrix with two dimensions * Dimension 1 : TimeStep * Dimension 2 : Group */ @Doc(value = "do the doc of Result matrixCatchOther") static final public String MATRIX_CATCHOTHER = n("matrixCatchOther"); une idee? merci Steph -- ...................................................................... Stephanie MAHEVAS (Stephanie.Mahevas@ifremer.fr) IFREMER/EMH (Ecologie et Modèles pour l'Halieutique) Tel: (33) 2 40 37 41 81 Fax: (33) 2 40 37 40 75 o \ o / _ o __| \ / |__ o _ \ o / o /|\ | /\ ___\o \o | o/ o/__ /\ | /|\ / \ / \ | \ /) | ( \ /o\ / ) | (\ / | / \ / \ ......................................................................
le message d'erreur : The method getFile(String...) from the type FileUtil is deprecated ---------- 5. ERROR in E:\ISISFish\isis-fish-4\isis-community-database\rules\CapturesLongLinersNetters_Projection_Ratio.java (at line 297) new List[] { Arrays.asList(new String[]{"Group"})}); ^^^^^^ Arrays cannot be resolved ---------- 6. ERROR in E:\ISISFish\isis-fish-4\isis-community-database\rules\CapturesLongLinersNetters_Projection_Ratio.java (at line 299) resultmanager.addResult(step, param_pop, matrixCatchOtherNumber); ^^^^^^^^^ param_pop cannot be resolved to a variable Le 21/05/2015 17:32, Stephanie MAHEVAS a écrit :
une erreur de compil dans la creation d'une matrice stockee dasn resultManager
MatrixND matrixOtherCatchWeight = matrixOtherCatch.sumOverDim(1); // Somme sur les zones matrixOtherCatchWeight = matrixOtherCatchWeight.reduce(); //log.info("matrixOtherCatchWeight = " + matrixOtherCatchWeight);
//on stocke cette matrice en nombre dans le resultManager pour la HCR MatrixND matrixCatchOtherNumber = MatrixFactory.getInstance().create( ResultName.MATRIX_CATCHOTHER, new List[] { Arrays.asList(new String[]{"Group"})}); matrixCatchOtherNumber = matrixOtherCatch; resultmanager.addResult(step, param_pop, matrixCatchOtherNumber);
sacahnt que dans ResultName j'ai defini /** * Matrix with two dimensions * Dimension 1 : TimeStep * Dimension 2 : Group */ @Doc(value = "do the doc of Result matrixCatchOther") static final public String MATRIX_CATCHOTHER = n("matrixCatchOther");
une idee? merci Steph
-- ...................................................................... Stephanie MAHEVAS (Stephanie.Mahevas@ifremer.fr) IFREMER/EMH (Ecologie et Modèles pour l'Halieutique) Tel: (33) 2 40 37 41 81 Fax: (33) 2 40 37 40 75 o \ o / _ o __| \ / |__ o _ \ o / o /|\ | /\ ___\o \o | o/ o/__ /\ | /|\ / \ / \ | \ /) | ( \ /o\ / ) | (\ / | / \ / \ ......................................................................
Le 21/05/2015 17:33, Stephanie MAHEVAS a écrit :
le message d'erreur : The method getFile(String...) from the type FileUtil is deprecated ---------- 5. ERROR in E:\ISISFish\isis-fish-4\isis-community-database\rules\CapturesLongLinersNetters_Projection_Ratio.java (at line 297) new List[] { Arrays.asList(new String[]{"Group"})}); ^^^^^^ Arrays cannot be resolved Il manque l'import "java.util.Arrays"
---------- 6. ERROR in E:\ISISFish\isis-fish-4\isis-community-database\rules\CapturesLongLinersNetters_Projection_Ratio.java (at line 299) resultmanager.addResult(step, param_pop, matrixCatchOtherNumber); ^^^^^^^^^ param_pop cannot be resolved to a variable dans cette règle, le paramètre s’appelle "param_Population", pas "param_pop".
-- Éric Chatellier - www.codelutin.com - 02.40.50.29.28
merci! Le 21/05/2015 17:43, Eric Chatellier a écrit :
Le 21/05/2015 17:33, Stephanie MAHEVAS a écrit :
le message d'erreur : The method getFile(String...) from the type FileUtil is deprecated ---------- 5. ERROR in E:\ISISFish\isis-fish-4\isis-community-database\rules\CapturesLongLinersNetters_Projection_Ratio.java (at line 297) new List[] { Arrays.asList(new String[]{"Group"})}); ^^^^^^ Arrays cannot be resolved Il manque l'import "java.util.Arrays"
---------- 6. ERROR in E:\ISISFish\isis-fish-4\isis-community-database\rules\CapturesLongLinersNetters_Projection_Ratio.java (at line 299) resultmanager.addResult(step, param_pop, matrixCatchOtherNumber); ^^^^^^^^^ param_pop cannot be resolved to a variable dans cette règle, le paramètre s’appelle "param_Population", pas "param_pop".
-- ...................................................................... Stephanie MAHEVAS (Stephanie.Mahevas@ifremer.fr) IFREMER/EMH (Ecologie et Modèles pour l'Halieutique) Tel: (33) 2 40 37 41 81 Fax: (33) 2 40 37 40 75 o \ o / _ o __| \ / |__ o _ \ o / o /|\ | /\ ___\o \o | o/ o/__ /\ | /|\ / \ / \ | \ /) | ( \ /o\ / ) | (\ / | / \ / \ ......................................................................
participants (2)
-
Eric Chatellier -
Stephanie MAHEVAS