Package com.veeroute.lss.monitor.model
Class TripPenalties
java.lang.Object
com.veeroute.lss.monitor.model.TripPenalties
@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 TripPenalties
extends Object
Planning penalties - ability to disrupt a part of the planning business rules.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCompatibilitiesItem(CompatibilityPenalty compatibilitiesItem) compatibilities(Set<CompatibilityPenalty> compatibilities) booleanstatic TripPenaltiesCreate an instance of TripPenalties given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Penalties for violation of compatibility.The maximum allowable amount of fines for violating location's capacity limit.inthashCode()maxLocationsLimitsPenalty(Double maxLocationsLimitsPenalty) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCompatibilities(Set<CompatibilityPenalty> compatibilities) voidsetMaxLocationsLimitsPenalty(Double maxLocationsLimitsPenalty) toJson()Convert an instance of TripPenalties 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_COMPATIBILITIES
- See Also:
-
SERIALIZED_NAME_MAX_LOCATIONS_LIMITS_PENALTY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TripPenalties
public TripPenalties()
-
-
Method Details
-
compatibilities
-
addCompatibilitiesItem
-
getCompatibilities
Penalties for violation of compatibility. When taking into account transport-location compatibility violations, the penalty is applied for each stop and cannot exceed the `max_penalty_cost` of the performer assigned to the trip. Only the absence of a property is penalized; the time windows of the life of a property cannot be violated for a fine.- Returns:
- compatibilities
-
setCompatibilities
-
maxLocationsLimitsPenalty
-
getMaxLocationsLimitsPenalty
The maximum allowable amount of fines for violating location's capacity limit. minimum: 0 maximum: 1000000000- Returns:
- maxLocationsLimitsPenalty
-
setMaxLocationsLimitsPenalty
-
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 TripPenalties 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 TripPenalties
-
fromJson
Create an instance of TripPenalties given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TripPenalties
- Throws:
IOException- if the JSON string is invalid with respect to TripPenalties
-
toJson
Convert an instance of TripPenalties to an JSON string- Returns:
- JSON string
-