Class Fear

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

    
    public final class Fear
    extends MentalCognitiveCharacteristic
                        

    The fear emotion.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Fear(Function0<Double> desireWalkRandomly, Function0<Double> desireEvacuate, Function0<List<CognitiveModel>> influencialPeople)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Double combinationFunction() Algorithm which decides how the parameters involved in the evolution of this characteristic must be combined together.
      • Methods inherited from class it.unibo.alchemist.model.cognitive.impact.cognitive.MentalCognitiveCharacteristic

        update
      • Methods inherited from class it.unibo.alchemist.model.cognitive.impact.cognitive.AbstractCognitiveCharacteristic

        level
      • Methods inherited from class java.lang.Object

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

      • Fear

        Fear(Function0<Double> desireWalkRandomly, Function0<Double> desireEvacuate, Function0<List<CognitiveModel>> influencialPeople)
        Parameters:
        desireWalkRandomly -
        the current desire of not evacuating of the agent owning this.
        desireEvacuate -
        the current desire of evacuating of the agent owning this.
        influencialPeople -
        the list of cognitive agents with an influence on the agent owning this.
    • Method Detail

      • combinationFunction

         Double combinationFunction()

        Algorithm which decides how the parameters involved in the evolution of this characteristic must be combined together. It can be either a max, min, summation or any other type of function.