Bonjour J'ai ajoute un nouveau resultat (une matrice) mais je ne suis vraiment pas sure de la syntaxe. qqn peut-il me dire si c'est ok ? en fait je pense qu'il me manque un truc genre ResultName.MATRIX_MATRIX_CATCHOTHER = matrixOtherCatch.sumOverDim(1).reduce(); ajout dans resultname de /** * 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"); ajout dans une rule //rajouter un resultat dans resultmanager //ResultName.MATRIX_MATRIX_CATCHOTHER = matrixOtherCatch.sumOverDim(1).reduce(); ResultStorage resultmanager = context.getSimulationStorage() .getResultStorage(); MatrixND matrixCatchOtherInNumber = matrixOtherCatch.sumOverDim(1).reduce(); resultmanager.addResult(step, pop, matrixCatchOtherInNumber); merci -- ...................................................................... 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 18/05/2015 20:08, Stephanie MAHEVAS a écrit :
Bonjour
J'ai ajoute un nouveau resultat (une matrice) mais je ne suis vraiment pas sure de la syntaxe. qqn peut-il me dire si c'est ok ? en fait je pense qu'il me manque un truc genre ResultName.MATRIX_MATRIX_CATCHOTHER = matrixOtherCatch.sumOverDim(1).reduce(); C'est bon, sauf que le résultat doit être nommé (la matrice).
Donc il manque: matrixCatchOtherInNumber.setName(ResultName.MATRIX_MATRIX_CATCHOTHER); avant: resultmanager.addResult(step, pop, matrixCatchOtherInNumber);
ajout dans resultname de /** * 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");
ajout dans une rule //rajouter un resultat dans resultmanager //ResultName.MATRIX_MATRIX_CATCHOTHER = matrixOtherCatch.sumOverDim(1).reduce(); ResultStorage resultmanager = context.getSimulationStorage() .getResultStorage(); MatrixND matrixCatchOtherInNumber = matrixOtherCatch.sumOverDim(1).reduce(); resultmanager.addResult(step, pop, matrixCatchOtherInNumber);
merci
-- Éric Chatellier - www.codelutin.com - 02.40.50.29.28
participants (2)
-
Eric Chatellier -
Stephanie MAHEVAS