laser.regularlanguage.util
Interface RLFactory<L extends LabelInterface>

Type Parameters:
L - The type of Labels used by the FSAs and REs
All Known Implementing Classes:
DefaultRLFactory, StringRLFactory

public interface RLFactory<L extends LabelInterface>

The RLFactory interface provides helper methods for converting between FSAs and REs.

Author:
Heather M. Conboy (laser-software@cs.umass.edu)
See Also:
FSAFactoryInterface, REFactory

Method Summary
 java.lang.Object[] getCreateFSAArgs(RE<L> theRE)
          Gets any required arguments for the FSA factory method from the given RE.
 java.lang.Object[] getCreateREArgs(FSAInterface<L> theFSA)
          Gets any required arguments for the RE factory method from the given FSA.
 

Method Detail

getCreateFSAArgs

java.lang.Object[] getCreateFSAArgs(RE<L> theRE)
Gets any required arguments for the FSA factory method from the given RE.

PRECONDITIONS:

Parameters:
theRE - The RE to use as a prototype
Returns:
Any required arguments for the equivalent FSA
Throws:
java.lang.IllegalArgumentException - if any precondition is not met
See Also:
FSAFactoryInterface.createMutableFSAInterface(AlphabetInterface, Object[])

getCreateREArgs

java.lang.Object[] getCreateREArgs(FSAInterface<L> theFSA)
Gets any required arguments for the RE factory method from the given FSA.

PRECONDITIONS:

Parameters:
theFSA - The FSA to use as a prototype
Returns:
Any required arguments for the equivalent RE
Throws:
java.lang.IllegalArgumentException - if any precondition is not met
See Also:
REFactory.createRE(AlphabetInterface, TreeNode, Object[])