org.cddcore.engine

EngineUniverse

trait EngineUniverse[R] extends EngineTypes[R]

Linear Supertypes
EngineTypes[R], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EngineUniverse
  2. EngineTypes
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type A

    A is a function from the parameters of the engine, and the result to a boolean.

    A is a function from the parameters of the engine, and the result to a boolean. It checks that some property is true

    Definition Classes
    EngineTypes
  2. type AssertionClosure = (A) ⇒ Boolean

    In order to call an A in the building code, when we don't know anything about the arity, we create a closure holding the parameters and reusltand pass the A function to it

    In order to call an A in the building code, when we don't know anything about the arity, we create a closure holding the parameters and reusltand pass the A function to it

    Definition Classes
    EngineTypes
  3. class AssertionDoesntMatchBecauseException extends ScenarioConflictException

  4. class AssertionException extends ScenarioException

  5. abstract type B

    B is a function from the parameters of the engine to a boolean.

    B is a function from the parameters of the engine to a boolean. It is effectively in calculating which scenario is to be used

    Definition Classes
    EngineTypes
  6. type BecauseClosure = (B) ⇒ Boolean

    In order to call a B in the building code, when we don't know anything about the arity, we create a closure holding the parameters and pass the B function to it

    In order to call a B in the building code, when we don't know anything about the arity, we create a closure holding the parameters and pass the B function to it

    Definition Classes
    EngineTypes
  7. trait BuildEngine extends EvaluateEngine with EngineToString

  8. trait BuilderNode extends Requirement

  9. class CannotDefineCodeTwiceException extends EngineException

  10. class CannotDefineDescriptionTwiceException extends EngineException

  11. class CannotDefineExpectedTwiceException extends EngineException

  12. class CannotDefineTitleTwiceException extends EngineException

  13. type CfgClosure = (CfgFn) ⇒ Unit

    Definition Classes
    EngineTypes
  14. abstract type CfgFn

    this is a function from the parameters to Unit e,g, (P1,P2,P3)=> Unit

    this is a function from the parameters to Unit e,g, (P1,P2,P3)=> Unit

    Definition Classes
    EngineTypes
  15. type Code = CodeFn[B, RFn, R]

    This is just a type synonym to save messy code

    This is just a type synonym to save messy code

    Definition Classes
    EngineTypes
  16. case class CodeAndScenarios(code: EngineUniverse.Code, scenarios: List[Scenario] = immutable.this.Nil, default: Boolean = false) extends Product with Serializable

  17. abstract class Engine extends BuildEngine with ScenarioWalker

  18. case class EngineNode(because: List[Because[EngineUniverse.B]], inputs: List[Any], yes: RorN, no: RorN, scenarioThatCausedNode: Scenario) extends Product with Serializable

  19. class EngineResultException extends EngineException

  20. trait EngineToString extends AnyRef

  21. trait EvaluateEngine extends AnyRef

  22. class ExceptionWithoutCodeException extends ScenarioException

  23. abstract type FragFn

    turns parameters into fragment results.

    turns parameters into fragment results. For example in XML in an engine 2 it might be (P1,P2)=>NodeSeq. I would love to know how to make this more type safe...

    Definition Classes
    EngineTypes
  24. trait IfThenPrinter extends AnyRef

  25. class MultipleExceptions extends EngineException

  26. class NoBecauseException extends ScenarioException

  27. class NoExceptionThrownException extends ScenarioException

  28. class NoExpectedException extends ScenarioException

  29. case class NodePath(parent: RorN, result: Boolean) extends Product with Serializable

  30. abstract type ParamsToFragmentFn

    turns the params into a Fragment.

    turns the params into a Fragment. This can be modified by the fragment specifiers

    Definition Classes
    EngineTypes
  31. abstract type RFn

    RFn is a function from the parameters of the engine to a result R.

    RFn is a function from the parameters of the engine to a result R. It is used to calculate the result of the engine

    Definition Classes
    EngineTypes
  32. type RFnMaker = (Either[Exception, R]) ⇒ RFn

    Definition Classes
    EngineTypes
  33. abstract type RealScenarioBuilder <: ScenarioBuilder

    Definition Classes
    EngineUniverseEngineTypes
  34. type ResultClosure = (RFn) ⇒ R

    In order to call a RFN in the building code, when we don't know anything about the arity, we create a closure holding the parameters and pass the B function to it

    In order to call a RFN in the building code, when we don't know anything about the arity, we create a closure holding the parameters and pass the B function to it

    Definition Classes
    EngineTypes
  35. type RorN = Either[CodeAndScenarios, EngineNode]

  36. case class Scenario(title: Option[String], description: Option[String], params: List[Any], paramPrinter: LoggerDisplayProcessor, expected: Option[ROrException[R]] = scala.None, optCode: Option[EngineUniverse.Code] = scala.None, because: Option[Because[EngineUniverse.B]] = scala.None, assertions: List[Assertion[EngineUniverse.A]] = immutable.this.Nil, configuration: Option[EngineUniverse.CfgFn] = scala.None, priority: Int = 0, references: List[Reference] = immutable.this.Nil) extends BuilderNode with Product with Serializable

  37. class ScenarioBecauseException extends ScenarioException

  38. trait ScenarioBuilder extends ScenarioWalker with BuilderNode

  39. class ScenarioConflictException extends ScenarioException

  40. class ScenarioConflictingWithDefaultException extends ScenarioException

  41. class ScenarioConflictingWithoutBecauseException extends ScenarioConflictException

  42. class ScenarioException extends EngineException

  43. case class ScenarioExceptionMap(map: Map[Scenario, Throwable] = ..., first: Option[Throwable] = scala.None) extends Product with Serializable

  44. class ScenarioResultException extends ScenarioException

  45. trait ScenarioVisitor extends AnyRef

  46. trait ScenarioWalker extends AnyRef

  47. case class UseCase(title: Option[String] = scala.None, description: Option[String] = scala.None, scenarios: List[Scenario] = immutable.this.Nil, expected: Option[ROrException[R]] = scala.None, optCode: Option[EngineUniverse.Code] = scala.None, priority: Int = 0, references: List[Reference] = immutable.this.Nil) extends BuilderNode with Product with Serializable

  48. class WrongExceptionThrownException extends ScenarioException

Abstract Value Members

  1. abstract def builder: RealScenarioBuilder

  2. abstract def logger: TddLogger

  3. abstract def makeClosureForAssertion(params: List[Any], r: ROrException[R]): (A) ⇒ Boolean

    Definition Classes
    EngineTypes
  4. abstract def makeClosureForBecause(params: List[Any]): (B) ⇒ Boolean

    Definition Classes
    EngineTypes
  5. abstract def makeClosureForCfg(params: List[Any]): (CfgFn) ⇒ Unit

    Definition Classes
    EngineTypes
  6. abstract def makeClosureForResult(params: List[Any]): (RFn) ⇒ R

    Definition Classes
    EngineTypes
  7. abstract def rfnMaker: (Either[() ⇒ Exception, R]) ⇒ RFn

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. object AssertionDoesntMatchBecauseException extends Serializable

  7. object CannotDefineCodeTwiceException extends Serializable

  8. object CannotDefineDescriptionTwiceException extends Serializable

  9. object CannotDefineExpectedTwiceException extends Serializable

  10. object CannotDefineTitleTwiceException extends Serializable

  11. object CodeAndScenarios extends Serializable

  12. object ExceptionScenarioPrinter

  13. object ExceptionWithoutCodeException extends Serializable

  14. object NoExceptionThrownException extends Serializable

  15. object NoExpectedException extends Serializable

  16. object NodePath extends Serializable

  17. object PathPrinter

  18. object ScenarioConflictException extends Serializable

  19. object ScenarioConflictingWithDefaultException extends Serializable

  20. object ScenarioConflictingWithoutBecauseException extends Serializable

  21. object ScenarioResultException extends Serializable

  22. object WrongExceptionThrownException extends Serializable

  23. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  24. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef → Any
  27. def finalize(): Unit

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

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

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

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

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

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

    Definition Classes
    AnyRef
  34. val scenarioLens: Lens[RealScenarioBuilder, Scenario]

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

    Definition Classes
    AnyRef
  36. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from EngineTypes[R]

Inherited from AnyRef

Inherited from Any

Ungrouped