package state
- Alphabetic
- By Inheritance
- state
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait Action[S] extends AnyRef
An instantiation of a 'Command' which can be executed, and its effect evaluated.
- trait Command[S, I, O] extends CommandIO[S]
The specification for the expected behaviour of an
Action
. - trait CommandIO[S] extends AnyRef
Capture the
Input
andOutput
variables fromCommand
existentially.Capture the
Input
andOutput
variables fromCommand
existentially.FIXME If we can make the rest of the code play nicely with path-dependent types then we can remove this.
- case class Context[S](state: S, vars: SortedSet[Name]) extends Product with Serializable
- case class Environment(value: Map[Name, Any]) extends Product with Serializable
A mapping of symbolic values to concrete values.
- sealed trait EnvironmentError extends Exception
- sealed trait ExecutionError extends Exception
- case class Name(value: Int) extends Product with Serializable
Symbolic variable names.
- case class Parallel[S](prefix: List[Action[S]], branch1: List[Action[S]], branch2: List[Action[S]]) extends Product with Serializable
A sequential prefix of actions to execute, with two branches to execute in parallel.
- case class Var[A] extends Product with Serializable
Variables are the symbolic representation of executing an action.
Variables are the symbolic representation of executing an action. To lookup the actual result of an action you require an
Environment
, which is only accessible at specific stages of testing.The constructor is hidden to avoid users accidentally creating their own.
Value Members
- def parallel[S](prefixN: Range[Int], parallelN: Range[Int], initial: S, commands: List[CommandIO[S]], cleanup: () => Unit)(implicit E: ExecutionContext): Property
- def sequential[S](range: Range[Int], initial: S, commands: List[CommandIO[S]], cleanup: () => Unit): Property
- object Action
- object Context extends Serializable
- object EnvironmentError extends Serializable
- object ExecutionError extends Serializable
- object Name extends Serializable
- object Runner
- object Var extends Serializable