eta.memory.Memory

class Memory(event, importance=0.25)[source]

Bases: object

Represents a single memory, which consists of a temporally bounded event with some importance value.

Parameters:
  • event (Eventuality) – The eventuality of this memory.

  • importance (float, optional) – A numerical score representing how important this memory is.

event
Type:

Eventuality

start_time

The earliest time at which the event in this memory is known to be true. This is initialized as the current time upon initialization of a new memory.

Type:

TimePoint

end_time

The latest time at which the event in this memory is known to be true. This is initialized as None, interpreted as the event being “true now”.

Type:

TimePoint, optional

last_access

The most recent time that this memory was accessed from memory storage, initialized as the start time.

Type:

TimePoint

importance
Type:

float

Notes

The start time only marks the earliest time point at which an episode is known to be true; likewise for the end time. Thus, their logical interpretation should be as follows:

  • (<start_time> during <event>.ep)

  • (<end_time> during <event>.ep)

Where <end_time> is to be read as an indexical variable ^now if no value is supplied.

Methods

end

Declare that this memory is no longer true by storing the current time as its end time.

get_ep

Get the episode of the event of this memory.

get_time_wffs

Get the wffs corresponding to the beginning and end of this memory.

get_wff

Get the wff of the event of this memory.

is_telic

Check whether this memory represents a telic event (i.e., one that is essentially instantaneous).

update_last_access

Update the most recent access of this memory to the current time.

update_last_access()[source]

Update the most recent access of this memory to the current time.

end()[source]

Declare that this memory is no longer true by storing the current time as its end time.

get_ep()[source]

Get the episode of the event of this memory.

get_wff()[source]

Get the wff of the event of this memory.

get_time_wffs()[source]

Get the wffs corresponding to the beginning and end of this memory.

is_telic()[source]

Check whether this memory represents a telic event (i.e., one that is essentially instantaneous).

__hash__()[source]

Return hash(self).

__eq__(other)[source]

Return self==value.

__str__()[source]

Return str(self).