C# Class AutobiographicMemory.AM

Inheritance: ICustomSerialization
Datei anzeigen Open project: GAIPS-INESC-ID/FAtiMA-Toolkit Class Usage Examples

Public Methods

Method Description
AssertEventNameValidity ( Name name ) : void
BindCalls ( KB kb ) : void
ForgetEvent ( uint eventId ) : void
GetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
RecallAllEvents ( ) : IEnumerable
RecallEvent ( uint eventId ) : IBaseEvent
RecordEvent ( EventDTO dto ) : IBaseEvent
RecordEvent ( Name eventName, ulong timestamp ) : IBaseEvent
SetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
SwapPerspective ( Name oldPerspective, Name newPerspective ) : void
UpdateEvent ( EventDTO dto ) : IBaseEvent
UpdateEvent ( uint eventId, Name eventName, ulong timestamp ) : IBaseEvent

Private Methods

Method Description
AddRecord ( BaseEvent record ) : void
BuildEventNameFromDTO ( EventDTO evt ) : Name
EventAgePropertyCalculator ( IQueryContext context, Name id ) : IEnumerable
EventIdPropertyCalculator ( IQueryContext context, Name type, Name subject, Name def, Name target ) : IEnumerable
LastEventIdPropertyCalculator ( IQueryContext context, Name type, Name subject, Name def, Name target ) : IEnumerable
SaveEventHelper ( uint eventId, Name eventName, ulong timestamp ) : BaseEvent

Method Details

AssertEventNameValidity() public static method

public static AssertEventNameValidity ( Name name ) : void
name Name
return void

BindCalls() public method

public BindCalls ( KB kb ) : void
kb KnowledgeBase.KB
return void

ForgetEvent() public method

public ForgetEvent ( uint eventId ) : void
eventId uint
return void

GetObjectData() public method

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

RecallAllEvents() public method

public RecallAllEvents ( ) : IEnumerable
return IEnumerable

RecallEvent() public method

public RecallEvent ( uint eventId ) : IBaseEvent
eventId uint
return IBaseEvent

RecordEvent() public method

public RecordEvent ( EventDTO dto ) : IBaseEvent
dto AutobiographicMemory.DTOs.EventDTO
return IBaseEvent

RecordEvent() public method

public RecordEvent ( Name eventName, ulong timestamp ) : IBaseEvent
eventName Name
timestamp ulong
return IBaseEvent

SetObjectData() public method

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

SwapPerspective() public method

public SwapPerspective ( Name oldPerspective, Name newPerspective ) : void
oldPerspective Name
newPerspective Name
return void

UpdateEvent() public method

public UpdateEvent ( EventDTO dto ) : IBaseEvent
dto AutobiographicMemory.DTOs.EventDTO
return IBaseEvent

UpdateEvent() public method

public UpdateEvent ( uint eventId, Name eventName, ulong timestamp ) : IBaseEvent
eventId uint
eventName Name
timestamp ulong
return IBaseEvent