com.almende.eve.state
Interface StateFactory

All Known Implementing Classes:
FileStateFactory, MemoryStateFactory

public interface StateFactory


Method Summary
 State create(String agentId)
          Create a state with given id.
 void delete(String agentId)
          Delete a state.
 boolean exists(String agentId)
          Test if a state with given id exists.
 State get(String agentId)
          Get state with given id.
 

Method Detail

get

State get(String agentId)
Get state with given id. Returns null if not found

Parameters:
agentId -
Returns:
state

create

State create(String agentId)
             throws Exception
Create a state with given id. Will throw an exception when already existing.

Parameters:
agentId -
Returns:
state
Throws:
Exception

delete

void delete(String agentId)
            throws Exception
Delete a state. If the state does not exist, nothing will happen.

Parameters:
agentId -
Throws:
Exception

exists

boolean exists(String agentId)
Test if a state with given id exists.

Parameters:
agentId -
Returns:
exists


Copyright © 2013 Almende BV. All Rights Reserved.