com.almende.eve.state
Class FileState

java.lang.Object
  extended by com.almende.eve.state.AbstractState
      extended by com.almende.eve.state.FileState
All Implemented Interfaces:
State, Map<String,Object>
Direct Known Subclasses:
ConcurrentFileState, OriginalFileState

public abstract class FileState
extends AbstractState

Author:
jos

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class com.almende.eve.state.AbstractState
agentId
 
Fields inherited from interface com.almende.eve.state.State
KEY_AGENT_TYPE
 
Constructor Summary
protected FileState()
           
  FileState(String agentId)
           
 
Method Summary
abstract  void clear()
           
abstract  boolean containsKey(Object key)
           
abstract  boolean containsValue(Object value)
           
abstract  void destroy()
          destroy is executed once after the agent method is invoked if the properties are changed, they will be saved
abstract  Set<Map.Entry<String,Object>> entrySet()
           
abstract  Object get(Object key)
           
abstract  void init()
          init is executed once before the agent method is invoked
abstract  boolean isEmpty()
           
abstract  Set<String> keySet()
           
abstract  Object put(String key, Object value)
           
abstract  void putAll(Map<? extends String,? extends Object> map)
           
abstract  Object remove(Object key)
           
abstract  int size()
           
abstract  Collection<Object> values()
           
 
Methods inherited from class com.almende.eve.state.AbstractState
getAgentId, getAgentType, setAgentType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.almende.eve.state.State
putIfUnchanged
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

FileState

protected FileState()

FileState

public FileState(String agentId)
Method Detail

init

public abstract 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 abstract void destroy()
destroy is executed once after the agent method is invoked if the properties are changed, they will be saved

Specified by:
destroy in interface State
Specified by:
destroy in class AbstractState

clear

public abstract void clear()

keySet

public abstract Set<String> keySet()

containsKey

public abstract boolean containsKey(Object key)

containsValue

public abstract boolean containsValue(Object value)

entrySet

public abstract Set<Map.Entry<String,Object>> entrySet()

get

public abstract Object get(Object key)

isEmpty

public abstract boolean isEmpty()

put

public abstract Object put(String key,
                           Object value)

putAll

public abstract void putAll(Map<? extends String,? extends Object> map)

remove

public abstract Object remove(Object key)

size

public abstract int size()

values

public abstract Collection<Object> values()


Copyright © 2013 Almende BV. All Rights Reserved.