com.almende.eve.state
Class MemoryState
java.lang.Object
com.almende.eve.state.AbstractState
com.almende.eve.state.MemoryState
- All Implemented Interfaces:
- State, Map<String,Object>
public class MemoryState
- extends AbstractState
- Author:
- jos
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryState
public MemoryState()
MemoryState
public MemoryState(String agentId)
clear
public void clear()
keySet
public Set<String> keySet()
containsKey
public boolean containsKey(Object key)
containsValue
public boolean containsValue(Object value)
entrySet
public Set<Map.Entry<String,Object>> entrySet()
get
public Object get(Object key)
isEmpty
public boolean isEmpty()
put
public Object put(String key,
Object value)
putAll
public void putAll(Map<? extends String,? extends Object> map)
putIfUnchanged
public boolean putIfUnchanged(String key,
Object newVal,
Object oldVal)
remove
public Object remove(Object key)
size
public int size()
values
public Collection<Object> values()
init
public void init()
- init is executed once before the agent method is invoked
- Specified by:
init
in interface State
- Specified by:
init
in class AbstractState
destroy
public void destroy()
- destroy is executed once after the agent method is invoked
- Specified by:
destroy
in interface State
- Specified by:
destroy
in class AbstractState
Copyright © 2013 Almende BV. All Rights Reserved.