/* * #%L * IsisFish data * %% * Copyright (C) 2009 - 2014 Ifremer, Code Lutin, Benjamin Poussin, Yves Reecht * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program. If not, see * . * #L% */ package simulators; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import fr.ifremer.isisfish.simulator.SimulationContext; import fr.ifremer.isisfish.simulator.SimulationParameter; import fr.ifremer.isisfish.simulator.Simulator; /** * Simulateur qui fixe la valeur de effortByCellMarxanWithZones a true pour forcer * l'utilisation des calcules par cellule plutot que par zone, avec réduction de l'effort * en fonction de l'intersection avec des zones de gestions Marxan with Zones * (définies par un script de présimu). * * @author poussin */ public class SimulatorEffortByCellMarxanWithZones implements Simulator { /** to use log facility, just put in your code: log.info("..."); */ static private Log log = LogFactory.getLog(SimulatorEffortByCellMarxanWithZones.class); /** * Called by isis don't modify signature */ public void simulate(SimulationContext context) throws Exception { SimulationParameter param = context.getSimulationStorage().getParameter(); param.getTagValue().put("effortByCellMarxanWithZones", "true"); DefaultSimulator simulator = new DefaultSimulator(); simulator.simulate(context); } }