Record Class CounterfactualSimulator.ContingencyEvent
java.lang.Object
java.lang.Record
org.episteme.social.history.CounterfactualSimulator.ContingencyEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
CounterfactualSimulator
public static record CounterfactualSimulator.ContingencyEvent(String id, String name, TimeCoordinate date, String category, Real importance, List<String> consequences)
extends Record
implements Serializable
Internal representation of a historical event with its causal dependencies.
- Since:
- 1.0
- Version:
- 1.2
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionContingencyEvent(String id, String name, TimeCoordinate date, String category, double importance, List<String> consequences) ContingencyEvent(String id, String name, TimeCoordinate date, String category, Real importance, List<String> consequences) Creates an instance of aContingencyEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.Returns the value of theconsequencesrecord component.date()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theimportancerecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ContingencyEvent
public ContingencyEvent(String id, String name, TimeCoordinate date, String category, Real importance, List<String> consequences) Creates an instance of aContingencyEventrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentdate- the value for thedaterecord componentcategory- the value for thecategoryrecord componentimportance- the value for theimportancerecord componentconsequences- the value for theconsequencesrecord component
-
ContingencyEvent
-
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
importance
Returns the value of theimportancerecord component.- Returns:
- the value of the
importancerecord component
-
consequences
-