TestLoop class final
A loop that writes down the phases, systems and assimilations added to it, and runs nothing.
It refuses what the engine's loop refuses by name: a name already taken (NameTakenException) and, through a plugin's view, a name outside the plugin's namespace (PluginException). It orders nothing and checks no constraint.
- Inheritance
-
- Object
- PluginRegistry
- LoopRegistry
- TestLoop
Constructors
- TestLoop()
- An empty loop.
Properties
-
assimilations
→ Map<
String, Assimilation> -
The assimilations added, by name, in the order they were.
no setter
-
companions
→ Iterable<
PluginRegistry> -
The registries that come with this one, found by
PluginHost.registryas if each had been handed to the host itself.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
phases
→ List<
TestPhase> -
The phases added, in the order they were.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
systems
→ Map<
String, TestSystem> -
The systems added, by name, in the order they were.
no setter
Methods
-
addAssimilation(
String name, Assimilation assimilation, {List< String> after = const <String>[], List<String> before = const <String>[]}) → Registration -
Adds
assimilationto the step undername, unique in the loop: it runs in the LoopPhase.input phase of every step, after the step's input is in place, and is handed the ExternalStateInputs fed in for that step. Ordered against the phase's systems byafter/before.override -
addPhase(
LoopPhase phase, {List< String> after = const <String>[], List<String> before = const <String>[]}) → Registration -
Adds a phase of its own kind, ordered against the others by
after/before, which name phases of the same kind.override -
addSystem(
String name, LoopPhase phase, LoopSystem system, {SystemSettings settings = const SystemSettings()}) → Registration -
Adds
systemtophaseundername, unique in the loop, ordered against the phase's other systems bysettings'after/before.override -
forPlugin(
PluginScope scope) → LoopRegistry -
This registry as
scope's plugin sees it: everything registered through the result is tracked byscope, ranked by it, and checked against its manifest. Must return the same type the registry is looked up by.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited