AutonomyAStarState class

Inheritance

Constructors

AutonomyAStarState({required GpsCoordinates position, required GpsCoordinates goal, required AutonomyInterface collection, required DriveDirection direction, required DriveOrientation orientation, required num depth})
AutonomyAStarState.start({required AutonomyInterface collection, required GpsCoordinates goal})
factory

Properties

collection → AutonomyInterface
final
depth → num
finalinherited
direction → DriveDirection
final
goal → GpsCoordinates
final
hashCode → int
The hash code for this object.
no setterinherited
orientation → DriveOrientation
final
position → GpsCoordinates
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({required DriveDirection direction, required DriveOrientation orientation, required GpsCoordinates position}) → AutonomyAStarState
expand() → Iterable<AutonomyAStarState>
Gets all possible states reachable from this state.
override
hash() → String
Determines a unique hash to represent this state.
override
heuristic() → double
The heuristic (estimated cost) of this state. See https://en.wikipedia.org/wiki/Heuristic_(computer_science).
override
isGoal() → bool
Whether this state is the goal state.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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