Scenario

vecxt_re.Scenario
See theScenario companion class
object Scenario

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Scenario.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

Combine two scenarios. Same as combineAll(Seq(s1, s2)).

Combine two scenarios. Same as combineAll(Seq(s1, s2)).

Attributes

def combineAll(scenarios: Seq[Scenario]): Scenario

Combine scenarios from the same simulation into one, with the same semantics as Scenarr.combineAll:

Combine scenarios from the same simulation into one, with the same semantics as Scenarr.combineAll:

  • Events with the same eventId are one event, and their losses are summed. An ID must sit at the same (iteration, day) wherever it appears.
  • Scenarios with no events don't constrain anything. All scenarios that have events must agree on numberIterations and day1.
  • Scenarios linked by shared event IDs form a group whose threshold is the sum of its members' thresholds; the result's threshold is the largest group threshold. For two scenarios: t1 + t2 if they share an ID, max(t1, t2) otherwise.
  • Events at or below the result's threshold are dropped, once, after all losses have been summed.

Combining with non-zero thresholds is not associative, so prefer this over folding combine.

Attributes

Throws
IllegalArgumentException

if scenarios is empty, if scenarios with events disagree on numberIterations or day1, or if an event ID appears at more than one (iteration, day)

def empty(numberIterations: Int, day1: LocalDate, threshold: Double = ...): Scenario

A scenario with no events, belonging to a simulation of numberIterations iterations starting at day1.

A scenario with no events, belonging to a simulation of numberIterations iterations starting at day1.

With the default zero threshold it leaves any scenario unchanged under combine. A positive threshold states that nothing above it happened, and raises the threshold of anything it is combined with.

Attributes

Extensions

Extensions

extension (s1: Scenario)
def |+|(s2: Scenario): Scenario