| Modifier and Type | Class and Description |
|---|---|
(package private) class |
EventMemory.EventSlot
The Class EventSlot.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) EventMemory.EventSlot |
head
The head.
|
private java.util.concurrent.locks.Lock |
lock
The lock.
|
(package private) EventMemory.EventSlot |
ptr_last_instant_read
The ptr_last_instant_read.
|
int |
size
The size.
|
(package private) EventMemory.EventSlot |
tail
The tail.
|
| Constructor and Description |
|---|
EventMemory() |
| Modifier and Type | Method and Description |
|---|---|
double |
getFirstInstant()
Retorna o instante mais antigo em que existe informação na memória.
|
double |
getLastInstant()
Retorna o último instante em que existe informação na memória.
|
java.lang.Object |
readMemory(double instant,
double duration,
TimeUnit unit)
Obtém a memória em um dado intervalo de tempo.
|
java.lang.Object |
readMemory(double instant,
TimeUnit unit)
Obtém a memória em um instante do tempo.
|
void |
resetMemory()
Limpa a memória.
|
void |
updateMemory()
Cleans memory beyond time horizon (past and future parameters).
|
void |
writeMemory(java.lang.Object object)
Write memory.
|
void |
writeMemory(java.lang.Object object,
double instant,
double duration,
TimeUnit unit)
Escreve na memória a partir de um instante absoluto.
|
void |
writeMemory(java.lang.Object object,
double instant,
TimeUnit unit)
Write memory.
|
configure, finit, getFuture, getName, getParameters, getPast, init, parameterUpdate, setAgent, setParameters, start, stopprivate java.util.concurrent.locks.Lock lock
EventMemory.EventSlot head
EventMemory.EventSlot tail
public int size
EventMemory.EventSlot ptr_last_instant_read
public double getFirstInstant()
MemorygetFirstInstant in class Memorypublic double getLastInstant()
MemorygetLastInstant in class Memorypublic void updateMemory()
public java.lang.Object readMemory(double instant,
TimeUnit unit)
MemoryreadMemory in class Memoryinstant - the instantunit - the unitpublic java.lang.Object readMemory(double instant,
double duration,
TimeUnit unit)
MemoryreadMemory in class Memoryinstant - the instantduration - the durationunit - the unitpublic void resetMemory()
MemoryresetMemory in class Memorypublic void writeMemory(java.lang.Object object,
double instant,
double duration,
TimeUnit unit)
throws MemoryException
MemorywriteMemory in class Memoryobject - the objectinstant - the instantduration - the durationunit - the unitMemoryException - the memory exceptionpublic void writeMemory(java.lang.Object object,
double instant,
TimeUnit unit)
throws MemoryException
MemorywriteMemory in class Memoryobject - the objectinstant - the instantunit - the unitMemoryException - the memory exceptionpublic void writeMemory(java.lang.Object object)
throws MemoryException
MemorywriteMemory in class Memoryobject - the objectMemoryException - the memory exception