Loading...
Searching...
No Matches
RouteNode Class Reference

Class describing one node of the evaluated route. More...

Public Member Functions

 RouteNode (this.point, this.weight, this.distance, this.events)
 Default constructor.
 

Public Attributes

LocationPoint point
 Location point of this node.
 
double weight
 Route cost/weight value at this node.
 
double distance
 Distance from route start to this node (meters).
 
List< RouteEventevents
 Events associated with this node.
 

Detailed Description

Class describing one node of the evaluated route.

Referenced from RoutePath.

Definition at line 23 of file route_node.dart.

Constructor & Destructor Documentation

◆ RouteNode()

RouteNode.RouteNode ( this. point,
this. weight,
this. distance,
this. events )

Default constructor.

Member Data Documentation

◆ distance

double RouteNode.distance

Distance from route start to this node (meters).

Dart code snippet:

double distance = node.distance;
print("Node distance: $distance meters");

Definition at line 58 of file route_node.dart.

◆ events

List<RouteEvent> RouteNode.events

Events associated with this node.

Dart code snippet:

List<RouteEvent> events = node.events;
print("Node has ${events.length} events");
for (final event in events) {
_demonstrateRouteEventUsage(event);
}

Definition at line 69 of file route_node.dart.

◆ point

LocationPoint RouteNode.point

Location point of this node.

Dart code snippet:

LocationPoint point = node.point;
_demonstrateLocationPointUsage(point);

Definition at line 36 of file route_node.dart.

◆ weight

double RouteNode.weight

Route cost/weight value at this node.

Dart code snippet:

double weight = node.weight;
print("Node weight: $weight");

Definition at line 47 of file route_node.dart.


The documentation for this class was generated from the following file: