morfologik.fsa.core
Interface FSA.Node

Enclosing class:
FSA

public static interface FSA.Node

A node of the FSA. The operations of this interface should be implemented by all version-specific implementations.


Method Summary
 FSA.Arc getArcLabelledWith(byte label)
          Returns an arc with a given label, if it exists in this node.
 FSA.Arc getFirstArc()
          Returns the first outgoing arc of this node.
 FSA.Arc getNextArc(FSA.Arc arc)
          Returns a subsequent arc of this node, null is returned when no more arcs are available.
 

Method Detail

getFirstArc

FSA.Arc getFirstArc()
Returns the first outgoing arc of this node. Theoretically, this method should ALWAYS return at least one arc. (final nodes have no representation).


getNextArc

FSA.Arc getNextArc(FSA.Arc arc)
Returns a subsequent arc of this node, null is returned when no more arcs are available.


getArcLabelledWith

FSA.Arc getArcLabelledWith(byte label)
Returns an arc with a given label, if it exists in this node. The default implementation in FSAAbstractNode simply traverses the list of arcs from the first, to the last - implementations of Node may implement a more efficient algorithm, if possible.