Package fr.ifremer.isisfish.entities
Class StrategyImpl
java.lang.Object
org.nuiton.topia.persistence.TopiaEntityAbstract
fr.ifremer.isisfish.entities.StrategyAbstract
fr.ifremer.isisfish.entities.StrategyImpl
- All Implemented Interfaces:
Strategy,Serializable,org.nuiton.topia.persistence.TopiaEntity,org.nuiton.topia.persistence.TopiaEntityContextable
Implantation des operations pour l'entité Strategy.
Created: 20 janv. 2006 03:29:14
- Version:
- $Revision$ Last update: $Date$ by : $Author$
- Author:
- poussin
- See Also:
-
Field Summary
Fields inherited from class fr.ifremer.isisfish.entities.StrategyAbstract
comment, inactivityEquation, inactivityEquationUsed, name, proportionSetOfVessels, setOfVessels, strategyMonthInfoFields inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
readListeners, readVetoables, topiaContext, topiaCreateDate, topiaId, topiaVersion, writeListeners, writeVetoablesFields inherited from interface fr.ifremer.isisfish.entities.Strategy
PROPERTY_COMMENT, PROPERTY_INACTIVITY_EQUATION, PROPERTY_INACTIVITY_EQUATION_USED, PROPERTY_NAME, PROPERTY_PROPORTION_SET_OF_VESSELS, PROPERTY_SET_OF_VESSELS, PROPERTY_STRATEGY_MONTH_INFOFields inherited from interface org.nuiton.topia.persistence.TopiaEntity
AGGREGATE, COMPOSITE, TOPIA_CREATE_DATE, TOPIA_ID, TOPIA_VERSIONFields inherited from interface org.nuiton.topia.persistence.TopiaEntityContextable
TOPIA_CONTEXT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoublegetInactivityDays(Month month) Compute or return inactivity days.org.nuiton.math.matrix.MatrixNDReturn a single matrix with all sub strategymonthinfo's proportionMetier to be displayed in a single matrix in UI.getStrategyMonthInfo(Month month) voidsetInactivityEquation(Equation inactivityEquation) Set inactivityEquation.voidsetInactivityEquationContent(String content) Set inactivityEquation content.voidsetInactivityEquationUsed(boolean inactivityEquationUsed) Set inactivityEquationUsed and launch numberOfTrips computation.voidOverride to change name of equation.voidsetProportionMetier(org.nuiton.math.matrix.MatrixND strategyProportionMetier) toString()Methods inherited from class fr.ifremer.isisfish.entities.StrategyAbstract
accept, accept0, addAllStrategyMonthInfo, addStrategyMonthInfo, clearStrategyMonthInfo, delete, getAggregate, getComment, getComposite, getInactivityEquation, getInactivityEquationUsed, getName, getProportionSetOfVessels, getSetOfVessels, getStrategyMonthInfoByTopiaId, isInactivityEquationUsed, isStrategyMonthInfoEmpty, removeStrategyMonthInfo, setComment, setProportionSetOfVessels, setSetOfVessels, setStrategyMonthInfo, sizeStrategyMonthInfo, updateMethods inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, equals, fireOnPostRead, fireOnPostRead, fireOnPostWrite, fireOnPostWrite, fireOnPreRead, fireOnPreWrite, getReadPropertyChangeSupport, getReadVetoableChangeSupport, getTopiaContext, getTopiaCreateDate, getTopiaId, getTopiaVersion, getWritePropertyChangeSupport, getWriteVetoableChangeSupport, hashCode, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaContext, setTopiaCreateDate, setTopiaId, setTopiaVersionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.nuiton.topia.persistence.TopiaEntity
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, getTopiaCreateDate, getTopiaId, getTopiaVersion, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaCreateDate, setTopiaId, setTopiaVersionMethods inherited from interface org.nuiton.topia.persistence.TopiaEntityContextable
getTopiaContext, setTopiaContext
-
Constructor Details
-
StrategyImpl
public StrategyImpl()
-
-
Method Details
-
getFisheryRegion
-
setName
Override to change name of equation.- Specified by:
setNamein interfaceStrategy- Overrides:
setNamein classStrategyAbstract- See Also:
-
setInactivityEquation
Set inactivityEquation. Do not forget to specify inactivity equation use.- Specified by:
setInactivityEquationin interfaceStrategy- Overrides:
setInactivityEquationin classStrategyAbstract- Parameters:
inactivityEquation-- See Also:
-
getStrategyMonthInfo
- Specified by:
getStrategyMonthInfoin interfaceStrategy- Overrides:
getStrategyMonthInfoin classStrategyAbstract
-
getStrategyMonthInfo
-
getInactivityDays
Compute or return inactivity days.- Parameters:
month- month- Returns:
- age in month
-
setInactivityEquationUsed
public void setInactivityEquationUsed(boolean inactivityEquationUsed) Set inactivityEquationUsed and launch numberOfTrips computation.- Specified by:
setInactivityEquationUsedin interfaceStrategy- Overrides:
setInactivityEquationUsedin classStrategyAbstract- Parameters:
inactivityEquationUsed- wether to use inactivityEquation or not- See Also:
-
computeNumberOfTrips
protected void computeNumberOfTrips() -
setInactivityEquationContent
Set inactivityEquation content. Do not forget to specify inactivity equation use.- Parameters:
content- inactivityEquation content- See Also:
-
getProportionMetier
public org.nuiton.math.matrix.MatrixND getProportionMetier()Return a single matrix with all sub strategymonthinfo's proportionMetier to be displayed in a single matrix in UI.- dim 0 : metier
- dim 1 : month
- Returns:
- Since:
- 4.0.0.0
-
setProportionMetier
public void setProportionMetier(org.nuiton.math.matrix.MatrixND strategyProportionMetier) -
toString
- Overrides:
toStringin classStrategyAbstract
-