public class WeatherEvent extends ScenarioEvent implements java.lang.Comparable<WeatherEvent>
| Modifier and Type | Class and Description |
|---|---|
static class |
WeatherEvent.Comparators |
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
duration, scenarioInfo, seed, severity, startPeriod| Constructor and Description |
|---|
WeatherEvent(Seed seed,
ScenarioInfo scenarioInfo,
int severity,
int startPeriod,
int duration) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(WeatherEvent o) |
float |
getEventCAF() |
float |
getEventCAF(int period,
int segment) |
float |
getEventDAF() |
float |
getEventDAF(int period,
int segment) |
float |
getEventLAF() |
int |
getEventLAF(int period,
int segment) |
float |
getEventOAF() |
float |
getEventOAF(int period,
int segment) |
boolean |
getEventOccurs() |
float |
getEventSAF() |
float |
getEventSAF(int period,
int segment) |
java.lang.String |
getSeverityString() |
boolean |
hasOverlap(ScenarioEvent event)
Checks to see if the event overlaps with the specified weather event.
|
boolean |
hasOverlap(WeatherEvent wEvent)
Checks to see if the event overlaps with the specified weather event.
|
boolean |
isValid()
Checks to see if the event is valid for the seed/scenario
|
java.lang.String |
toString() |
checkActiveInPeriod, getEndPeriod, hasPeriodWrappingprivate static final long serialVersionUID
public WeatherEvent(Seed seed, ScenarioInfo scenarioInfo, int severity, int startPeriod, int duration)
public boolean hasOverlap(ScenarioEvent event)
hasOverlap in class ScenarioEventevent - Event with which to check overlap.public boolean hasOverlap(WeatherEvent wEvent)
wEvent - Event with which to check overlap.public java.lang.String getSeverityString()
public java.lang.String toString()
toString in class java.lang.Objectpublic float getEventCAF(int period,
int segment)
getEventCAF in class ScenarioEventpublic float getEventCAF()
public float getEventOAF(int period,
int segment)
getEventOAF in class ScenarioEventpublic float getEventOAF()
public float getEventDAF(int period,
int segment)
getEventDAF in class ScenarioEventpublic float getEventDAF()
public float getEventSAF(int period,
int segment)
getEventSAF in class ScenarioEventpublic float getEventSAF()
public int getEventLAF(int period,
int segment)
getEventLAF in class ScenarioEventpublic float getEventLAF()
public int compareTo(WeatherEvent o)
compareTo in interface java.lang.Comparable<WeatherEvent>public boolean getEventOccurs()
public boolean isValid()