public abstract class ScenarioEvent
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
int |
duration
Duration (in periods) of the event.
|
ScenarioInfo |
scenarioInfo
Index of the scenario the event is associated with.
|
Seed |
seed
Seed instance associated with the Reliability analysis containing the
scenario event.
|
private static long |
serialVersionUID |
int |
severity
Severity of the event.
|
int |
startPeriod
Period in which the event starts (First period is considered to be period
0).
|
Constructor and Description |
---|
ScenarioEvent(Seed seed,
ScenarioInfo scenarioInfo,
int severity,
int startPeriod,
int duration)
Constructor of Scenario Event
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkActiveInPeriod(int period)
Checks to see if the event is active in the input period.
|
int |
getEndPeriod()
Returns the end period of the ScenarioEvent.
|
abstract float |
getEventCAF(int period,
int segment) |
abstract float |
getEventDAF(int period,
int segment) |
abstract int |
getEventLAF(int period,
int segment) |
abstract float |
getEventOAF(int period,
int segment) |
abstract float |
getEventSAF(int period,
int segment) |
abstract boolean |
hasOverlap(ScenarioEvent event)
Checks to see if the event overlaps with an event of the same type
(weather, incident, or work zone).
|
boolean |
hasPeriodWrapping()
Method to check if the scenario event startTime + duration exceeds causes
its endPeriod to fall beyond the final analysis period.
|
private static final long serialVersionUID
public final Seed seed
public final ScenarioInfo scenarioInfo
public int startPeriod
public int duration
public int severity
public ScenarioEvent(Seed seed, ScenarioInfo scenarioInfo, int severity, int startPeriod, int duration)
seed
- Seed instance associated with the reliability analysis
containing the event.scenarioInfo
- Scenario the event is associated withseverity
- Severity of the eventstartPeriod
- Period in which the event starts.duration
- Duration (in periods) of the event.public int getEndPeriod()
public boolean hasPeriodWrapping()
public boolean checkActiveInPeriod(int period)
period
- Input periodpublic abstract boolean hasOverlap(ScenarioEvent event)
event
- Event with which to check overlap.public abstract float getEventCAF(int period, int segment)
public abstract float getEventOAF(int period, int segment)
public abstract float getEventDAF(int period, int segment)
public abstract float getEventSAF(int period, int segment)
public abstract int getEventLAF(int period, int segment)