Class Trait
java.lang.Object
org.episteme.social.psychology.Trait
- All Implemented Interfaces:
Serializable, Named
Represents a quantified psychological personality trait or behavioral
tendency (e.g., the 'Big Five' traits: Openness, Conscientiousness,
Extraversion, Agreeableness, and Neuroticism).
Trait values are normalized on a continuous scale from 0.0 to 1.0.
* @version 2.0- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Trait
Initializes a personality trait with a specific value.- Parameters:
name- common name of the traitvalue- normalized magnitude from 0.0 to 1.0- Throws:
IllegalArgumentException- if value is out of range
-
Trait
Initializes a personality trait with a description and value.- Parameters:
name- common name of the traitdescription- qualitative summary of what the trait measuresvalue- normalized magnitude from 0.0 to 1.0- Throws:
IllegalArgumentException- if value is out of range or null
-
-
Method Details
-
getName
-
getDescription
- Returns:
- textual description of the trait, or null if not provided
-
getValue
- Returns:
- normalized intensity value (0.0 to 1.0)
-
setValue
Updates the intensity of the trait.- Parameters:
value- new normalized value- Throws:
IllegalArgumentException- if value is out of range
-
toString
-