Class/Object

in.tamchow.turing

UniversalTuringMachine

Related Docs: object UniversalTuringMachine | package turing

Permalink

final class UniversalTuringMachine extends AnyRef

Represents an UniversalTuringMachine object

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UniversalTuringMachine
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new UniversalTuringMachine(commands: Seq[TuringCommand], initialState: String, terminalStatesWithoutDefault: Seq[String], tapeFiller: Option[Seq[String]], tapeSize: Int)

    Permalink

    Requires all parameters.

    Requires all parameters.

    commands

    The list of possible commands

    initialState

    The initial state of this UniversalTuringMachine

    terminalStatesWithoutDefault

    The possible halting states of this UniversalTuringMachine

    tapeFiller

    The initializer for the tape of this UniversalTuringMachine

    tapeSize

    The length of the tape of this UniversalTuringMachine

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: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from UniversalTuringMachine to any2stringadd[UniversalTuringMachine] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (UniversalTuringMachine, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from UniversalTuringMachine to ArrowAssoc[UniversalTuringMachine] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val commands: Seq[TuringCommand]

    Permalink

    The list of possible commands

  9. def ensuring(cond: (UniversalTuringMachine) ⇒ Boolean, msg: ⇒ Any): UniversalTuringMachine

    Permalink
    Implicit information
    This member is added by an implicit conversion from UniversalTuringMachine to Ensuring[UniversalTuringMachine] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (UniversalTuringMachine) ⇒ Boolean): UniversalTuringMachine

    Permalink
    Implicit information
    This member is added by an implicit conversion from UniversalTuringMachine to Ensuring[UniversalTuringMachine] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): UniversalTuringMachine

    Permalink
    Implicit information
    This member is added by an implicit conversion from UniversalTuringMachine to Ensuring[UniversalTuringMachine] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): UniversalTuringMachine

    Permalink
    Implicit information
    This member is added by an implicit conversion from UniversalTuringMachine to Ensuring[UniversalTuringMachine] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(other: Any): Boolean

    Permalink

    Equality comparison of this UniversalTuringMachine object with the argument

    Equality comparison of this UniversalTuringMachine object with the argument

    Uses a toString() and hashCode() trick

    other

    the object to compare this UniversalTuringMachine object for equality to

    returns

    whether this UniversalTuringMachine equals {other}

    Definition Classes
    UniversalTuringMachine → AnyRef → Any
    See also

    toString

    hashCode

  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from UniversalTuringMachine to StringFormat[UniversalTuringMachine] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. val hashCode: Int

    Permalink

    A hash code for this UniversalTuringMachine object, derived from {toString()}

    A hash code for this UniversalTuringMachine object, derived from {toString()}

    Definition Classes
    UniversalTuringMachine → AnyRef → Any
    See also

    toString

  19. def initTape: Seq[String]

    Permalink

    Fills the tape initially with the tapeFiller contents repeatedly.

    Fills the tape initially with the tapeFiller contents repeatedly.

    returns

    a properly initialized tape

  20. val initialState: String

    Permalink

    The initial state of this UniversalTuringMachine

  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  25. def runForStepsOrTillHalt(steps: Int): Seq[Seq[String]]

    Permalink

    Runs the program for the specified number of steps or till the program halts (if the specified number of steps is negative)

    Runs the program for the specified number of steps or till the program halts (if the specified number of steps is negative)

    steps

    the number of steps for which the program is run. Supply negative values to run till halt

    returns

    the history of the tape in each step as a Seq of Seqs of Strings

  26. def runStep(head: Option[Int], state: String, tape: Seq[String]): StepData

    Permalink

    Runs one step of a program

    Runs one step of a program

    head

    the tape head

    state

    the current state

    tape

    the current tape of this UniversalTuringMachine

    returns

    a StepData instance containing the data for the next step

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

    Permalink
    Definition Classes
    AnyRef
  28. val tapeFiller: Option[Seq[String]]

    Permalink

    The initializer for the tape of this UniversalTuringMachine

  29. val tapeSize: Int

    Permalink

    The length of the tape of this UniversalTuringMachine

  30. val terminalStates: Seq[String]

    Permalink

    Append the default halt state to the list of termination states

  31. val terminalStatesWithoutDefault: Seq[String]

    Permalink

    The possible halting states of this UniversalTuringMachine

  32. val toString: String

    Permalink

    A String representation of this UniversalTuringMachine object

    A String representation of this UniversalTuringMachine object

    Definition Classes
    UniversalTuringMachine → AnyRef → Any
  33. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def [B](y: B): (UniversalTuringMachine, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from UniversalTuringMachine to ArrowAssoc[UniversalTuringMachine] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from UniversalTuringMachine to any2stringadd[UniversalTuringMachine]

Inherited by implicit conversion StringFormat from UniversalTuringMachine to StringFormat[UniversalTuringMachine]

Inherited by implicit conversion Ensuring from UniversalTuringMachine to Ensuring[UniversalTuringMachine]

Inherited by implicit conversion ArrowAssoc from UniversalTuringMachine to ArrowAssoc[UniversalTuringMachine]

Ungrouped