Class GeneralStatistics

java.lang.Object
com.veeroute.lss.monitor.model.GeneralStatistics

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-11-23T13:47:38.388455705+03:00[Europe/Moscow]", comments="Generator version: 7.17.0") public class GeneralStatistics extends Object
Summary statistics for one or a set of trips.
  • Field Details

  • Constructor Details

    • GeneralStatistics

      public GeneralStatistics()
  • Method Details

    • cost

      public GeneralStatistics cost(@Nonnull Double cost)
    • getCost

      @Nonnull public Double getCost()
      Total cost calculated based on the performer's and transport tariffs. minimum: 0 maximum: 1000000000000
      Returns:
      cost
    • setCost

      public void setCost(@Nonnull Double cost)
    • reward

      public GeneralStatistics reward(@Nonnull Double reward)
    • getReward

      @Nonnull public Double getReward()
      The total reward for orders fulfillment. minimum: 0 maximum: 1000000000000
      Returns:
      reward
    • setReward

      public void setReward(@Nonnull Double reward)
    • profit

      public GeneralStatistics profit(@Nonnull Double profit)
    • getProfit

      @Nonnull public Double getProfit()
      The total profit is equal to the difference between the total reward (`reward`) and cost (`cost`). minimum: -1000000000000 maximum: 1000000000000
      Returns:
      profit
    • setProfit

      public void setProfit(@Nonnull Double profit)
    • measurements

      public GeneralStatistics measurements(@Nonnull Measurements measurements)
    • getMeasurements

      @Nonnull public Measurements getMeasurements()
      Measurements of times and distances for aggregate and individual trips: * `time_window` - the start time of the first trip and the end time of the last, if there are no trips, the time of the left border of the planning horizon is returned, while the from \\ to fields have the same value * `driving_time` - duration of driving time * `waiting_time` - total waiting time for all locations * `working_time` - total time of work execution at all locations included in the trip * `break_time` - total break time for all locations * `rest_time` - total rest time for all locations * `arriving_time` - total time to drive / park at locations * `departure_time` - total time for departure from locations * `total_time` - total time, composed of `driving_time` + `waiting_time` + `working_time` + `break_time` + `rest_time` + `arriving_time` + `departure_time` * `distance` - the total length of the roundtrip/trip/set of trips, in meters
      Returns:
      measurements
    • setMeasurements

      public void setMeasurements(@Nonnull Measurements measurements)
    • tripsCount

      public GeneralStatistics tripsCount(@Nonnull Integer tripsCount)
    • getTripsCount

      @Nonnull public Integer getTripsCount()
      The total number of planned trips. minimum: 0 maximum: 15001
      Returns:
      tripsCount
    • setTripsCount

      public void setTripsCount(@Nonnull Integer tripsCount)
    • performersCount

      public GeneralStatistics performersCount(@Nonnull Integer performersCount)
    • getPerformersCount

      @Nonnull public Integer getPerformersCount()
      The total number of performers involved in orders fulfillment. minimum: 0 maximum: 15001
      Returns:
      performersCount
    • setPerformersCount

      public void setPerformersCount(@Nonnull Integer performersCount)
    • ordersCount

      public GeneralStatistics ordersCount(@Nonnull Integer ordersCount)
    • getOrdersCount

      @Nonnull public Integer getOrdersCount()
      The total number of planned and assigned orders. minimum: 0 maximum: 15001
      Returns:
      ordersCount
    • setOrdersCount

      public void setOrdersCount(@Nonnull Integer ordersCount)
    • planOrdersCount

      public GeneralStatistics planOrdersCount(@Nonnull Integer planOrdersCount)
    • getPlanOrdersCount

      @Nonnull public Integer getPlanOrdersCount()
      The total number of planned orders. minimum: 0 maximum: 15001
      Returns:
      planOrdersCount
    • setPlanOrdersCount

      public void setPlanOrdersCount(@Nonnull Integer planOrdersCount)
    • waitlistOrdersCount

      public GeneralStatistics waitlistOrdersCount(@Nonnull Integer waitlistOrdersCount)
    • getWaitlistOrdersCount

      @Nonnull public Integer getWaitlistOrdersCount()
      The total number of assigned orders. minimum: 0 maximum: 15001
      Returns:
      waitlistOrdersCount
    • setWaitlistOrdersCount

      public void setWaitlistOrdersCount(@Nonnull Integer waitlistOrdersCount)
    • stopsCount

      public GeneralStatistics stopsCount(@Nonnull Integer stopsCount)
    • getStopsCount

      @Nonnull public Integer getStopsCount()
      The total number of stops (non-unique locations). minimum: 0 maximum: 15001000
      Returns:
      stopsCount
    • setStopsCount

      public void setStopsCount(@Nonnull Integer stopsCount)
    • locationsCount

      public GeneralStatistics locationsCount(@Nonnull Integer locationsCount)
    • getLocationsCount

      @Nonnull public Integer getLocationsCount()
      The total number of unique locations within one trip. For general statistics - the sum of unique locations within each trip. minimum: 0 maximum: 15001000
      Returns:
      locationsCount
    • setLocationsCount

      public void setLocationsCount(@Nonnull Integer locationsCount)
    • cargoCapacitySum

      public GeneralStatistics cargoCapacitySum(@Nonnull CapacityStatisticsSum cargoCapacitySum)
    • getCargoCapacitySum

      @Nonnull public CapacityStatisticsSum getCargoCapacitySum()
      Total additive measures of the transported cargo.
      Returns:
      cargoCapacitySum
    • setCargoCapacitySum

      public void setCargoCapacitySum(@Nonnull CapacityStatisticsSum cargoCapacitySum)
    • cargoCapacityRatio

      public GeneralStatistics cargoCapacityRatio(@Nonnull CapacityStatisticsRatio cargoCapacityRatio)
    • getCargoCapacityRatio

      @Nonnull public CapacityStatisticsRatio getCargoCapacityRatio()
      The ratio of the total additive measures of the transported cargo to the total capacity of the boxes. In fractions of a unit. It may be more than one.
      Returns:
      cargoCapacityRatio
    • setCargoCapacityRatio

      public void setCargoCapacityRatio(@Nonnull CapacityStatisticsRatio cargoCapacityRatio)
    • maxTransportLoad

      public GeneralStatistics maxTransportLoad(@Nonnull CapacityStatisticsLoad maxTransportLoad)
    • getMaxTransportLoad

      @Nonnull public CapacityStatisticsLoad getMaxTransportLoad()
      The ratio of the maximum load of boxes to the total capacity of boxes. In fractions of a unit. Cannot be greater than one.
      Returns:
      maxTransportLoad
    • setMaxTransportLoad

      public void setMaxTransportLoad(@Nonnull CapacityStatisticsLoad maxTransportLoad)
    • averageSpeed

      public GeneralStatistics averageSpeed(@Nonnull Double averageSpeed)
    • getAverageSpeed

      @Nonnull public Double getAverageSpeed()
      Average speed is the ratio of the total distance to the total time of movement, km/h. minimum: 0 maximum: 1000000000000
      Returns:
      averageSpeed
    • setAverageSpeed

      public void setAverageSpeed(@Nonnull Double averageSpeed)
    • roundTripsCount

      public GeneralStatistics roundTripsCount(@Nonnull Integer roundTripsCount)
    • getRoundTripsCount

      @Nonnull public Integer getRoundTripsCount()
      Number of [roundtrips](#/section/description/round-trips) within a trip. minimum: 0 maximum: 15001
      Returns:
      roundTripsCount
    • setRoundTripsCount

      public void setRoundTripsCount(@Nonnull Integer roundTripsCount)
    • averageRoundtripDistance

      public GeneralStatistics averageRoundtripDistance(@Nonnull Double averageRoundtripDistance)
    • getAverageRoundtripDistance

      @Nonnull public Double getAverageRoundtripDistance()
      Average mileage per roundtrip is the ratio of the total mileage per trip to the number of roundtrips, in meters. minimum: 0 maximum: 1000000000000
      Returns:
      averageRoundtripDistance
    • setAverageRoundtripDistance

      public void setAverageRoundtripDistance(@Nonnull Double averageRoundtripDistance)
    • averageRoundtripTime

      public GeneralStatistics averageRoundtripTime(@Nonnull String averageRoundtripTime)
    • getAverageRoundtripTime

      @Nonnull public String getAverageRoundtripTime()
      Time duration according to `P1DT2H12M34.2S`.
      Returns:
      averageRoundtripTime
    • setAverageRoundtripTime

      public void setAverageRoundtripTime(@Nonnull String averageRoundtripTime)
    • attributes

      public GeneralStatistics attributes(@Nullable Set<Attribute> attributes)
    • addAttributesItem

      public GeneralStatistics addAttributesItem(Attribute attributesItem)
    • getAttributes

      @Nullable public Set<Attribute> getAttributes()
      Attributes. Used to add service information.
      Returns:
      attributes
    • setAttributes

      public void setAttributes(@Nullable Set<Attribute> attributes)
    • putAdditionalProperty

      public GeneralStatistics putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the GeneralStatistics instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to GeneralStatistics
    • fromJson

      public static GeneralStatistics fromJson(String jsonString) throws IOException
      Create an instance of GeneralStatistics given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of GeneralStatistics
      Throws:
      IOException - if the JSON string is invalid with respect to GeneralStatistics
    • toJson

      public String toJson()
      Convert an instance of GeneralStatistics to an JSON string
      Returns:
      JSON string