Class TelematicsMetricsSummary

java.lang.Object
com.sentilant.telematicssdk.TelematicsMetricsSummary
All Implemented Interfaces:
Serializable

public class TelematicsMetricsSummary extends Object implements 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 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

      public TelematicsEventCounts getEventCounts()
      Gets the counts of various events that occurred during all trips.
      Returns:
      An instance of TelematicsEventCounts containing the event counts.
    • getDrivingScores

      public TelematicsDrivingScores getDrivingScores()
      Gets the driving scores summary for all trips.
      Returns:
      An instance of TelematicsDrivingScores containing the driving scores.
    • getStartTs

      public String getStartTs()
    • getEndTs

      public String getEndTs()
    • toString

      @NonNull public String toString()
      Provides a string representation of the TelematicsMetricsSummary.
      Overrides:
      toString in class Object
      Returns:
      A string summarizing the telematics metrics.