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, hasPeriodWrapping
private static final long serialVersionUID
public WeatherEvent(Seed seed, ScenarioInfo scenarioInfo, int severity, int startPeriod, int duration)
public boolean hasOverlap(ScenarioEvent event)
hasOverlap
in class ScenarioEvent
event
- 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.Object
public float getEventCAF(int period, int segment)
getEventCAF
in class ScenarioEvent
public float getEventCAF()
public float getEventOAF(int period, int segment)
getEventOAF
in class ScenarioEvent
public float getEventOAF()
public float getEventDAF(int period, int segment)
getEventDAF
in class ScenarioEvent
public float getEventDAF()
public float getEventSAF(int period, int segment)
getEventSAF
in class ScenarioEvent
public float getEventSAF()
public int getEventLAF(int period, int segment)
getEventLAF
in class ScenarioEvent
public float getEventLAF()
public int compareTo(WeatherEvent o)
compareTo
in interface java.lang.Comparable<WeatherEvent>
public boolean getEventOccurs()
public boolean isValid()