public class MetierMonitor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Set<Metier> |
forbiddenMetier |
protected Set<org.apache.commons.collections4.keyvalue.MultiKey> |
forbiddenMetierMonth |
protected org.apache.commons.collections4.map.MultiKeyMap |
list
key <Metier, Month, Month> value: <Licence>
|
protected Map<TimeStep,org.nuiton.math.matrix.MatrixND> |
noActivity |
| Constructor and Description |
|---|
MetierMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addforbiddenMetier(Collection<Metier> metiers) |
void |
addforbiddenMetier(Metier metier)
Add forbidden metier, this metier is remove when
clear() is called |
void |
addforbiddenMetier(Metier metier,
Month month)
Add forbidden metier, this metier is not remove when
clear() is called |
void |
addLicence(Metier metier,
int nbLicences,
Month firstMonth,
Month lastMonth) |
void |
clear()
clear all data
can be used at end of each simulation step
|
Set<Metier> |
getForbiddenMetier() |
fr.ifremer.isisfish.simulator.MetierMonitor.Licence |
getLicence(Metier metier,
Month month) |
double |
getLicenceOverflow(Metier metier,
Month month) |
org.nuiton.math.matrix.MatrixND |
getNoActivity(TimeStep step) |
org.nuiton.math.matrix.MatrixND |
getOrCreateNoActivity(TimeStep step,
String name,
List<Strategy> strategies,
List<Metier> metiers) |
boolean |
isForbidden(Metier metier,
Month month)
Metier is forbidden is can be found in
forbiddenMetier or in
forbiddenMetierMonth. |
boolean |
isLimited(Metier metier,
Month month) |
boolean |
isLimitedPeriode(Metier metier,
Month firstMonth,
Month lastMonth) |
void |
removeforbiddenMetier(Metier metier,
Month month) |
void |
setNoActivity(TimeStep step,
org.nuiton.math.matrix.MatrixND nonActivity) |
protected Set<org.apache.commons.collections4.keyvalue.MultiKey> forbiddenMetierMonth
protected org.apache.commons.collections4.map.MultiKeyMap list
public void clear()
public void addforbiddenMetier(Metier metier)
clear() is calledmetier - public void addforbiddenMetier(Metier metier, Month month)
clear() is calledmetier - month - public void addforbiddenMetier(Collection<Metier> metiers)
public boolean isForbidden(Metier metier, Month month)
forbiddenMetier or in
forbiddenMetierMonth.metier - month - true if metier forbiddenpublic org.nuiton.math.matrix.MatrixND getNoActivity(TimeStep step)
public org.nuiton.math.matrix.MatrixND getOrCreateNoActivity(TimeStep step, String name, List<Strategy> strategies, List<Metier> metiers)
public void setNoActivity(TimeStep step, org.nuiton.math.matrix.MatrixND nonActivity)
nonActivity - The nonActivity to set.public fr.ifremer.isisfish.simulator.MetierMonitor.Licence getLicence(Metier metier, Month month)
public boolean isLimitedPeriode(Metier metier, Month firstMonth, Month lastMonth)
metier - firstMonth - lastMonth - Copyright © 1999–2014 CodeLutin. All rights reserved.