com.clarifi.machines

Plan

sealed trait Plan[+K, +O, +A] extends AnyRef

You can construct a Plan and then compile it to a Machine. A Plan[K, O, A] is a specification for a pure Machine that reads inputs selected by K and writes values of type O. The Plan has intermediate results of type A which are placeholders for further plans.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Plan
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def flatMap[L >: K, P >: O, B](f: (A) ⇒ Plan[L, P, B]): Plan[L, P, B]

    Substitute into the variables in this Plan.

  2. abstract def orElse[L >: K, P >: O, B >: A](p: ⇒ Plan[L, P, B]): Plan[L, P, B]

    If the current Plan fails, try the plan p.

Concrete Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def >>[L >: K, P >: O, B](next: ⇒ Plan[L, P, B]): Plan[L, P, B]

    Sequential composition of Plans.

  5. final def andThen[P](p: Process[O, P]): Plan[K, P, A]

    Connect the output of the machine to the given Process.

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def compile: Machine[K, O]

    A Machine that executes the Plan and then stops.

  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def filter(f: (A) ⇒ Boolean): Plan[K, O, A]

  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def foldLeft[R](acc: R)(f: (R, O) ⇒ R): R

    Accumulate the outputs of the machine, associating to the left.

  14. def foldMap[B](f: (O) ⇒ B)(implicit M: Monoid[B]): B

    Accumulate the outputs of the machine in a Monoid.

  15. def foldRight[R](z: ⇒ R)(f: (O, ⇒ R) ⇒ R): R

    Accumulate the outputs of the machine, associating to the right.

  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. def inmap[L](p: (K) ⇒ L): Plan[L, O, A]

    Transform the inputs of the resulting machine.

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def iterate[L >: K, P >: O, B >: A](h: (B) ⇒ Plan[L, P, B]): Machine[L, P]

    Corecursively build a machine by iterating the given function.

  21. def map[B](f: (A) ⇒ B): Plan[K, O, B]

    Reassign the variables in this Plan.

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

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

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

    Definition Classes
    AnyRef
  25. def outmap[P](f: (O) ⇒ P): Plan[K, P, A]

    Transform the outputs of the resulting machine.

  26. def repeatedly: Machine[K, O]

    A Machine that executes the Plan indefinitely.

  27. def replicateM_(n: Int): Plan[K, O, Unit]

    Repeat this plan n times.

  28. def sink[P, Q >: O](m: Moore[Q, P]): Moore[Q, P]

  29. def split[P](y: Process[O, P]): Plan[K, \/[O, P], A]

    Split the output into two streams at possibly differing rates.

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

    Definition Classes
    AnyRef
  31. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def withFilter(f: (A) ⇒ Boolean): Plan[K, O, A]

Inherited from AnyRef

Inherited from Any

Ungrouped