edu.iastate.jrelm.core
Interface StateDomain<I,S extends State>

All Known Implementing Classes:
SimpleStateDomain

public interface StateDomain<I,S extends State>

Representation of an agent's state space. That is, the collection of world states that an agent may encounter in an environment. The type of State as well as state identifier may be paramertized. These are similar to the Key/Value types that may be parameterized for Hasthtable.

Author:
Charles Gieseler
See Also:
Hashtable, Action

Method Summary
 boolean containsState(S stateToCheck)
          Determines if the given Action is in this domain.
 java.util.ArrayList<I> getIDList()
          Retrieve a list of the identifiers for all States in this domain.
 S getState(I id)
          Retrieves the State indicated by the id object.
 int size()
          Reports the number of States in this domain.
 

Method Detail

containsState

boolean containsState(S stateToCheck)
Determines if the given Action is in this domain.


getState

S getState(I id)
Retrieves the State indicated by the id object. Should return null if the id does not match an existing Action.

Parameters:
id - - identifier indicating the desired State
Returns:
the requested State associated with id in this domain

getIDList

java.util.ArrayList<I> getIDList()
Retrieve a list of the identifiers for all States in this domain.

Returns:
list of action IDs.

size

int size()
Reports the number of States in this domain.

Returns:
size of this domain