Record Class CounterfactualSimulator.CounterfactualScenario
java.lang.Object
java.lang.Record
org.episteme.social.history.CounterfactualSimulator.CounterfactualScenario
- All Implemented Interfaces:
Serializable
- Enclosing class:
CounterfactualSimulator
public static record CounterfactualSimulator.CounterfactualScenario(String name, String description, CounterfactualSimulator.ContingencyEvent divergencePoint, String alternativeOutcome, List<String> affectedEvents, Map<String,String> changedConsequences)
extends Record
implements Serializable
Defines a specific counterfactual scenario starting from a divergence point.
- Since:
- 1.0
- Version:
- 1.2
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCounterfactualScenario(String name, String description, CounterfactualSimulator.ContingencyEvent divergencePoint, String alternativeOutcome, List<String> affectedEvents, Map<String, String> changedConsequences) Creates an instance of aCounterfactualScenariorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaffectedEventsrecord component.Returns the value of thealternativeOutcomerecord component.Returns the value of thechangedConsequencesrecord component.Returns the value of thedescriptionrecord component.Returns the value of thedivergencePointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CounterfactualScenario
public CounterfactualScenario(String name, String description, CounterfactualSimulator.ContingencyEvent divergencePoint, String alternativeOutcome, List<String> affectedEvents, Map<String, String> changedConsequences) Creates an instance of aCounterfactualScenariorecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentdivergencePoint- the value for thedivergencePointrecord componentalternativeOutcome- the value for thealternativeOutcomerecord componentaffectedEvents- the value for theaffectedEventsrecord componentchangedConsequences- the value for thechangedConsequencesrecord component
-
-
Method Details
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
divergencePoint
Returns the value of thedivergencePointrecord component.- Returns:
- the value of the
divergencePointrecord component
-
alternativeOutcome
Returns the value of thealternativeOutcomerecord component.- Returns:
- the value of the
alternativeOutcomerecord component
-
affectedEvents
-
changedConsequences
-