WorldRuntime class final
The simulated reality for one world.
Constructors
- WorldRuntime(WorldManifest manifest, {WorldBinding binding = WorldBinding.world, int? seedOverride})
-
Create the runtime for
manifestunderbinding.
Properties
- binding → WorldBinding
-
final
- clock → VirtualClock
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- manifest → WorldManifest
-
final
-
plays
→ List<
WorldPlay> -
The play ledger (append-only, ordered).
no setter
- runDigest → String
-
The deterministic run digest: SHA-256 over the canonical JSON of
the play ledger (plus the world hash and seed — the digest names
WHICH world and WHICH time model produced the plays).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- virtualElapsedMs → int
-
Virtual milliseconds elapsed since the runtime was created.
no setter
Methods
-
executeScenario(
) → Future< List< BehaviorResult> > - Execute the manifest's behavior program, returning per-behavior results in declared order.
-
invoke(
String behaviorId, String touchpoint, String method, [Map< String, dynamic> args = const {}]) → Future -
Invoke
methodontouchpointwithargs, applying the world's latency, failure schedule, and corpus (or certified adapter). The invocation is recorded in the play ledger. -
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