C# Class EmotionalAppraisal.ActiveEmotion

Inheritance: IActiveEmotion, ICustomSerialization
Exibir arquivo Open project: GAIPS-INESC-ID/FAtiMA-Toolkit Class Usage Examples

Public Methods

Method Description
ActiveEmotion ( EmotionDTO emotionDTO, int threshold, int decay ) : System
ActiveEmotion ( IEmotion emotion, float potential, int threshold, int decay, ulong tickStamp ) : System

Creates a new ActiveEmotion

Equals ( object obj ) : bool
GetCause ( AM am ) : IBaseEvent
GetHashCode ( ) : int
GetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
ReforceEmotion ( float potential ) : void

Reforces the intensity of the emotion by a given potential

SetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
ToDto ( AM am ) : EmotionDTO
ToString ( AM am ) : string

Private Methods

Method Description
DecayEmotion ( EmotionalAppraisalAsset parent ) : void

Decays the emotion according to the system's time

SetIntensity ( float value, ulong tickStamp ) : void

Method Details

ActiveEmotion() public method

public ActiveEmotion ( EmotionDTO emotionDTO, int threshold, int decay ) : System
emotionDTO EmotionalAppraisal.DTOs.EmotionDTO
threshold int
decay int
return System

ActiveEmotion() public method

Creates a new ActiveEmotion
public ActiveEmotion ( IEmotion emotion, float potential, int threshold, int decay, ulong tickStamp ) : System
emotion IEmotion the BaseEmotion that is the base for this ActiveEmotion
potential float the potential for the intensity of the emotion
threshold int the threshold for the specific emotion
decay int the decay rate for the specific emotion
tickStamp ulong
return System

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetCause() public method

public GetCause ( AM am ) : IBaseEvent
am AutobiographicMemory.AM
return IBaseEvent

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetObjectData() public method

public GetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
dataHolder ISerializationData
context ISerializationContext
return void

ReforceEmotion() public method

Reforces the intensity of the emotion by a given potential
public ReforceEmotion ( float potential ) : void
potential float the potential for the reinformcement of the emotion's intensity
return void

SetObjectData() public method

public SetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
dataHolder ISerializationData
context ISerializationContext
return void

ToDto() public method

public ToDto ( AM am ) : EmotionDTO
am AutobiographicMemory.AM
return EmotionalAppraisal.DTOs.EmotionDTO

ToString() public method

public ToString ( AM am ) : string
am AutobiographicMemory.AM
return string