
org.opentripplanner.client.parameters.InputTriangle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp-client Show documentation
Show all versions of otp-client Show documentation
Java client for the OpenTripPlanner GraphQL API
package org.opentripplanner.client.parameters;
public class InputTriangle {
float safetyFactor;
float slopeFactor;
float timeFactor;
public InputTriangle(float safetyFactor, float slopeFactor, float timeFactor) {
this.safetyFactor = safetyFactor;
this.slopeFactor = slopeFactor;
this.timeFactor = timeFactor;
}
public static InputTriangleBuilder builder() {
return new InputTriangleBuilder();
}
@Override
public String toString() {
String safetyFactorString = String.format("safetyFactor: %f", safetyFactor);
String slopeFactorString = String.format("slopeFactor: %f", slopeFactor);
String timeFactorString = String.format("timeFactor: %f", timeFactor);
return String.format("{%s %s %s}", safetyFactorString, slopeFactorString, timeFactorString);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy