Class PlanTask

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

@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 PlanTask extends Object
Task for planning
  • Field Details

  • Constructor Details

    • PlanTask

      public PlanTask()
  • Method Details

    • locations

      public PlanTask locations(@Nonnull Set<Location> locations)
    • addLocationsItem

      public PlanTask addLocationsItem(Location locationsItem)
    • getLocations

      @Nonnull public Set<Location> getLocations()
      List of locations used for orders and shifts.
      Returns:
      locations
    • setLocations

      public void setLocations(@Nonnull Set<Location> locations)
    • orders

      public PlanTask orders(@Nonnull Set<Order> orders)
    • addOrdersItem

      public PlanTask addOrdersItem(Order ordersItem)
    • getOrders

      @Nonnull public Set<Order> getOrders()
      List of orders that need to be completed.
      Returns:
      orders
    • setOrders

      public void setOrders(@Nonnull Set<Order> orders)
    • performers

      public PlanTask performers(@Nonnull Set<Performer> performers)
    • addPerformersItem

      public PlanTask addPerformersItem(Performer performersItem)
    • getPerformers

      @Nonnull public Set<Performer> getPerformers()
      Available performers list. The performer fulfills orders using transport.
      Returns:
      performers
    • setPerformers

      public void setPerformers(@Nonnull Set<Performer> performers)
    • transports

      public PlanTask transports(@Nonnull Set<Transport> transports)
    • addTransportsItem

      public PlanTask addTransportsItem(Transport transportsItem)
    • getTransports

      @Nonnull public Set<Transport> getTransports()
      Available transports list. Transport is used by the trip performer to fulfill orders.
      Returns:
      transports
    • setTransports

      public void setTransports(@Nonnull Set<Transport> transports)
    • hardlinks

      public PlanTask hardlinks(@Nullable Set<Hardlink> hardlinks)
    • addHardlinksItem

      public PlanTask addHardlinksItem(Hardlink hardlinksItem)
    • getHardlinks

      @Nullable public Set<Hardlink> getHardlinks()
      Assignments list.
      Returns:
      hardlinks
    • setHardlinks

      public void setHardlinks(@Nullable Set<Hardlink> hardlinks)
    • planSettings

      public PlanTask planSettings(@Nullable PlanSettings planSettings)
    • getPlanSettings

      @Nullable public PlanSettings getPlanSettings()
      Get planSettings
      Returns:
      planSettings
    • setPlanSettings

      public void setPlanSettings(@Nullable PlanSettings planSettings)
    • externalRouting

      public PlanTask externalRouting(@Nullable Set<RoutingTransportMatrix> externalRouting)
    • addExternalRoutingItem

      public PlanTask addExternalRoutingItem(RoutingTransportMatrix externalRoutingItem)
    • getExternalRouting

      @Nullable public Set<RoutingTransportMatrix> getExternalRouting()
      List of matrices of times and distances for each type of transport that are indicated in the data. The matrix should describe all locations for each type of transport from the data. When specifying an external routing matrix `external_routing`, the `plan_settings.geo_settings` parameters are not taken into account.
      Returns:
      externalRouting
    • setExternalRouting

      public void setExternalRouting(@Nullable Set<RoutingTransportMatrix> externalRouting)
    • datasetName

      public PlanTask datasetName(@Nullable String datasetName)
    • getDatasetName

      @Nullable public String getDatasetName()
      The name of the dataset. A technical field that does not affect calculation.
      Returns:
      datasetName
    • setDatasetName

      public void setDatasetName(@Nullable String datasetName)
    • putAdditionalProperty

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

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

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