Author: chatellier Date: 2010-01-27 16:08:10 +0000 (Wed, 27 Jan 2010) New Revision: 2950 Added: isis-fish/branches/3.3.1/src/test/java/fr/ifremer/isisfish/rule/ isis-fish/branches/3.3.1/src/test/java/fr/ifremer/isisfish/rule/RuleMock.java Log: Add a basic rule implementation (for test). Added: isis-fish/branches/3.3.1/src/test/java/fr/ifremer/isisfish/rule/RuleMock.java =================================================================== --- isis-fish/branches/3.3.1/src/test/java/fr/ifremer/isisfish/rule/RuleMock.java (rev 0) +++ isis-fish/branches/3.3.1/src/test/java/fr/ifremer/isisfish/rule/RuleMock.java 2010-01-27 16:08:10 UTC (rev 2950) @@ -0,0 +1,93 @@ +/* *##% + * Copyright (C) 2010 Ifremer, Code Lutin, Chatellier Eric + * + * 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, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + *##%*/ + +package fr.ifremer.isisfish.rule; + +import fr.ifremer.isisfish.entities.Metier; +import fr.ifremer.isisfish.simulator.SimulationContext; +import fr.ifremer.isisfish.types.Date; + +/** + * A basic rule implementation. + * + * @author chatellier + * @version $Revision$ + * + * Last update : $Date$ + * By : $Author$ + */ +public class RuleMock extends AbstractRule { + + public String description; + + public RuleMock(String description) { + this.description = description; + } + + /* + * @see fr.ifremer.isisfish.rule.Rule#getNecessaryResult() + */ + @Override + public String[] getNecessaryResult() { + return null; + } + + /* + * @see fr.ifremer.isisfish.rule.Rule#getDescription() + */ + @Override + public String getDescription() throws Exception { + return null; + } + + /* + * @see fr.ifremer.isisfish.rule.Rule#init(fr.ifremer.isisfish.simulator.SimulationContext) + */ + @Override + public void init(SimulationContext context) throws Exception { + + } + + /* + * @see fr.ifremer.isisfish.rule.Rule#condition(fr.ifremer.isisfish.simulator.SimulationContext, fr.ifremer.isisfish.types.Date, fr.ifremer.isisfish.entities.Metier) + */ + @Override + public boolean condition(SimulationContext context, Date date, Metier metier) + throws Exception { + return false; + } + + /* + * @see fr.ifremer.isisfish.rule.Rule#preAction(fr.ifremer.isisfish.simulator.SimulationContext, fr.ifremer.isisfish.types.Date, fr.ifremer.isisfish.entities.Metier) + */ + @Override + public void preAction(SimulationContext context, Date date, Metier metier) + throws Exception { + // TODO Auto-generated method stub + + } + + /* + * @see fr.ifremer.isisfish.rule.Rule#postAction(fr.ifremer.isisfish.simulator.SimulationContext, fr.ifremer.isisfish.types.Date, fr.ifremer.isisfish.entities.Metier) + */ + @Override + public void postAction(SimulationContext context, Date date, Metier metier) + throws Exception { + + } +} Property changes on: isis-fish/branches/3.3.1/src/test/java/fr/ifremer/isisfish/rule/RuleMock.java ___________________________________________________________________ Added: svn:keywords + "Author Date Id Revision HeadURL"
participants (1)
-
chatellierï¼ users.labs.libre-entreprise.org