Package morfologik.fsa.builders
Class FSAInfo
- java.lang.Object
-
- morfologik.fsa.builders.FSAInfo
-
public final class FSAInfo extends java.lang.ObjectCompute additional information about an FSA: number of arcs, nodes, etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classFSAInfo.FinalStateVisitorComputes the exact number of final states.private static classFSAInfo.NodeVisitorComputes the exact number of states and nodes by recursively traversing the FSA.
-
Field Summary
Fields Modifier and Type Field Description intarcsCountNumber of arcs in the automaton, excluding an arcs from the zero node (initial) and an arc from the start node to the root node.intarcsCountTotalTotal number of arcs, counting arcs that physically overlap due to merging.intfinalStatesCountNumber of final states (number of input sequences stored in the automaton).intnodeCountNumber of nodes in the automaton.intsizeArcs size (in serialized form).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()
-
-
-
Field Detail
-
nodeCount
public final int nodeCount
Number of nodes in the automaton.
-
arcsCount
public final int arcsCount
Number of arcs in the automaton, excluding an arcs from the zero node (initial) and an arc from the start node to the root node.
-
arcsCountTotal
public final int arcsCountTotal
Total number of arcs, counting arcs that physically overlap due to merging.
-
finalStatesCount
public final int finalStatesCount
Number of final states (number of input sequences stored in the automaton).
-
size
public final int size
Arcs size (in serialized form).
-
-
Constructor Detail
-
FSAInfo
public FSAInfo(FSA fsa)
-
FSAInfo
public FSAInfo(int nodeCount, int arcsCount, int arcsCountTotal, int finalStatesCount)
-
-