TrafficFlowBase class abstract
This interface provides details about a traffic flow.
For additional information about fields, refer to Traffic API v7 API Reference: Traffic API v7.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
- Implementers
Constructors
- TrafficFlowBase(double freeFlowSpeedInMetersPerSecondGetLambda(), double jamFactorGetLambda())
-
This interface provides details about a traffic flow.
For additional information about fields, refer to Traffic API v7 API Reference: Traffic API v7.factory
Properties
- freeFlowSpeedInMetersPerSecond → double
-
The reference speed in meters per second along the roadway when no traffic is present.
Gets the reference speed in meters per second along the roadway when no traffic is present.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- jamFactor → double
-
A value for the amount of traffic on the roadway.
The value, between 0.0 and 10.0, indicate the expected quality of travel.
A value of 0.0 indicates that there is no congestion on the roadway.
As the value approaches 10.0, it indicates increasing congestion.
A value of 10.0 is reserved to represent a blocked roadway (closure).
Gets a value for the amount of traffic on the roadway.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited