public class MemoryObject extends java.lang.Object implements Memory, java.io.Serializable
Constructor and Description |
---|
MemoryObject()
Creates a MemoryObject.
|
Modifier and Type | Method and Description |
---|---|
void |
addMemoryObserver(MemoryObserver memoryObserver)
Add a memory observer to its list
|
boolean |
equals(java.lang.Object obj) |
java.lang.Double |
getEvaluation()
Gets the evaluation of the Memory Object.
|
java.lang.Object |
getI()
Gets the info of the Memory Object.
|
java.lang.Long |
getIdmemoryobject()
Gets the id of the Memory Object.
|
java.lang.String |
getName()
Gets the type of the memory.
|
java.lang.Long |
getTimestamp()
Gets the timestamp of this Memory Object.
|
int |
hashCode() |
void |
setEvaluation(java.lang.Double evaluation)
Sets the evaluation of the Memory Object.
|
int |
setI(java.lang.Object info)
Sets the info in memory object.
|
void |
setIdmemoryobject(java.lang.Long idmemoryobject)
Sets the id of the Memory Object.
|
void |
setName(java.lang.String name)
Sets the name of the memory.
|
void |
setTimestamp(java.lang.Long timestamp)
Sets the timestamp of this Memory Object.
|
void |
setType(java.lang.String name)
Deprecated.
|
java.lang.String |
toString() |
void |
updateI(java.lang.Object info)
Deprecated.
use
setI(Object info) instead. |
public java.lang.Long getIdmemoryobject()
public void setIdmemoryobject(java.lang.Long idmemoryobject)
idmemoryobject
- the id of the Memory Object to set.public java.lang.Object getI()
public int setI(java.lang.Object info)
@Deprecated public void updateI(java.lang.Object info)
setI(Object info)
instead.setI
method instead.info
- the info in memory object to set.public java.lang.Long getTimestamp()
getTimestamp
in interface Memory
public void setTimestamp(java.lang.Long timestamp)
timestamp
- the timestamp of this Memory Object.public java.lang.String getName()
@Deprecated public void setType(java.lang.String name)
public void setName(java.lang.String name)
public java.lang.Double getEvaluation()
getEvaluation
in interface Memory
public void setEvaluation(java.lang.Double evaluation)
setEvaluation
in interface Memory
evaluation
- the evaluation to set.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void addMemoryObserver(MemoryObserver memoryObserver)
addMemoryObserver
in interface Memory
memoryObserver
- the MemoryObserve to be added