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, strategyMonthInfo
Fields inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
readListeners, readVetoables, topiaContext, topiaCreateDate, topiaId, topiaVersion, writeListeners, writeVetoables
Fields 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_INFO
Fields inherited from interface org.nuiton.topia.persistence.TopiaEntity
AGGREGATE, COMPOSITE, TOPIA_CREATE_DATE, TOPIA_ID, TOPIA_VERSION
Fields inherited from interface org.nuiton.topia.persistence.TopiaEntityContextable
TOPIA_CONTEXT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
double
getInactivityDays
(Month month) Compute or return inactivity days.org.nuiton.math.matrix.MatrixND
Return a single matrix with all sub strategymonthinfo's proportionMetier to be displayed in a single matrix in UI.getStrategyMonthInfo
(Month month) void
setInactivityEquation
(Equation inactivityEquation) Set inactivityEquation.void
setInactivityEquationContent
(String content) Set inactivityEquation content.void
setInactivityEquationUsed
(boolean inactivityEquationUsed) Set inactivityEquationUsed and launch numberOfTrips computation.void
Override to change name of equation.void
setProportionMetier
(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, update
Methods 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, setTopiaVersion
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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, setTopiaVersion
Methods 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:
setName
in interfaceStrategy
- Overrides:
setName
in classStrategyAbstract
- See Also:
-
setInactivityEquation
Set inactivityEquation. Do not forget to specify inactivity equation use.- Specified by:
setInactivityEquation
in interfaceStrategy
- Overrides:
setInactivityEquation
in classStrategyAbstract
- Parameters:
inactivityEquation
-- See Also:
-
getStrategyMonthInfo
- Specified by:
getStrategyMonthInfo
in interfaceStrategy
- Overrides:
getStrategyMonthInfo
in 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:
setInactivityEquationUsed
in interfaceStrategy
- Overrides:
setInactivityEquationUsed
in 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:
toString
in classStrategyAbstract
-