public abstract class Memory extends java.lang.Object implements LifeCycle
| Modifier and Type | Field and Description |
|---|---|
protected VirtualClockHelper |
clock
The clock.
|
protected double |
future
The future.
|
protected EnsembleAgent |
myAgent
The my agent.
|
protected java.lang.String |
name
The name.
|
protected Parameters |
parameters
The parameters.
|
protected double |
past
The past.
|
| Constructor and Description |
|---|
Memory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure()
User-implemented method that configures the component, setting up user parameters and essential properties.
|
boolean |
finit()
User-implemented finalization method, called by stop().
|
abstract double |
getFirstInstant()
Retorna o instante mais antigo em que existe informação na memória.
|
double |
getFuture()
Gets the future.
|
abstract double |
getLastInstant()
Retorna o último instante em que existe informação na memória.
|
java.lang.String |
getName()
Retorna o nome do componente ao qual está memória está associada.
|
Parameters |
getParameters()
Returns all configured parameters.
|
double |
getPast()
Gets the past.
|
boolean |
init()
User-implemented initialization method, called by start().
|
boolean |
parameterUpdate(java.lang.String name,
java.lang.String newValue)
User-implement method called when a parameter has been updated.
|
abstract java.lang.Object |
readMemory(double instant,
double duration,
TimeUnit unit)
Obtém a memória em um dado intervalo de tempo.
|
abstract java.lang.Object |
readMemory(double instant,
TimeUnit unit)
Obtém a memória em um instante do tempo.
|
abstract void |
resetMemory()
Limpa a memória.
|
void |
setAgent(EnsembleAgent myAgent)
Sets the agent.
|
void |
setParameters(Parameters parameters)
Framework-implemented method that sets system and user parameters.
|
boolean |
start()
Framework-implemented initialization method.
|
boolean |
stop()
Framework-implemented finalization method.
|
abstract void |
writeMemory(java.lang.Object object)
Write memory.
|
abstract void |
writeMemory(java.lang.Object object,
double instant,
double duration,
TimeUnit unit)
Escreve na memória a partir de um instante absoluto.
|
abstract void |
writeMemory(java.lang.Object object,
double instant,
TimeUnit unit)
Write memory.
|
protected Parameters parameters
protected VirtualClockHelper clock
protected EnsembleAgent myAgent
protected java.lang.String name
protected double past
protected double future
public Parameters getParameters()
LifeCyclegetParameters in interface LifeCyclepublic void setParameters(Parameters parameters)
LifeCyclesetParameters in interface LifeCycleparameters - a Parameters object with all user and system Parameters for this objectpublic void setAgent(EnsembleAgent myAgent)
myAgent - the new agentpublic boolean start()
LifeCyclepublic boolean parameterUpdate(java.lang.String name,
java.lang.String newValue)
LifeCycleparameterUpdate in interface LifeCyclename - the namenewValue - the new valuepublic boolean stop()
LifeCyclepublic boolean configure()
LifeCyclepublic boolean init()
LifeCyclepublic boolean finit()
LifeCyclepublic final java.lang.String getName()
public final double getPast()
public final double getFuture()
public abstract double getFirstInstant()
public abstract double getLastInstant()
public abstract java.lang.Object readMemory(double instant,
TimeUnit unit)
instant - the instantunit - the unitpublic abstract java.lang.Object readMemory(double instant,
double duration,
TimeUnit unit)
instant - the instantduration - the durationunit - the unitpublic abstract void resetMemory()
public abstract void writeMemory(java.lang.Object object,
double instant,
double duration,
TimeUnit unit)
throws MemoryException
object - the objectinstant - the instantduration - the durationunit - the unitMemoryException - the memory exceptionpublic abstract void writeMemory(java.lang.Object object,
double instant,
TimeUnit unit)
throws MemoryException
object - the objectinstant - the instantunit - the unitMemoryException - the memory exceptionpublic abstract void writeMemory(java.lang.Object object)
throws MemoryException
object - the objectMemoryException - the memory exception