
org.opentripplanner.street.model.edge.AreaEdgeBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
The newest version!
package org.opentripplanner.street.model.edge;
import org.opentripplanner.street.model.vertex.IntersectionVertex;
public class AreaEdgeBuilder extends StreetEdgeBuilder {
private AreaEdgeList area;
@Override
public AreaEdge buildAndConnect() {
return Edge.connectToGraph(new AreaEdge(this));
}
@Override
public IntersectionVertex fromVertex() {
return (IntersectionVertex) super.fromVertex();
}
@Override
public IntersectionVertex toVertex() {
return (IntersectionVertex) super.toVertex();
}
public AreaEdgeList area() {
return area;
}
public AreaEdgeBuilder withArea(AreaEdgeList area) {
this.area = area;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy