-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class EHTrafficFlow implements Parcelable
This structure defines the traffic flow information.
-
-
Field Summary
Fields Modifier and Type Field Description private final EHDistancedistanceprivate final Floatlengthprivate final Integerlevelprivate final EHSpeedaverageSpeed
-
Constructor Summary
Constructors Constructor Description EHTrafficFlow(EHDistance distance, Float length, Integer level, EHSpeed averageSpeed)
-
Method Summary
Modifier and Type Method Description final EHDistancegetDistance()The distance information of the traffic flow. final FloatgetLength()Length in meters of this flow. final IntegergetLevel()The flow level of this traffic flow. final EHSpeedgetAverageSpeed()Average speed in km/h of all roads that affected by this traffic flow. -
-
Constructor Detail
-
EHTrafficFlow
EHTrafficFlow(EHDistance distance, Float length, Integer level, EHSpeed averageSpeed)
-
-
Method Detail
-
getDistance
final EHDistance getDistance()
The distance information of the traffic flow.
-
getLength
final Float getLength()
Length in meters of this flow. Default value is Float.MAX_VALUE which indicates invalid value.
-
getAverageSpeed
final EHSpeed getAverageSpeed()
Average speed in km/h of all roads that affected by this traffic flow.
-
-
-
-