Package com.sentilant.telematicssdk
Class TelematicsMetricsSummary
java.lang.Object
com.sentilant.telematicssdk.TelematicsMetricsSummary
- All Implemented Interfaces:
Serializable
Represents a summary of telematics metrics.
This class provides an overview of trips, distance, duration, speeds, event counts, and driving scores
collected during a specific period.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for TelematicsMetricsSummary. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the average speed across all trips.Gets the driving scores summary for all trips.getEndTs()Gets the counts of various events that occurred during all trips.doubleGets the maximum altitude recorded during all trips.doubleGets the maximum speed recorded during all trips.doubleGets the total CO2 emissions of all trips combined.doubleGets the total distance covered across all trips.doubleGets the total driving distance covered across all trips.doubleGets the total driving duration of all trips combined.doubleGets the total duration of all trips combined.intGets the total number of trips.toString()Provides a string representation of the TelematicsMetricsSummary.
-
Constructor Details
-
TelematicsMetricsSummary
public TelematicsMetricsSummary()Default constructor for TelematicsMetricsSummary.
-
-
Method Details
-
getTotalTrips
public int getTotalTrips()Gets the total number of trips.- Returns:
- The total number of trips.
-
getTotalDistance
public double getTotalDistance()Gets the total distance covered across all trips.- Returns:
- The total distance in kilometers.
-
getTotalDrivingDistance
public double getTotalDrivingDistance()Gets the total driving distance covered across all trips.- Returns:
- The total distance in kilometers.
-
getTotalDuration
public double getTotalDuration()Gets the total duration of all trips combined.- Returns:
- The total duration in seconds.
-
getTotalDrivingDuration
public double getTotalDrivingDuration()Gets the total driving duration of all trips combined.- Returns:
- The total duration in seconds.
-
getTotalCo2Emissions
public double getTotalCo2Emissions()Gets the total CO2 emissions of all trips combined.- Returns:
- The total CO2 emissions in kg.
-
getAverageSpeed
public double getAverageSpeed()Gets the average speed across all trips.- Returns:
- The average speed in kilometers per hour.
-
getMaxSpeed
public double getMaxSpeed()Gets the maximum speed recorded during all trips.- Returns:
- The maximum speed in kilometers per hour.
-
getMaxAltitude
public double getMaxAltitude()Gets the maximum altitude recorded during all trips.- Returns:
- The maximum altitude in meters.
-
getEventCounts
Gets the counts of various events that occurred during all trips.- Returns:
- An instance of
TelematicsEventCountscontaining the event counts.
-
getDrivingScores
Gets the driving scores summary for all trips.- Returns:
- An instance of
TelematicsDrivingScorescontaining the driving scores.
-
getStartTs
-
getEndTs
-
toString
Provides a string representation of the TelematicsMetricsSummary.
-