org.cddcore.engine

EngineUniverse

trait EngineUniverse[R, FullR] extends EngineTypes[R, FullR]

Linear Supertypes
EngineTypes[R, FullR], 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. abstract class AbstractEngine extends Engine with ParamDetails with ReportableWithTemplate with EngineWithLogger with EngineWithScenarioExceptionMap

  3. 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
  4. class AssertionDoesntMatchBecauseException extends ScenarioConflictException

  5. class AssertionException extends ScenarioException

  6. 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
  7. 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
  8. trait BuildEngine extends EvaluateEngine with EngineWithScenarioExceptionMap

  9. trait BuilderNode extends Requirement

  10. class CannotDefineBecauseTwiceException extends EngineException

  11. class CannotDefineCodeTwiceException extends EngineException

  12. class CannotDefineDescriptionTwiceException extends EngineException

  13. class CannotDefineExpectedTwiceException extends EngineException

  14. class CannotDefineTitleTwiceException extends EngineException

  15. type CfgClosure = (CfgFn) ⇒ Unit

    Definition Classes
    EngineTypes
  16. 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
  17. case class ChildEngineDescription(textOrder: Int, title: Option[String] = scala.None, description: Option[String] = scala.None, children: List[Reportable] = immutable.this.Nil, expected: Option[ROrException[R]] = scala.None, optCode: Option[EngineUniverse.Code] = scala.None, priority: Option[Int] = scala.None, references: Set[Reference] = ...) extends BuilderNode with RequirementAndHolder with Product with Serializable

  18. class ChildEngineImpl extends ChildEngine[R] with BuildEngine with EvaluateEngineWithRoot

  19. type Code = CodeHolder[RFn]

    This is just a type synonym to save messy code

    This is just a type synonym to save messy code

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

  21. class DuplicateScenarioException extends ScenarioException

  22. abstract class EngineFromTestsImpl extends AbstractEngine with BuildEngine with EvaluateEngineWithRoot with EngineBuiltFromTests[R] with ScenarioBuilderDataAsReadableFields

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

  24. class EngineResultException extends EngineException

  25. abstract class EngineWithChildrenImpl extends AbstractEngine with EngineFull[R, FullR] with ScenarioBuilderDataAsReadableFields

  26. trait EvaluateEngine extends AnyRef

  27. trait EvaluateEngineWithRoot extends EvaluateEngine

  28. class ExceptionWithoutCodeException extends ScenarioException

  29. class ExpectedValueGotException extends ScenarioException

  30. type FoldFn = (FullR, R) ⇒ FullR

    Definition Classes
    EngineTypes
  31. 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
  32. type InitialValueMaker = () ⇒ FullR

    Definition Classes
    EngineTypes
  33. class MultipleExceptions extends EngineException

  34. class NoBecauseException extends ScenarioException

  35. class NoExceptionThrownException extends ScenarioException

  36. class NoExpectedException extends ScenarioException

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

  38. abstract type PF

    PF is a partial function from the parameters of the engine to a result R

    PF is a partial function from the parameters of the engine to a result R

    Definition Classes
    EngineTypes
  39. 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
  40. 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
  41. type RFnMaker = (Either[Exception, R]) ⇒ RFn

    Definition Classes
    EngineTypes
  42. abstract type RealScenarioBuilder <: ScenarioBuilder

    Definition Classes
    EngineUniverseEngineTypes
  43. 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
  44. type RorN = Either[CodeAndScenarios, EngineNode]

  45. 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[CodeHolder[EngineUniverse.B]] = scala.None, assertions: List[CodeHolder[EngineUniverse.A]] = immutable.this.Nil, configuration: Option[EngineUniverse.CfgFn] = scala.None, priority: Option[Int] = scala.None, references: Set[Reference] = ...) extends BuilderNode with Requirement with Test with Product with Serializable

  46. class ScenarioBecauseException extends ScenarioException

  47. trait ScenarioBuilder extends AnyRef

  48. case class ScenarioBuilderData(logger: TddLogger, arity: Int, depth: Int = 0, title: Option[String] = scala.None, description: Option[String] = scala.None, children: ReportableList = immutable.this.Nil, folder: Option[(FullR, R) ⇒ FullR], initialFoldValue: () ⇒ FullR, expected: Option[ROrException[R]] = scala.None, optCode: Option[EngineUniverse.Code] = scala.None, priority: Option[Int] = scala.None, documents: List[Document] = immutable.this.Nil, paramDetails: List[ParamDetail] = immutable.this.Nil, references: Set[Reference] = ...) extends BuilderNode with RequirementAndHolder with Product with Serializable

    This holds the data that the scenario builder is building.

  49. trait ScenarioBuilderDataAsReadableFields extends AnyRef

  50. class ScenarioConflictException extends ScenarioException

  51. class ScenarioConflictingWithDefaultException extends ScenarioException

  52. class ScenarioConflictingWithoutBecauseException extends ScenarioConflictException

  53. class ScenarioException extends EngineException

  54. class ScenarioResultException extends ScenarioException

  55. case class UseCaseDescription(textOrder: Int, title: Option[String] = scala.None, description: Option[String] = scala.None, children: List[Reportable] = immutable.this.Nil, expected: Option[ROrException[R]] = scala.None, optCode: Option[EngineUniverse.Code] = scala.None, priority: Option[Int] = scala.None, references: Set[Reference] = ...) extends BuilderNode with UseCase with ReportableWithTemplate with Product with Serializable

  56. 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 CannotDefineBecauseTwiceException extends Serializable

  8. object CannotDefineCodeTwiceException extends Serializable

  9. object CannotDefineDescriptionTwiceException extends Serializable

  10. object CannotDefineExpectedTwiceException extends Serializable

  11. object CannotDefineTitleTwiceException extends Serializable

  12. object CodeAndScenarios extends Serializable

  13. object DuplicateScenarioException extends Serializable

  14. object ExceptionScenarioPrinter

  15. object ExceptionWithoutCodeException extends Serializable

  16. object ExpectedValueGotException extends Serializable

  17. object NoExceptionThrownException extends Serializable

  18. object NoExpectedException extends Serializable

  19. object NodePath extends Serializable

  20. object PathPrinter

  21. object ScenarioConflictException extends Serializable

  22. object ScenarioConflictingWithDefaultException extends Serializable

  23. object ScenarioConflictingWithoutBecauseException extends Serializable

  24. object WrongExceptionThrownException extends Serializable

  25. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  26. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. def validateBecause(s: Scenario): Unit

  39. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from EngineTypes[R, FullR]

Inherited from AnyRef

Inherited from Any

Ungrouped