edu.iastate.jrelm.core
Class SimpleState<O>

java.lang.Object
  extended by edu.iastate.jrelm.core.SimpleState<O>
Type Parameters:
O - - the type of object being use to represent a course of state of the world.
All Implemented Interfaces:
State<java.lang.Integer>

public class SimpleState<O>
extends java.lang.Object
implements State<java.lang.Integer>

Simple class that implements the State interface. Acts as a wrapper around a given object containing information about relavant, accessible, and salient features in an agent's environment. In other words, the object is a full or partial representation of a world state and SimpleState acts as a wrapper to make it compatible with other JReLM components.


Constructor Summary
SimpleState(java.lang.Integer id, O worldInfo)
          Make a SimpleState with the given world state and an ID.
 
Method Summary
 java.lang.Integer getID()
          Retrieve the ID for this action
 O getWorldInfo()
          Retrieve the object this is an State wrapper for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleState

public SimpleState(java.lang.Integer id,
                   O worldInfo)
Make a SimpleState with the given world state and an ID.

Parameters:
id - - identifier for this state
wolrdInfo - - object containing information about relavant, accessible, and salient features in an agent's environment
Method Detail

getWorldInfo

public O getWorldInfo()
Retrieve the object this is an State wrapper for.

Returns:
- state of the world

getID

public java.lang.Integer getID()
Retrieve the ID for this action

Specified by:
getID in interface State<java.lang.Integer>
Returns:
state identifier