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, effortEquation, equationTypeUsed, inactivityEquation, 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_EFFORT_EQUATION, PROPERTY_EQUATION_TYPE_USED, PROPERTY_INACTIVITY_EQUATION, 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 voiddoublegetEffortNominalPerVessel(Month month) doublegetInactivityDays(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) booleanbooleanvoidsetEffortEquationContent(String content) Set effortEquation content.voidsetInactivityEquation(Equation inactivityEquation) Set inactivityEquation.voidsetInactivityEquationContent(String content) Set inactivityEquation content.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, getEffortEquation, getEquationTypeUsed, getInactivityEquation, getName, getProportionSetOfVessels, getSetOfVessels, getStrategyMonthInfoByTopiaId, isStrategyMonthInfoEmpty, removeStrategyMonthInfo, setComment, setEffortEquation, setEquationTypeUsed, 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-
-
getStrategyMonthInfo
- Specified by:
getStrategyMonthInfoin interfaceStrategy- Overrides:
getStrategyMonthInfoin classStrategyAbstract
-
getStrategyMonthInfo
-
getInactivityDays
Compute or return inactivity days.- Parameters:
month- month- Returns:
- age in month
-
getEffortNominalPerVessel
-
isInactivityEquationUsed
public boolean isInactivityEquationUsed() -
isEffortEquationUsed
public boolean isEffortEquationUsed() -
computeNumberOfTrips
protected void computeNumberOfTrips() -
setInactivityEquationContent
Set inactivityEquation content. Do not forget to specify inactivity equation use.- Parameters:
content- inactivityEquation content
-
setEffortEquationContent
Set effortEquation content.- Parameters:
content- effortEquation content
-
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
-