Class PlanResult

java.lang.Object
com.veeroute.lss.universal.model.PlanResult

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-11-23T13:48:07.156941043+03:00[Europe/Moscow]", comments="Generator version: 7.17.0") public class PlanResult extends Object
Plan result. It can be intermediate (during the calculation process) and complete (after the calculation is completed).
  • Field Details

  • Constructor Details

    • PlanResult

      public PlanResult()
  • Method Details

    • tracedata

      public PlanResult tracedata(@Nonnull Tracedata tracedata)
    • getTracedata

      @Nonnull public Tracedata getTracedata()
      Get tracedata
      Returns:
      tracedata
    • setTracedata

      public void setTracedata(@Nonnull Tracedata tracedata)
    • trips

      public PlanResult trips(@Nonnull Set<Trip> trips)
    • addTripsItem

      public PlanResult addTripsItem(Trip tripsItem)
    • getTrips

      @Nonnull public Set<Trip> getTrips()
      Trip list. A trip is a set of works planned to be performed by a specific performer on a specific transport, expressed through a [change in the states](#/section/description/trip-model) of the performer.
      Returns:
      trips
    • setTrips

      public void setTrips(@Nonnull Set<Trip> trips)
    • statistics

      public PlanResult statistics(@Nullable PlanStatistics statistics)
    • getStatistics

      @Nullable public PlanStatistics getStatistics()
      Get statistics
      Returns:
      statistics
    • setStatistics

      public void setStatistics(@Nullable PlanStatistics statistics)
    • additionalAttributes

      public PlanResult additionalAttributes(@Nullable AdditionalAttributes additionalAttributes)
    • getAdditionalAttributes

      @Nullable public AdditionalAttributes getAdditionalAttributes()
      Get additionalAttributes
      Returns:
      additionalAttributes
    • setAdditionalAttributes

      public void setAdditionalAttributes(@Nullable AdditionalAttributes additionalAttributes)
    • warnings

      public PlanResult warnings(@Nullable List<EntityWarning> warnings)
    • addWarningsItem

      public PlanResult addWarningsItem(EntityWarning warningsItem)
    • getWarnings

      @Nullable public List<EntityWarning> getWarnings()
      Warning list.
      Returns:
      warnings
    • setWarnings

      public void setWarnings(@Nullable List<EntityWarning> warnings)
    • unplannedItems

      public PlanResult unplannedItems(@Nullable UnplannedItems unplannedItems)
    • getUnplannedItems

      @Nullable public UnplannedItems getUnplannedItems()
      Get unplannedItems
      Returns:
      unplannedItems
    • setUnplannedItems

      public void setUnplannedItems(@Nullable UnplannedItems unplannedItems)
    • removedItems

      public PlanResult removedItems(@Nullable RemovedItems removedItems)
    • getRemovedItems

      @Nullable public RemovedItems getRemovedItems()
      Get removedItems
      Returns:
      removedItems
    • setRemovedItems

      public void setRemovedItems(@Nullable RemovedItems removedItems)
    • calculationProgress

      public PlanResult calculationProgress(@Nonnull Integer calculationProgress)
    • getCalculationProgress

      @Nonnull public Integer getCalculationProgress()
      Calculation progress as a percentage. The progress displays the current number of completed steps. minimum: 0 maximum: 100
      Returns:
      calculationProgress
    • setCalculationProgress

      public void setCalculationProgress(@Nonnull Integer calculationProgress)
    • calculationInfo

      public PlanResult calculationInfo(@Nonnull CalculationInfo calculationInfo)
    • getCalculationInfo

      @Nonnull public CalculationInfo getCalculationInfo()
      Get calculationInfo
      Returns:
      calculationInfo
    • setCalculationInfo

      public void setCalculationInfo(@Nonnull CalculationInfo calculationInfo)
    • putAdditionalProperty

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

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

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