Mapper class
Handles interaction between tracking and graphs
Constructors
- Mapper(Calculator calculator, Filter filter, EpitaphGraph graph, Building building)
-
factory
Properties
- accuracy → double
-
no setterinherited
- calculatedPosition → Point
-
no setterinherited
- currentEdge ↔ EpitaphEdge?
-
Current edge associated with current position
getter/setter pair
- filteredPosition → Point
-
no setterinherited
- finalPosition → Point
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- inArea → bool
-
no setter
- mappedPosition → Point
-
no setter
- path ↔ Path
-
Path to current destination
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
calculatePosition(
List< Beacon> beacons) → Point -
Calculates the user's position using a list of known Points
inherited
-
closeToDestination(
[int pathLength = 3, double distance = 2]) → bool - Indicates if current position is close enough to current destination
-
determineShortestPath(
String destination, [String? start]) → void -
Sets the path to the shortest path from
start
todestination
-
distanceToDestination(
[Point? start]) → double - Returns the Euclidean distance from the user's position to the final destination
-
filterPosition(
[Point? position]) → Point -
Filter calculated position
inherited
-
getClosestEdge(
[Vector? position, List< EpitaphEdge> ? edges]) → EpitaphEdge -
Returns the closest edge (in
edges
) fromposition
-
getShortestPath(
String destination, [String? start]) → Path -
Engages Dijkstra and returns the shortest path from
start
todestination
-
initiateFirstScan(
List< Beacon> beacons) → void -
inherited
-
initiateTrackingCycle(
List< Beacon> beacons) → void -
calling this engages the positioning system
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onSavedEdge(
) → bool - Checks if current edge equals saved edge
-
reset(
) → void -
Resets the members of this class to their original value.
inherited
-
saveCurrentEdge(
) → void - Saves current edge
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited