EnvironmentAdapter class abstract

Pluggable interface for reading new observations from the environment.

Implement this to connect the agent to a real data source — a message queue, sensor feed, user input stream, or test fixture.

Implementers

Constructors

EnvironmentAdapter()

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.
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.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited