morfologik.fsa.bytes
Class StateUtils

java.lang.Object
  extended by morfologik.fsa.bytes.StateUtils

public class StateUtils
extends Object

Utilities that apply to States. Extracted to a separate class for clarity.


Constructor Summary
StateUtils()
           
 
Method Summary
static FSAInfo getInfo(State s)
          Calculate automaton statistics.
static ArrayList<byte[]> rightLanguage(State state)
          All byte sequences generated as the right language of state.
static String toDot(State root)
          Returns the right-language reachable from a given graph node, formatted as an input for the graphviz package (expressed in the dot language).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateUtils

public StateUtils()
Method Detail

toDot

public static String toDot(State root)
Returns the right-language reachable from a given graph node, formatted as an input for the graphviz package (expressed in the dot language).


rightLanguage

public static ArrayList<byte[]> rightLanguage(State state)
All byte sequences generated as the right language of state.


getInfo

public static FSAInfo getInfo(State s)
Calculate automaton statistics.



Copyright © 2010. All Rights Reserved.