Fear

class Fear(desireWalkRandomly: () -> Double, desireEvacuate: () -> Double, influencialPeople: () -> List<CognitiveModel>) : MentalCognitiveCharacteristic

The fear emotion.

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.

Constructors

Link copied to clipboard
constructor(desireWalkRandomly: () -> Double, desireEvacuate: () -> Double, influencialPeople: () -> List<CognitiveModel>)

Functions

Link copied to clipboard
open override fun combinationFunction(): Double

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.

Link copied to clipboard
open override fun level(): Double

The current intensity of this characteristic.

Link copied to clipboard
open override fun update(frequency: Double)

Update the current intensity of this characteristic.