public enum MemoryProfile extends java.lang.Enum<MemoryProfile>
Enum Constant and Description |
---|
DEFAULT
Default memory profile is equivalent to the long term memory profile.
|
EPISODIC
This represents episodic memory (memory of personal experience).
|
LONGTERM
This represents long term memory.
|
SHORTTERM
This represents short term memory (or working memory).
|
Modifier and Type | Field and Description |
---|---|
static int |
TimeBase
The time base states "how long a second lasts in milliseconds".
The default value is obviously 1000, but you can alter this value to accelerate (or slow down) the behaviour of the memory storage. For instance, if you set timeBase = 500 , the actual duration a
short term statement is divided by 2 (ie 5 seconds instead of the default
10 seconds) |
Modifier and Type | Method and Description |
---|---|
int |
duration()
Returns the lifespan associated to the memory profile, in milliseconds,
scaled with the TimeBase.
|
static MemoryProfile |
fromString(java.lang.String literalMemProfile)
Returns a MemoryProfile constant from its string representation, or
DEFAULT if the string is not recognized. |
static MemoryProfile |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MemoryProfile[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemoryProfile SHORTTERM
public static final MemoryProfile EPISODIC
public static final MemoryProfile LONGTERM
public static final MemoryProfile DEFAULT
LONGTERM
public static int TimeBase
timeBase = 500
, the actual duration a
short term statement is divided by 2 (ie 5 seconds instead of the default
10 seconds)public static MemoryProfile[] values()
for (MemoryProfile c : MemoryProfile.values()) System.out.println(c);
public static MemoryProfile valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int duration()
TimeBase
public static MemoryProfile fromString(java.lang.String literalMemProfile)
DEFAULT
if the string is not recognized.literalMemProfile
- the string representation of a MemoryProfileORO is a part of the OpenRobots framework.
openrobots@laas.fr
LAAS-CNRS 2009-2011