
org.opentripplanner.street.model.edge.AreaEdgeBuilder Maven / Gradle / Ivy
The newest version!
package org.opentripplanner.street.model.edge;
import org.opentripplanner.street.model.vertex.IntersectionVertex;
public class AreaEdgeBuilder extends StreetEdgeBuilder {
private AreaGroup 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 AreaGroup area() {
return area;
}
public AreaEdgeBuilder withArea(AreaGroup area) {
this.area = area;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy