public class DisturbanceOccurrences
extends java.lang.Object
Constructor and Description |
---|
DisturbanceOccurrences(DisturbanceAffectedProvider parms)
Basic constructor
|
DisturbanceOccurrences(DisturbanceAffectedProvider parms,
int dateYr)
Constructor for single occurrences
|
DisturbanceOccurrences(DisturbanceAffectedProvider parms,
java.util.List<java.lang.Integer> datesYr)
Constructor for multiple occurrences
|
Modifier and Type | Method and Description |
---|---|
void |
addOccurrenceDateYr(int dateYr) |
int |
getLastOccurrenceDateYrToDate(int currentDateYr)
Returns the date of the latest occurrence
|
int |
getNumberOfOccurrences()
Return the number of occurrences.
|
boolean |
isThereAnyOccurrence()
Returns true if there is at least one occurrence.
|
boolean |
isThisPlotAffected(MonteCarloSimulationCompliantObject plot)
This method checks whether a particular plot is affected by the disturbance.
|
public DisturbanceOccurrences(DisturbanceAffectedProvider parms, java.util.List<java.lang.Integer> datesYr)
parms
- datesYr
- a List of dates (integers)public DisturbanceOccurrences(DisturbanceAffectedProvider parms)
parms
- public DisturbanceOccurrences(DisturbanceAffectedProvider parms, int dateYr)
parms
- dateYr
- public boolean isThisPlotAffected(MonteCarloSimulationCompliantObject plot)
plot
- a MonteCarloSimulationCompliantObject instancepublic void addOccurrenceDateYr(int dateYr)
public int getLastOccurrenceDateYrToDate(int currentDateYr)
currentDateYr
- the reference datepublic boolean isThereAnyOccurrence()
public int getNumberOfOccurrences()