Package org.biojava.utils.automata
Class NfaSubModel
- java.lang.Object
-
- org.biojava.utils.automata.NfaSubModel
-
- All Implemented Interfaces:
NfaBuilder
public class NfaSubModel extends Object implements NfaBuilder
This class caches a reference to all objects that it directs its delegate to make. These references make it relatively easy for it to duplicate all objects made through this class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.biojava.utils.automata.FiniteAutomaton.Transition
addEpsilonTransition(org.biojava.utils.automata.FiniteAutomaton.Node start, org.biojava.utils.automata.FiniteAutomaton.Node end)
org.biojava.utils.automata.FiniteAutomaton.Transition
addLambdaTransition(org.biojava.utils.automata.FiniteAutomaton.Node start, org.biojava.utils.automata.FiniteAutomaton.Node end)
org.biojava.utils.automata.FiniteAutomaton.Node
addNode(boolean isTerminal)
org.biojava.utils.automata.FiniteAutomaton.Transition
addTransition(org.biojava.utils.automata.FiniteAutomaton.Node start, org.biojava.utils.automata.FiniteAutomaton.Node end, Symbol sym)
void
append(NfaSubModel submodel)
org.biojava.utils.automata.FiniteAutomaton.NodeSet
createNodeSet()
NfaSubModel
duplicate()
Makes a deep clone of this instance.FiniteAutomaton
getAutomaton()
org.biojava.utils.automata.FiniteAutomaton.Node
getEnd()
org.biojava.utils.automata.FiniteAutomaton.NodeSet
getNodes()
org.biojava.utils.automata.FiniteAutomaton.Node
getStart()
Set
getTransitions()
String
toString()
-
-
-
Method Detail
-
getAutomaton
public FiniteAutomaton getAutomaton()
- Specified by:
getAutomaton
in interfaceNfaBuilder
-
getStart
public org.biojava.utils.automata.FiniteAutomaton.Node getStart()
- Specified by:
getStart
in interfaceNfaBuilder
-
getEnd
public org.biojava.utils.automata.FiniteAutomaton.Node getEnd()
- Specified by:
getEnd
in interfaceNfaBuilder
-
addNode
public org.biojava.utils.automata.FiniteAutomaton.Node addNode(boolean isTerminal)
- Specified by:
addNode
in interfaceNfaBuilder
-
addTransition
public org.biojava.utils.automata.FiniteAutomaton.Transition addTransition(org.biojava.utils.automata.FiniteAutomaton.Node start, org.biojava.utils.automata.FiniteAutomaton.Node end, Symbol sym)
- Specified by:
addTransition
in interfaceNfaBuilder
-
addEpsilonTransition
public org.biojava.utils.automata.FiniteAutomaton.Transition addEpsilonTransition(org.biojava.utils.automata.FiniteAutomaton.Node start, org.biojava.utils.automata.FiniteAutomaton.Node end)
- Specified by:
addEpsilonTransition
in interfaceNfaBuilder
-
addLambdaTransition
public org.biojava.utils.automata.FiniteAutomaton.Transition addLambdaTransition(org.biojava.utils.automata.FiniteAutomaton.Node start, org.biojava.utils.automata.FiniteAutomaton.Node end)
- Specified by:
addLambdaTransition
in interfaceNfaBuilder
-
getNodes
public org.biojava.utils.automata.FiniteAutomaton.NodeSet getNodes()
- Specified by:
getNodes
in interfaceNfaBuilder
-
getTransitions
public Set getTransitions()
- Specified by:
getTransitions
in interfaceNfaBuilder
-
createNodeSet
public org.biojava.utils.automata.FiniteAutomaton.NodeSet createNodeSet()
- Specified by:
createNodeSet
in interfaceNfaBuilder
-
duplicate
public NfaSubModel duplicate()
Makes a deep clone of this instance.
-
append
public void append(NfaSubModel submodel)
-
-