MockEnvironmentAdapter class
A programmable EnvironmentAdapter for testing.
Pre-load observations before running the agent; they are delivered
one batch per poll() call.
- Implemented types
Constructors
-
MockEnvironmentAdapter({List<
List< ? batches})AgentObservation> >
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> -
Optional cleanup hook called when the loop terminates.
override
-
enqueue(
List< AgentObservation> observations) → void -
Queues a batch of
observationsto be returned on the next poll(). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
poll(
) → Future< List< AgentObservation> > -
Returns the most recent observations since the last call.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited