Package com.veeroute.lss.studio.model
Class PossibleEvent
java.lang.Object
com.veeroute.lss.studio.model.PossibleEvent
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-11-23T13:47:57.513559297+03:00[Europe/Moscow]",
comments="Generator version: 7.17.0")
public class PossibleEvent
extends Object
Possible event. Combines the geographical location and the time window, when a demand can be completed.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributesItem(Attribute attributesItem) attributes(Set<Attribute> attributes) contact(PossibleEventContact contact) booleanstatic PossibleEventCreate an instance of PossibleEvent given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Attributes.Get contactTime duration according to `P1DT2H12M34.2S`.A hard time window within which an event must occur.getKey()Event key, unique identifier.Location key, where this event is possible.Reward for completing this event.Get softTimeWindowhardTimeWindow(TimeWindow hardTimeWindow) inthashCode()locationKey(String locationKey) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAttributes(Set<Attribute> attributes) voidsetContact(PossibleEventContact contact) voidsetDuration(String duration) voidsetHardTimeWindow(TimeWindow hardTimeWindow) voidvoidsetLocationKey(String locationKey) voidvoidsetSoftTimeWindow(TimeWindow softTimeWindow) softTimeWindow(TimeWindow softTimeWindow) toJson()Convert an instance of PossibleEvent 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_KEY
- See Also:
-
SERIALIZED_NAME_LOCATION_KEY
- See Also:
-
SERIALIZED_NAME_DURATION
- See Also:
-
SERIALIZED_NAME_REWARD
- See Also:
-
SERIALIZED_NAME_HARD_TIME_WINDOW
- See Also:
-
SERIALIZED_NAME_SOFT_TIME_WINDOW
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
SERIALIZED_NAME_CONTACT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PossibleEvent
public PossibleEvent()
-
-
Method Details
-
key
-
getKey
Event key, unique identifier.- Returns:
- key
-
setKey
-
locationKey
-
getLocationKey
Location key, where this event is possible.- Returns:
- locationKey
-
setLocationKey
-
duration
-
getDuration
Time duration according to `P1DT2H12M34.2S`.- Returns:
- duration
-
setDuration
-
reward
-
getReward
Reward for completing this event. minimum: 0 maximum: 2000000000- Returns:
- reward
-
setReward
-
hardTimeWindow
-
getHardTimeWindow
A hard time window within which an event must occur. The window duration cannot be less than the `duration` of the event. Cannot be violated during planning.- Returns:
- hardTimeWindow
-
setHardTimeWindow
-
softTimeWindow
-
getSoftTimeWindow
Get softTimeWindow- Returns:
- softTimeWindow
-
setSoftTimeWindow
-
attributes
-
addAttributesItem
-
getAttributes
Attributes. Used to add service information.- Returns:
- attributes
-
setAttributes
-
contact
-
getContact
Get contact- Returns:
- contact
-
setContact
-
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 PossibleEvent 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 PossibleEvent
-
fromJson
Create an instance of PossibleEvent given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PossibleEvent
- Throws:
IOException- if the JSON string is invalid with respect to PossibleEvent
-
toJson
Convert an instance of PossibleEvent to an JSON string- Returns:
- JSON string
-