Class StopStatistics

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

@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 StopStatistics extends Object
Statistics for a specific stop during a trip.
  • Field Details

  • Constructor Details

    • StopStatistics

      public StopStatistics()
  • Method Details

    • locationKey

      public StopStatistics locationKey(@Nonnull String locationKey)
    • getLocationKey

      @Nonnull public String getLocationKey()
      Location key for stop.
      Returns:
      locationKey
    • setLocationKey

      public void setLocationKey(@Nonnull String locationKey)
    • stopDemands

      public StopStatistics stopDemands(@Nonnull List<StopDemand> stopDemands)
    • addStopDemandsItem

      public StopStatistics addStopDemandsItem(StopDemand stopDemandsItem)
    • getStopDemands

      @Nonnull public List<StopDemand> getStopDemands()
      List of orders completed at this stop.
      Returns:
      stopDemands
    • setStopDemands

      public void setStopDemands(@Nonnull List<StopDemand> stopDemands)
    • stopTimeWindow

      public StopStatistics stopTimeWindow(@Nonnull TimeWindow stopTimeWindow)
    • getStopTimeWindow

      @Nonnull public TimeWindow getStopTimeWindow()
      Stop time window - from the beginning of the parking lot to the complete departure from the location. The window duration is `waiting_time` + `working_time` + `break_time` + `rest_time` + `arriving_time` + `departure_time`.
      Returns:
      stopTimeWindow
    • setStopTimeWindow

      public void setStopTimeWindow(@Nonnull TimeWindow stopTimeWindow)
    • measurements

      public StopStatistics measurements(@Nonnull Measurements measurements)
    • getMeasurements

      @Nonnull public Measurements getMeasurements()
      Measurements of times and distances for work on location: * `time_window` - the time window from the start of movement to the stop until the end of the departure from the stop * `driving_time` - driving time from the previous stop to the current location * `waiting_time` - the duration of waiting for the execution of work at the location * `working_time` - the time spent on the direct execution of work at the location * `break_time` - duration of the performer's break * `rest_time` - duration of rest for the performer * `arriving_time` - the time spent on the entrance/parking at the location * `departure_time` - the time taken to leave the location * `total_time` - total time for a stop, composed of `driving_time` + `waiting_time` + `working_time` + `break_time` + `rest_time` + `arriving_time` + `departure_time` * `distance` - the distance from the previous stop to the current location
      Returns:
      measurements
    • setMeasurements

      public void setMeasurements(@Nonnull Measurements measurements)
    • upload

      public StopStatistics upload(@Nonnull TransportLoad upload)
    • getUpload

      @Nonnull public TransportLoad getUpload()
      Loading to the transport at this stop.
      Returns:
      upload
    • setUpload

      public void setUpload(@Nonnull TransportLoad upload)
    • download

      public StopStatistics download(@Nonnull TransportLoad download)
    • getDownload

      @Nonnull public TransportLoad getDownload()
      Unloading from the transport at this stop.
      Returns:
      download
    • setDownload

      public void setDownload(@Nonnull TransportLoad download)
    • maxLoad

      public StopStatistics maxLoad(@Nonnull TransportLoad maxLoad)
    • getMaxLoad

      @Nonnull public TransportLoad getMaxLoad()
      Maximum load of the transport in the process of loading/unloading at a stop.
      Returns:
      maxLoad
    • setMaxLoad

      public void setMaxLoad(@Nonnull TransportLoad maxLoad)
    • arrivalLoad

      public StopStatistics arrivalLoad(@Nonnull TransportLoad arrivalLoad)
    • getArrivalLoad

      @Nonnull public TransportLoad getArrivalLoad()
      Transport loading at the time of arrival at this stop.
      Returns:
      arrivalLoad
    • setArrivalLoad

      public void setArrivalLoad(@Nonnull TransportLoad arrivalLoad)
    • departureLoad

      public StopStatistics departureLoad(@Nonnull TransportLoad departureLoad)
    • getDepartureLoad

      @Nonnull public TransportLoad getDepartureLoad()
      Transport loading at the moment of departure from this stop.
      Returns:
      departureLoad
    • setDepartureLoad

      public void setDepartureLoad(@Nonnull TransportLoad departureLoad)
    • attributes

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

      public StopStatistics 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 StopStatistics 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 StopStatistics 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 StopStatistics
    • fromJson

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

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