jInfer

cz.cuni.mff.ksi.jinfer.base.automaton
Class AutomatonCloner<A,B>

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.base.automaton.AutomatonCloner<A,B>

public class AutomatonCloner<A,B>
extends Object

AutomatonCloner is helper class, which does just what it's name says. Given one automaton build with generic type it constructs automaton build with generic type , when given class AutomatonClonerSymbolConverter. It deeply clones = constructs the delta function, sets of states, mergedStates... whole internal structure of automaton. It can be used to convert from automaton with AbstractNode on transitions to automaton with Regexp on transitions, aso.


Constructor Summary
AutomatonCloner()
           
 
Method Summary
 void convertAutomaton(Automaton<A> anotherAutomaton, Automaton<B> newAutomaton, AutomatonClonerSymbolConverter<A,B> symbolConverter)
           
 Automaton<B> convertAutomaton(Automaton<A> anotherAutomaton, AutomatonClonerSymbolConverter<A,B> symbolConverter)
           
 Map<State<B>,State<A>> getReverseStateConversionMap()
           
 Map<State<A>,State<B>> getStateConversionMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutomatonCloner

public AutomatonCloner()
Method Detail

convertAutomaton

public Automaton<B> convertAutomaton(Automaton<A> anotherAutomaton,
                                     AutomatonClonerSymbolConverter<A,B> symbolConverter)

convertAutomaton

public void convertAutomaton(Automaton<A> anotherAutomaton,
                             Automaton<B> newAutomaton,
                             AutomatonClonerSymbolConverter<A,B> symbolConverter)

getReverseStateConversionMap

public Map<State<B>,State<A>> getReverseStateConversionMap()

getStateConversionMap

public Map<State<A>,State<B>> getStateConversionMap()

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011