lnsc.page
Class AbstractStateRepresentation

java.lang.Object
  |
  +--lnsc.page.AbstractStateRepresentation
All Implemented Interfaces:
java.io.Serializable, StateRepresentation
Direct Known Subclasses:
FlexibleSignalStateRepresentation, OfflineStateRepresentation, TwoSignalStateRepresentation

public abstract class AbstractStateRepresentation
extends java.lang.Object
implements StateRepresentation

Optional basis for class implementing StateRepresentation interface. Derived classes constructor must fill the protected variables and implement StateRepresentation.getRepresentation(lnsc.page.State).

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

See Also:
Serialized Form

Constructor Summary
AbstractStateRepresentation()
           
 
Method Summary
 int getOutputCount()
          Indicates the number of values in the state 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface lnsc.page.StateRepresentation
getRepresentation
 

Constructor Detail

AbstractStateRepresentation

public AbstractStateRepresentation()
Method Detail

getOutputCount

public int getOutputCount()
Description copied from interface: StateRepresentation
Indicates the number of values in the state representation.

Specified by:
getOutputCount in interface StateRepresentation
Returns:
Number of outputs.

isStateless

public boolean isStateless()
Description copied from interface: StateRepresentation
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.)

Specified by:
isStateless in interface StateRepresentation
Returns:
true if output depends solely on current input false otherwise.

reset

public void reset()
Description copied from interface: StateRepresentation
Reset internal transient state for non stateless functions.

Specified by:
reset in interface StateRepresentation