Class Trait

java.lang.Object
org.episteme.social.psychology.Trait
All Implemented Interfaces:
Serializable, Named

public class Trait extends Object implements Named, Serializable
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 Details

    • Trait

      public Trait(String name, Real value)
      Initializes a personality trait with a specific value.
      Parameters:
      name - common name of the trait
      value - normalized magnitude from 0.0 to 1.0
      Throws:
      IllegalArgumentException - if value is out of range
    • Trait

      public Trait(String name, String description, Real value)
      Initializes a personality trait with a description and value.
      Parameters:
      name - common name of the trait
      description - qualitative summary of what the trait measures
      value - normalized magnitude from 0.0 to 1.0
      Throws:
      IllegalArgumentException - if value is out of range or null
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Named
    • getDescription

      public String getDescription()
      Returns:
      textual description of the trait, or null if not provided
    • getValue

      public Real getValue()
      Returns:
      normalized intensity value (0.0 to 1.0)
    • setValue

      public void setValue(Real value)
      Updates the intensity of the trait.
      Parameters:
      value - new normalized value
      Throws:
      IllegalArgumentException - if value is out of range
    • toString

      public String toString()
      Overrides:
      toString in class Object