lnsc.page
Interface StateRepresentation

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AbstractStateRepresentation

public interface StateRepresentation
extends java.io.Serializable

State representation converter, use to convert a state into a real-vector.

State representations are assumed serializable! Episode state information should be transient (only information about how to generate the representation)!


Method Summary
 int getOutputCount()
          Indicates the number of values in the state representation.
 double[] getRepresentation(State s)
          Converts the state into a vector of real based on specific representation.
 boolean isStateless()
          Indicates whether or not the function output depends solely of the current state (and not of the previous state is has processed).
 void reset()
          Reset internal transient state for non stateless functions.
 

Method Detail

getOutputCount

public int getOutputCount()
Indicates the number of values in the state representation.

Returns:
Number of outputs.

getRepresentation

public double[] getRepresentation(State s)
Converts the state into a vector of real based on specific representation.

Parameters:
s - State to be converted.
Returns:
Real vector representation of the state.

isStateless

public boolean isStateless()
Indicates whether or not the function output depends solely of the current state (and not of the previous state is has processed). (Any such internal state use for next computation should be in transient variables and not being serialized. They should be reseted on reset.)

Returns:
true if output depends solely on current input false otherwise.

reset

public void reset()
Reset internal transient state for non stateless functions.