Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* Route Optimization API
* Our Route Optimization API solves the so called vehicle routing problem fast. It calculates an optimal tour for a set of vehicles, services and constraints
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.graphhopper.routeopt.client.model;
import java.util.Objects;
import com.google.gson.annotations.SerializedName;
import com.graphhopper.routeopt.client.model.Address;
import com.graphhopper.routeopt.client.model.TimeWindow;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Service
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-09-22T09:15:07.913+02:00")
public class Service {
@SerializedName("id")
private String id = null;
/**
* type of service
*/
public enum TypeEnum {
@SerializedName("service")
SERVICE("service"),
@SerializedName("pickup")
PICKUP("pickup"),
@SerializedName("delivery")
DELIVERY("delivery");
private String value;
TypeEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
}
@SerializedName("type")
private TypeEnum type = null;
@SerializedName("priority")
private Integer priority = null;
@SerializedName("name")
private String name = null;
@SerializedName("address")
private Address address = null;
@SerializedName("duration")
private Long duration = null;
@SerializedName("time_windows")
private List timeWindows = new ArrayList();
@SerializedName("size")
private List size = new ArrayList();
@SerializedName("required_skills")
private List requiredSkills = new ArrayList();
@SerializedName("allowed_vehicles")
private List allowedVehicles = new ArrayList();
public Service id(String id) {
this.id = id;
return this;
}
/**
* Unique identifier of service
* @return id
**/
@ApiModelProperty(example = "null", value = "Unique identifier of service")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Service type(TypeEnum type) {
this.type = type;
return this;
}
/**
* type of service
* @return type
**/
@ApiModelProperty(example = "null", value = "type of service")
public TypeEnum getType() {
return type;
}
public void setType(TypeEnum type) {
this.type = type;
}
public Service priority(Integer priority) {
this.priority = priority;
return this;
}
/**
* priority of service, i.e. 1 = high, 2 = normal, 3 = low. default is 2.
* @return priority
**/
@ApiModelProperty(example = "null", value = "priority of service, i.e. 1 = high, 2 = normal, 3 = low. default is 2.")
public Integer getPriority() {
return priority;
}
public void setPriority(Integer priority) {
this.priority = priority;
}
public Service name(String name) {
this.name = name;
return this;
}
/**
* name of service
* @return name
**/
@ApiModelProperty(example = "null", value = "name of service")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Service address(Address address) {
this.address = address;
return this;
}
/**
* Get address
* @return address
**/
@ApiModelProperty(example = "null", value = "")
public Address getAddress() {
return address;
}
public void setAddress(Address address) {
this.address = address;
}
public Service duration(Long duration) {
this.duration = duration;
return this;
}
/**
* duration of service, i.e. time in ms the corresponding activity takes
* @return duration
**/
@ApiModelProperty(example = "null", value = "duration of service, i.e. time in ms the corresponding activity takes")
public Long getDuration() {
return duration;
}
public void setDuration(Long duration) {
this.duration = duration;
}
public Service timeWindows(List timeWindows) {
this.timeWindows = timeWindows;
return this;
}
public Service addTimeWindowsItem(TimeWindow timeWindowsItem) {
this.timeWindows.add(timeWindowsItem);
return this;
}
/**
* array of time windows. currently, only a single time window is allowed
* @return timeWindows
**/
@ApiModelProperty(example = "null", value = "array of time windows. currently, only a single time window is allowed")
public List getTimeWindows() {
return timeWindows;
}
public void setTimeWindows(List timeWindows) {
this.timeWindows = timeWindows;
}
public Service size(List size) {
this.size = size;
return this;
}
public Service addSizeItem(Integer sizeItem) {
this.size.add(sizeItem);
return this;
}
/**
* array of capacity dimensions
* @return size
**/
@ApiModelProperty(example = "null", value = "array of capacity dimensions")
public List getSize() {
return size;
}
public void setSize(List size) {
this.size = size;
}
public Service requiredSkills(List requiredSkills) {
this.requiredSkills = requiredSkills;
return this;
}
public Service addRequiredSkillsItem(String requiredSkillsItem) {
this.requiredSkills.add(requiredSkillsItem);
return this;
}
/**
* array of required skills
* @return requiredSkills
**/
@ApiModelProperty(example = "null", value = "array of required skills")
public List getRequiredSkills() {
return requiredSkills;
}
public void setRequiredSkills(List requiredSkills) {
this.requiredSkills = requiredSkills;
}
public Service allowedVehicles(List allowedVehicles) {
this.allowedVehicles = allowedVehicles;
return this;
}
public Service addAllowedVehiclesItem(String allowedVehiclesItem) {
this.allowedVehicles.add(allowedVehiclesItem);
return this;
}
/**
* array of allowed vehicle ids
* @return allowedVehicles
**/
@ApiModelProperty(example = "null", value = "array of allowed vehicle ids")
public List getAllowedVehicles() {
return allowedVehicles;
}
public void setAllowedVehicles(List allowedVehicles) {
this.allowedVehicles = allowedVehicles;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Service service = (Service) o;
return Objects.equals(this.id, service.id) &&
Objects.equals(this.type, service.type) &&
Objects.equals(this.priority, service.priority) &&
Objects.equals(this.name, service.name) &&
Objects.equals(this.address, service.address) &&
Objects.equals(this.duration, service.duration) &&
Objects.equals(this.timeWindows, service.timeWindows) &&
Objects.equals(this.size, service.size) &&
Objects.equals(this.requiredSkills, service.requiredSkills) &&
Objects.equals(this.allowedVehicles, service.allowedVehicles);
}
@Override
public int hashCode() {
return Objects.hash(id, type, priority, name, address, duration, timeWindows, size, requiredSkills, allowedVehicles);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Service {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" address: ").append(toIndentedString(address)).append("\n");
sb.append(" duration: ").append(toIndentedString(duration)).append("\n");
sb.append(" timeWindows: ").append(toIndentedString(timeWindows)).append("\n");
sb.append(" size: ").append(toIndentedString(size)).append("\n");
sb.append(" requiredSkills: ").append(toIndentedString(requiredSkills)).append("\n");
sb.append(" allowedVehicles: ").append(toIndentedString(allowedVehicles)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}