Class HelpAttitude

  • All Implemented Interfaces:
    it.unibo.alchemist.model.cognitive.impact.individual.Characteristic

    
    public final class HelpAttitude
     implements Characteristic
                        

    The attitude of an agent towards helping another agent.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Double level(Age toHelpAge, Gender toHelpGender, Boolean sameGroup) The logic used to calculate the probability of helping.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HelpAttitude

        HelpAttitude(Age age, Gender gender)
        Parameters:
        age -
        the age of the helper.
        gender -
        the gender of the helper.
    • Method Detail

      • level

         final Double level(Age toHelpAge, Gender toHelpGender, Boolean sameGroup)

        The logic used to calculate the probability of helping.

        Parameters:
        toHelpAge -
        the age of the agent who needs help.
        toHelpGender -
        the gender of the agent who needs help.
        sameGroup -
        whether or not the two agents belong to the same group.