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.TransitionaddEpsilonTransition(org.biojava.utils.automata.FiniteAutomaton.Node start, org.biojava.utils.automata.FiniteAutomaton.Node end)org.biojava.utils.automata.FiniteAutomaton.TransitionaddLambdaTransition(org.biojava.utils.automata.FiniteAutomaton.Node start, org.biojava.utils.automata.FiniteAutomaton.Node end)org.biojava.utils.automata.FiniteAutomaton.NodeaddNode(boolean isTerminal)org.biojava.utils.automata.FiniteAutomaton.TransitionaddTransition(org.biojava.utils.automata.FiniteAutomaton.Node start, org.biojava.utils.automata.FiniteAutomaton.Node end, Symbol sym)voidappend(NfaSubModel submodel)org.biojava.utils.automata.FiniteAutomaton.NodeSetcreateNodeSet()NfaSubModelduplicate()Makes a deep clone of this instance.FiniteAutomatongetAutomaton()org.biojava.utils.automata.FiniteAutomaton.NodegetEnd()org.biojava.utils.automata.FiniteAutomaton.NodeSetgetNodes()org.biojava.utils.automata.FiniteAutomaton.NodegetStart()SetgetTransitions()StringtoString()
-
-
-
Method Detail
-
getAutomaton
public FiniteAutomaton getAutomaton()
- Specified by:
getAutomatonin interfaceNfaBuilder
-
getStart
public org.biojava.utils.automata.FiniteAutomaton.Node getStart()
- Specified by:
getStartin interfaceNfaBuilder
-
getEnd
public org.biojava.utils.automata.FiniteAutomaton.Node getEnd()
- Specified by:
getEndin interfaceNfaBuilder
-
addNode
public org.biojava.utils.automata.FiniteAutomaton.Node addNode(boolean isTerminal)
- Specified by:
addNodein 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:
addTransitionin 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:
addEpsilonTransitionin 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:
addLambdaTransitionin interfaceNfaBuilder
-
getNodes
public org.biojava.utils.automata.FiniteAutomaton.NodeSet getNodes()
- Specified by:
getNodesin interfaceNfaBuilder
-
getTransitions
public Set getTransitions()
- Specified by:
getTransitionsin interfaceNfaBuilder
-
createNodeSet
public org.biojava.utils.automata.FiniteAutomaton.NodeSet createNodeSet()
- Specified by:
createNodeSetin interfaceNfaBuilder
-
duplicate
public NfaSubModel duplicate()
Makes a deep clone of this instance.
-
append
public void append(NfaSubModel submodel)
-
-