/** * Copyright (C) 2011 Brian Ferris <bdferris@onebusaway.org> * * 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 org.onebusaway.api.model.transit.tripplanning; import java.util.List; import org.onebusaway.api.model.transit.CoordinatePointV2Bean; public class LegV2Bean { private long startTime; private long endTime; private CoordinatePointV2Bean from; private CoordinatePointV2Bean to; private double distance; private String mode; private TransitLegV2Bean transitLeg; private List<StreetLegV2Bean> streetLegs; public long getStartTime() { return startTime; } public void setStartTime(long startTime) { this.startTime = startTime; } public long getEndTime() { return endTime; } public void setEndTime(long endTime) { this.endTime = endTime; } public CoordinatePointV2Bean getFrom() { return from; } public void setFrom(CoordinatePointV2Bean from) { this.from = from; } public CoordinatePointV2Bean getTo() { return to; } public void setTo(CoordinatePointV2Bean to) { this.to = to; } public double getDistance() { return distance; } public void setDistance(double distance) { this.distance = distance; } public String getMode() { return mode; } public void setMode(String mode) { this.mode = mode; } public TransitLegV2Bean getTransitLeg() { return transitLeg; } public void setTransitLeg(TransitLegV2Bean transitLeg) { this.transitLeg = transitLeg; } public List<StreetLegV2Bean> getStreetLegs() { return streetLegs; } public void setStreetLegs(List<StreetLegV2Bean> streetLegs) { this.streetLegs = streetLegs; } }