Class/Object

de.uni_luebeck.isp.rltlconv.automata

Nfa

Related Docs: object Nfa | package automata

Permalink

case class Nfa(alphabet: Set[String], states: List[State], start: List[State], transitions: Map[(State, Sign), List[DirectedState]], accepting: List[State]) extends Automaton with Product with Serializable

Represents (2)NFAs.

alphabet

the alphabet of the NFA

states

a list of the states of the NFA

start

a list of states containing the initial states of the NFA

transitions

maps an actual states and an element of the alphabet onto a list with the next states

accepting

a list of states containing the accepting states of the NFA

Linear Supertypes
Serializable, Serializable, Product, Equals, Automaton, Automata, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Nfa
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Automaton
  7. Automata
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Nfa(alphabet: Set[String], states: List[State], start: List[State], transitions: Map[(State, Sign), List[DirectedState]], accepting: List[State])

    Permalink

    creates a new NFA with an alphabet, states, start states, transitions and accepting states.

    creates a new NFA with an alphabet, states, start states, transitions and accepting states.

    alphabet

    the alphabet of the NFA

    states

    a list of the states of the NFA

    start

    a list of states containing the initial states of the NFA

    transitions

    maps an actual states and an element of the alphabet onto a list with the next states

    accepting

    a list of states containing the accepting states of the NFA

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def *(other: Nfa): Nfa

    Permalink

    Returns a new NFA being the binary kleene star of this and the given NFA.

    Returns a new NFA being the binary kleene star of this and the given NFA.

    Binary kleene of this and the given NFA means: The language defined by this NFA can be repeated zero or more times followed by the language of the given NFA.

    other

    the second NFA.

    returns

    the NFA that is the kleene star of the two given NFAs.

  4. def +(other: Nfa): Nfa

    Permalink

    Returns a new NFA being the concatenation of this NFA and the given NFA.

    Returns a new NFA being the concatenation of this NFA and the given NFA.

    other

    the second NFA.

    returns

    the NFA that is the concatenation of the two given NFAs.

  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. val accepting: List[State]

    Permalink

    a list of states containing the accepting states of the NFA

  7. def accepts(word: Seq[String]): Boolean

    Permalink

    word

    a finite word as a sequence of strings.

    returns

    true if the NFA accepts the word, else false.

  8. val alphabet: Set[String]

    Permalink

    the alphabet of the NFA

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def callDot(filetype: String, adot: ADotOption = SingleBool): Array[Byte]

    Permalink
    Attributes
    protected[de.uni_luebeck.isp.rltlconv.automata]
    Definition Classes
    Automata
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hasCycle: Boolean

    Permalink

    returns

    true if the NFA contains a cycle other than loops at junk states, which are not accepting states without any outgoing edge except for the loop.

  16. def isDeterministic: Boolean

    Permalink
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def isTwoWay: Boolean

    Permalink

    returns

    true if the NFA is a 2NFA else false.

  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def numberOfTransitions: Int

    Permalink

    Computes the number of transitions of the NFA.

    Computes the number of transitions of the NFA.

    returns

    the number of transitions.

  23. def rejects(word: Seq[String]): Boolean

    Permalink

    word

    a finite word as a sequence of strings.

    returns

    true if the NFA rejects the word, else false.

  24. def setAlphabet(alphabet: Set[String]): Nfa

    Permalink

    Set the alphabet of the NFA to a given list of strings.

    Set the alphabet of the NFA to a given list of strings.

    alphabet

    the new alphabet.

    returns

    a new NFA with the new alphabet.

  25. val start: List[State]

    Permalink

    a list of states containing the initial states of the NFA

  26. val states: List[State]

    Permalink

    a list of the states of the NFA

  27. def syncStatesByName: Nfa

    Permalink

    Returns a new NFA class where all used State instances appear in the states list.

    Returns a new NFA class where all used State instances appear in the states list.

    To achieve this goal the members start, transitions and accepting are scanned and every appearing State instance is tried to find in the states list by comparing the names. If it's not found, an exception is thrown.

    Simultaneously for every symbol it is checked if the symbol is element of the alphabet. If it's not found an exception is thrown.

    returns

    a new NFA with same states list but modified start, transactions and accepting member.

  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toCompletedNfa: Nfa

    Permalink

    Creates a new NFA based on this NFA which is fully specified.

    Creates a new NFA based on this NFA which is fully specified. This means on every state there is at least one transition for every element of the alphabet. A junk state is added of needed.

    returns

    the complete NFA.

  30. def toDeterministicNfa: Nfa

    Permalink
  31. def toDot(aDot: ADotOption = SingleBool): String

    Permalink

    Converts the NFA into dot format.

    Converts the NFA into dot format.

    returns

    the NFA in dot format.

    Definition Classes
    NfaAutomata
  32. def toMinimizedDeterministicNfa: Nfa

    Permalink

    Performs optimal minimization on one-way automaton using the Brzozowski algorithm.

    Performs optimal minimization on one-way automaton using the Brzozowski algorithm.

    returns

    the minimized and determinized NFA.

  33. def toMinimizedNfa: Nfa

    Permalink

    Performs optimal minimization on deterministic one-way automaton using Moore algorithm.

    Performs optimal minimization on deterministic one-way automaton using Moore algorithm.

    returns

    the minimized deterministic NFA.

  34. def toPdf(aDot: ADotOption = SingleBool): Array[Byte]

    Permalink
    Definition Classes
    Automata
  35. def toPng(aDot: ADotOption = SingleBool): Array[Byte]

    Permalink
    Definition Classes
    Automaton
  36. def toPreparedNfa: Nfa

    Permalink

    Performs all operations needed to integrate an NFA into an APW.

    Performs all operations needed to integrate an NFA into an APW. At the moment this means to remove all epsilon transitions and transform the automaton into a completed one.

    returns

    the prepared NFA.

  37. def toReducedNfa: Nfa

    Permalink

    Removes epsilon transitions and unreachable states.

    Removes epsilon transitions and unreachable states.

    returns

    a new NFA without epsilon transitions and unreachable states.

  38. def toReversedNfa: Nfa

    Permalink

    Computes an NFA accepting the reversed language by reversing all transitions and changing accepting and initial states.

    Computes an NFA accepting the reversed language by reversing all transitions and changing accepting and initial states. Only works on completed one-way NFAs.

    returns

    the reversed NFA

  39. def toString(): String

    Permalink

    Converts the NFA into AFF format.

    Converts the NFA into AFF format.

    returns

    the NFA in AFF format.

    Definition Classes
    Nfa → AnyRef → Any
  40. def toSvg(aDot: ADotOption = SingleBool): Array[Byte]

    Permalink
    Definition Classes
    Automaton
  41. val transitions: Map[(State, Sign), List[DirectedState]]

    Permalink

    maps an actual states and an element of the alphabet onto a list with the next states

  42. def usesEpsilon: Boolean

    Permalink

    returns

    true if the NFA is an epsilon-NFA else false.

  43. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. def |(other: Nfa): Nfa

    Permalink

    Returns a new NFA being the union of this and the given NFA.

    Returns a new NFA being the union of this and the given NFA.

    other

    the second NFA.

    returns

    the NFA that is the union of the two given NFAs.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Automaton

Inherited from Automata

Inherited from AnyRef

Inherited from Any

Ungrouped