Package com.veeroute.lss.agro.model
Class AgroPlanTask
java.lang.Object
com.veeroute.lss.agro.model.AgroPlanTask
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-11-23T13:47:31.676214391+03:00[Europe/Moscow]",
comments="Generator version: 7.17.0")
public class AgroPlanTask
extends Object
Initial task.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCropsItem(Crop cropsItem) addElevatorsItem(Elevator elevatorsItem) addFactoriesItem(Factory factoriesItem) addFieldsItem(Field fieldsItem) addLeftoversItem(Leftover leftoversItem) addMarketsItem(Market marketsItem) addMovementMatrixItem(MovementMatrixElement movementMatrixItem) datasetName(String datasetName) booleanstatic AgroPlanTaskCreate an instance of AgroPlanTask given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getCrops()List of crops.The name of the dataset.List of elevators.List of factories.List of fields.List of leftovers.List of markets.Matrix describing the cost (in kilometers and monetary units) of moving grain between objects (in both directions).Get planSettingsinthashCode()movementMatrix(Set<MovementMatrixElement> movementMatrix) planSettings(AgroPlanSettings planSettings) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetDatasetName(String datasetName) voidsetElevators(Set<Elevator> elevators) voidsetFactories(Set<Factory> factories) voidvoidsetLeftovers(List<Leftover> leftovers) voidsetMarkets(Set<Market> markets) voidsetMovementMatrix(Set<MovementMatrixElement> movementMatrix) voidsetPlanSettings(AgroPlanSettings planSettings) toJson()Convert an instance of AgroPlanTask to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CROPS
- See Also:
-
SERIALIZED_NAME_FIELDS
- See Also:
-
SERIALIZED_NAME_ELEVATORS
- See Also:
-
SERIALIZED_NAME_FACTORIES
- See Also:
-
SERIALIZED_NAME_MARKETS
- See Also:
-
SERIALIZED_NAME_MOVEMENT_MATRIX
- See Also:
-
SERIALIZED_NAME_LEFTOVERS
- See Also:
-
SERIALIZED_NAME_PLAN_SETTINGS
- See Also:
-
SERIALIZED_NAME_DATASET_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AgroPlanTask
public AgroPlanTask()
-
-
Method Details
-
crops
-
addCropsItem
-
getCrops
List of crops.- Returns:
- crops
-
setCrops
-
fields
-
addFieldsItem
-
getFields
List of fields.- Returns:
- fields
-
setFields
-
elevators
-
addElevatorsItem
-
getElevators
List of elevators.- Returns:
- elevators
-
setElevators
-
factories
-
addFactoriesItem
-
getFactories
List of factories.- Returns:
- factories
-
setFactories
-
markets
-
addMarketsItem
-
getMarkets
List of markets.- Returns:
- markets
-
setMarkets
-
movementMatrix
-
addMovementMatrixItem
-
getMovementMatrix
Matrix describing the cost (in kilometers and monetary units) of moving grain between objects (in both directions). If there is no corresponding entry in the matrix between the objects, the movement of grain between them is considered impossible.- Returns:
- movementMatrix
-
setMovementMatrix
-
leftovers
-
addLeftoversItem
-
getLeftovers
List of leftovers.- Returns:
- leftovers
-
setLeftovers
-
planSettings
-
getPlanSettings
Get planSettings- Returns:
- planSettings
-
setPlanSettings
-
datasetName
-
getDatasetName
The name of the dataset. A technical field that does not affect calculation.- Returns:
- datasetName
-
setDatasetName
-
putAdditionalProperty
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 propertyvalue- value of the property- Returns:
- the AgroPlanTask instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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 AgroPlanTask
-
fromJson
Create an instance of AgroPlanTask given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AgroPlanTask
- Throws:
IOException- if the JSON string is invalid with respect to AgroPlanTask
-
toJson
Convert an instance of AgroPlanTask to an JSON string- Returns:
- JSON string
-