Package com.veeroute.lss.monitor.model
Class TripState
java.lang.Object
com.veeroute.lss.monitor.model.TripState
@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 TripState
extends Object
Trip state.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributesItem(Attribute attributesItem) addCargoActionsItem(CargoAction cargoActionsItem) addFlagsItem(TripStateFlag flagsItem) attributes(Set<Attribute> attributes) cargoActions(List<CargoAction> cargoActions) booleanflags(Set<TripStateFlag> flags) static TripStateCreate an instance of TripState given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Attributes.List of actions with cargo in transport at the beginning of the state.getCost()Cumulative cost from the start of the trip, calculated based on the performers' and transport tariffs.Key of the demand with which an action is taken.Cumulative distance from the start of the trip, in meters.Key of the event at which an action is taken.getFlags()List of flags, describing current state.Key of the location at which an action is taken.Key of the order with which an action is taken.Cumulative reward from the start of the trip for orders fulfillment.Key of the roundtrip at which an action is taken.getTime()Start time according to the [ISO 8601](https://tools.ietf.org/html/rfc3339#section-5.6).inthashCode()locationKey(String locationKey) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.roundtripKey(String roundtripKey) voidsetAttributes(Set<Attribute> attributes) voidsetCargoActions(List<CargoAction> cargoActions) voidvoidsetDemandKey(String demandKey) voidsetDistance(Integer distance) voidsetEventKey(String eventKey) voidsetFlags(Set<TripStateFlag> flags) voidsetLocationKey(String locationKey) voidsetOrderKey(String orderKey) voidvoidsetRoundtripKey(String roundtripKey) voidsetTime(OffsetDateTime time) time(OffsetDateTime time) toJson()Convert an instance of TripState 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_TIME
- See Also:
-
SERIALIZED_NAME_ORDER_KEY
- See Also:
-
SERIALIZED_NAME_DEMAND_KEY
- See Also:
-
SERIALIZED_NAME_EVENT_KEY
- See Also:
-
SERIALIZED_NAME_LOCATION_KEY
- See Also:
-
SERIALIZED_NAME_ROUNDTRIP_KEY
- See Also:
-
SERIALIZED_NAME_FLAGS
- See Also:
-
SERIALIZED_NAME_CARGO_ACTIONS
- See Also:
-
SERIALIZED_NAME_DISTANCE
- See Also:
-
SERIALIZED_NAME_COST
- See Also:
-
SERIALIZED_NAME_REWARD
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TripState
public TripState()
-
-
Method Details
-
time
-
getTime
Start time according to the [ISO 8601](https://tools.ietf.org/html/rfc3339#section-5.6).- Returns:
- time
-
setTime
-
orderKey
-
getOrderKey
Key of the order with which an action is taken.- Returns:
- orderKey
-
setOrderKey
-
demandKey
-
getDemandKey
Key of the demand with which an action is taken.- Returns:
- demandKey
-
setDemandKey
-
eventKey
-
getEventKey
Key of the event at which an action is taken.- Returns:
- eventKey
-
setEventKey
-
locationKey
-
getLocationKey
Key of the location at which an action is taken.- Returns:
- locationKey
-
setLocationKey
-
roundtripKey
-
getRoundtripKey
Key of the roundtrip at which an action is taken.- Returns:
- roundtripKey
-
setRoundtripKey
-
flags
-
addFlagsItem
-
getFlags
List of flags, describing current state. Values of flags responsible for geographic location (there can be several flags at the same time): * `AROUND_LOCATION` - the performer is near the location - in the process of parking or leaving it. * `INSIDE_LOCATION` - the performer is at the location. Values of flags responsible for being in time windows (there can be several flags at the same time): * `INSIDE_WORKING_WINDOW` - the performer is inside the working time window. * `INSIDE_LOCATION_WINDOW` - the performer is inside the working time of the location. * `INSIDE_EVENT_HARD_WINDOW` - the performer is inside the hard time window. * `INSIDE_EVENT_SOFT_WINDOW` - the performer is inside the soft time window. Values of flags responsible for actions (there can be only one flag at a time): * `ON_DEMAND` - the performer has started working on the request. * `WAITING` - the performer has started waiting. * `RELOCATING` - the performer has started moving to the next stop. * `BREAK` - the performer has started a break. * `REST` - the performer has started a long rest. * `ARRIVAL` - the performer has started parking. * `DEPARTURE` - the performer has finished leaving the parking lot. The values of the flags responsible for the logical state: * `DURING_ROUNDTRIP` - the performer is making a roundtrip.- Returns:
- flags
-
setFlags
-
cargoActions
-
addCargoActionsItem
-
getCargoActions
List of actions with cargo in transport at the beginning of the state.- Returns:
- cargoActions
-
setCargoActions
-
distance
-
getDistance
Cumulative distance from the start of the trip, in meters. minimum: 0 maximum: 4000000000- Returns:
- distance
-
setDistance
-
cost
-
getCost
Cumulative cost from the start of the trip, calculated based on the performers' and transport tariffs. minimum: 0 maximum: 10000000000- Returns:
- cost
-
setCost
-
reward
-
getReward
Cumulative reward from the start of the trip for orders fulfillment. minimum: 0 maximum: 10000000000- Returns:
- reward
-
setReward
-
attributes
-
addAttributesItem
-
getAttributes
Attributes. Used to add service information.- Returns:
- attributes
-
setAttributes
-
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 TripState 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 TripState
-
fromJson
Create an instance of TripState given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TripState
- Throws:
IOException- if the JSON string is invalid with respect to TripState
-
toJson
Convert an instance of TripState to an JSON string- Returns:
- JSON string
-