Record Class CounterfactualSimulator.SimulationResult
java.lang.Object
java.lang.Record
org.episteme.social.history.CounterfactualSimulator.SimulationResult
- All Implemented Interfaces:
Serializable
- Enclosing class:
CounterfactualSimulator
public static record CounterfactualSimulator.SimulationResult(CounterfactualSimulator.CounterfactualScenario scenario, List<String> butterfliedEvents, List<String> unchangedEvents, Real historicalDivergence, String narrativeSummary)
extends Record
implements Serializable
The analytical results of a counterfactual simulation.
- Since:
- 1.0
- Version:
- 1.2
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSimulationResult(CounterfactualSimulator.CounterfactualScenario scenario, List<String> butterfliedEvents, List<String> unchangedEvents, Real historicalDivergence, String narrativeSummary) Creates an instance of aSimulationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebutterfliedEventsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehistoricalDivergencerecord component.doubleReturns the value of thenarrativeSummaryrecord component.scenario()Returns the value of thescenariorecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunchangedEventsrecord component.
-
Constructor Details
-
SimulationResult
public SimulationResult(CounterfactualSimulator.CounterfactualScenario scenario, List<String> butterfliedEvents, List<String> unchangedEvents, Real historicalDivergence, String narrativeSummary) Creates an instance of aSimulationResultrecord class.- Parameters:
scenario- the value for thescenariorecord componentbutterfliedEvents- the value for thebutterfliedEventsrecord componentunchangedEvents- the value for theunchangedEventsrecord componenthistoricalDivergence- the value for thehistoricalDivergencerecord componentnarrativeSummary- the value for thenarrativeSummaryrecord component
-
-
Method Details
-
historicalDivergenceValue
public double historicalDivergenceValue() -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
scenario
Returns the value of thescenariorecord component.- Returns:
- the value of the
scenariorecord component
-
butterfliedEvents
-
unchangedEvents
-
historicalDivergence
Returns the value of thehistoricalDivergencerecord component.- Returns:
- the value of the
historicalDivergencerecord component
-
narrativeSummary
Returns the value of thenarrativeSummaryrecord component.- Returns:
- the value of the
narrativeSummaryrecord component
-