Record Class Decision
java.lang.Object
java.lang.Record
org.episteme.social.psychology.Decision
- All Implemented Interfaces:
Serializable
public record Decision(String subject, String choice, String rationale, TimeCoordinate timestamp)
extends Record
implements Serializable
Represents a discrete decision made by an agent (Individual or Organization).
Captures the choice, the rationale behind it, and the temporal context.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchoice()Returns the value of thechoicerecord 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 therationalerecord component.subject()Returns the value of thesubjectrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Decision
-
Decision
Creates an instance of aDecisionrecord class.- Parameters:
subject- the value for thesubjectrecord componentchoice- the value for thechoicerecord componentrationale- the value for therationalerecord componenttimestamp- the value for thetimestamprecord 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). -
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
choice
Returns the value of thechoicerecord component.- Returns:
- the value of the
choicerecord component
-
rationale
Returns the value of therationalerecord component.- Returns:
- the value of the
rationalerecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-