Class

org.scalarules.dsl.nl.grammar

ReducableEvaluation

Related Doc: package grammar

Permalink

class ReducableEvaluation[A, B >: A] extends Evaluation[B]

Evaluation providing a framework for operations which can reduce a Sequence of Facts. When this evaluation resolves, the operation parameter will be applied to the Sequence of Facts using the reduceLeft function.

A

type of the input Facts.

B

type of the result of the reducing operation. Must be a supertype of type A to fit into the reduceLeft operation.

Linear Supertypes
Evaluation[B], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReducableEvaluation
  2. Evaluation
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReducableEvaluation(operationName: String, operation: (B, A) ⇒ B, facts: Seq[Fact[A]])

    Permalink

    operationName

    name of the operation. This is used in the toString function for documentation purposes. (You should preferably supply the same word as is used in the DSL to create the operation. For examples, see maximum and minimum in dslEvaluations.)

    operation

    the actual function capable of reducing a Sequence of Facts.

    facts

    the Sequence of input Facts.

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(c: Context): Option[B]

    Permalink
    Definition Classes
    ReducableEvaluation → Evaluation
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def asListEvaluation: Evaluation[List[B]]

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. val facts: Seq[Fact[A]]

    Permalink

    the Sequence of input Facts.

  11. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. val operation: (B, A) ⇒ B

    Permalink

    the actual function capable of reducing a Sequence of Facts.

  19. val operationName: String

    Permalink

    name of the operation.

    name of the operation. This is used in the toString function for documentation purposes. (You should preferably supply the same word as is used in the DSL to create the operation. For examples, see maximum and minimum in dslEvaluations.)

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

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    ReducableEvaluation → AnyRef → Any
  22. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Evaluation[B]

Inherited from AnyRef

Inherited from Any

Ungrouped