roboplayer.fsm
Class StateFactory

java.lang.Object
  |
  +--roboplayer.fsm.StateFactory

public class StateFactory
extends java.lang.Object

This class represents factory which can be used to create state.

Version:
1.0
Author:
Krzysztof Langner

Constructor Summary
StateFactory()
          Constructor
 
Method Summary
 State createState(java.lang.String name)
          Create state
 void register(java.lang.String name, java.lang.String className)
          Create state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateFactory

public StateFactory()
Constructor

Method Detail

register

public void register(java.lang.String name,
                     java.lang.String className)
Create state

Parameters:
name - state name
Returns:
state or null

createState

public State createState(java.lang.String name)
Create state

Parameters:
name - state name
Returns:
state or null