edu.iastate.jrelm.core
Interface ActionDomain<I,A extends Action>

All Known Implementing Classes:
BanditActionDomain, SimpleActionDomain

public interface ActionDomain<I,A extends Action>

Representation of the space of possible operations an agent can perform in a particular environment. The type of Action as well as action 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 containsAction(A actionToCheck)
          Determines if the given Action is in this domain.
 A getAction(I id)
          Retrieves the Action indicated by the id object.
 java.util.ArrayList<I> getIDList()
          Retrieve a list of the identifiers for all Actions in this domain.
 int size()
          Reports the number of Actions in this domain.
 

Method Detail

containsAction

boolean containsAction(A actionToCheck)
Determines if the given Action is in this domain.


getAction

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

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

getIDList

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

Returns:
list of action IDs.

size

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

Returns:
size of this domain