fr.ifremer.isisfish.simulator
Class ResultManager

java.lang.Object
  extended by fr.ifremer.isisfish.simulator.ResultManager

public class ResultManager
extends Object

Used to store and retrieve result during simulation. This class manage result listener

Author:
poussin

Field Summary
protected  SimulationContext context
           
protected  Set<String> enabledResult
          result enabled
protected  SimulationResultGetter getter
           
protected  Set<SimulationResultListener> listeners
           
 
Constructor Summary
ResultManager(SimulationContext context)
           
 
Method Summary
 void addActiveRule(Date date, Rule rule)
           
 void addResult(boolean force, Date date, org.nuiton.math.matrix.MatrixND mat)
           
 void addResult(boolean force, Date date, Population pop, org.nuiton.math.matrix.MatrixND mat)
           
 void addResult(boolean force, Date date, String name, org.nuiton.math.matrix.MatrixND mat)
           
 void addResult(boolean force, Date date, String name, Population pop, org.nuiton.math.matrix.MatrixND mat)
           
 void addResult(Date date, org.nuiton.math.matrix.MatrixND mat)
           
 void addResult(Date date, Population pop, org.nuiton.math.matrix.MatrixND mat)
           
 void addResult(Date date, String name, org.nuiton.math.matrix.MatrixND mat)
           
 void addResult(Date date, String name, Population pop, org.nuiton.math.matrix.MatrixND mat)
           
protected  void addSimulationResultListener(SimulationResultListener l)
          Don't use this method to add listener, use SimulationContext.addSimulationListener(SimulationListener)
 org.nuiton.math.matrix.MatrixND getMatrix(Date date, Population pop, String name)
          Retourne la matrice stocke pour un pas de temps
 org.nuiton.math.matrix.MatrixND getMatrix(Date date, String name)
           
 org.nuiton.math.matrix.MatrixND getMatrix(Population pop, String name)
          Retourne une matrice contenant tous les pas de temps.
 org.nuiton.math.matrix.MatrixND getMatrix(String name)
          Retourne une matrice contenant tous les pas de temps.
 boolean isEnabled(String name)
          Permet de savoir si lorsque l'on ajoutera ce resultat, il sera sauvé ou non.
protected  void removeSimulationResultListener(SimulationResultListener l)
          Don't use this method to remove listener, use SimulationContext.removeSimulationListener(SimulationListener)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected SimulationContext context

listeners

protected Set<SimulationResultListener> listeners

getter

protected SimulationResultGetter getter

enabledResult

protected transient Set<String> enabledResult
result enabled

Constructor Detail

ResultManager

public ResultManager(SimulationContext context)
Method Detail

addSimulationResultListener

protected void addSimulationResultListener(SimulationResultListener l)
Don't use this method to add listener, use SimulationContext.addSimulationListener(SimulationListener)

Parameters:
l -

removeSimulationResultListener

protected void removeSimulationResultListener(SimulationResultListener l)
Don't use this method to remove listener, use SimulationContext.removeSimulationListener(SimulationListener)

Parameters:
l -

isEnabled

public boolean isEnabled(String name)
Permet de savoir si lorsque l'on ajoutera ce resultat, il sera sauvé ou non.


addActiveRule

public void addActiveRule(Date date,
                          Rule rule)
                   throws IsisFishException
Throws:
IsisFishException

addResult

public void addResult(Date date,
                      org.nuiton.math.matrix.MatrixND mat)
               throws IsisFishException
Throws:
IsisFishException

addResult

public void addResult(Date date,
                      Population pop,
                      org.nuiton.math.matrix.MatrixND mat)
               throws IsisFishException
Throws:
IsisFishException

addResult

public void addResult(boolean force,
                      Date date,
                      org.nuiton.math.matrix.MatrixND mat)
               throws IsisFishException
Throws:
IsisFishException

addResult

public void addResult(boolean force,
                      Date date,
                      Population pop,
                      org.nuiton.math.matrix.MatrixND mat)
               throws IsisFishException
Throws:
IsisFishException

addResult

public void addResult(Date date,
                      String name,
                      Population pop,
                      org.nuiton.math.matrix.MatrixND mat)
               throws IsisFishException
Throws:
IsisFishException

addResult

public void addResult(Date date,
                      String name,
                      org.nuiton.math.matrix.MatrixND mat)
               throws IsisFishException
Throws:
IsisFishException

addResult

public void addResult(boolean force,
                      Date date,
                      String name,
                      Population pop,
                      org.nuiton.math.matrix.MatrixND mat)
               throws IsisFishException
Throws:
IsisFishException

addResult

public void addResult(boolean force,
                      Date date,
                      String name,
                      org.nuiton.math.matrix.MatrixND mat)
               throws IsisFishException
Throws:
IsisFishException

getMatrix

public org.nuiton.math.matrix.MatrixND getMatrix(Date date,
                                                 Population pop,
                                                 String name)
Retourne la matrice stocke pour un pas de temps

Parameters:
date - le pas de temps que l'on souhaite
pop - la population pour lequelle on souhaite le resultat
name - le nom des resultats dont on veut la matrice
Returns:
La matrice demandée ou null si aucune matrice ne correspond a la demande.

getMatrix

public org.nuiton.math.matrix.MatrixND getMatrix(Date date,
                                                 String name)

getMatrix

public org.nuiton.math.matrix.MatrixND getMatrix(Population pop,
                                                 String name)
Retourne une matrice contenant tous les pas de temps.

Parameters:
pop - la population pour lequel on souhaite la matrice
name - le nom des resultats dont on veut une matrice globale.

getMatrix

public org.nuiton.math.matrix.MatrixND getMatrix(String name)
Retourne une matrice contenant tous les pas de temps.

Parameters:
name - le nom des resultats dont on veut une matrice globale.


Copyright © 1999-2010 CodeLutin. All Rights Reserved.