/*
* Copyright 2012 University of South Florida
*
* 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 edu.usf.cutr.opentripplanner.android.model;
import com.google.android.gms.maps.model.LatLng;
import org.opentripplanner.api.model.Itinerary;
import org.opentripplanner.api.model.Leg;
import java.io.Serializable;
import java.util.List;
/**
* @author Khoa Tran
*/
public class OTPBundle implements Serializable {
private String toText, fromText;
private int optimization, travelMode;
private LatLng startLocation, endLocation;
private List<Leg> currentItinerary;
private List<Itinerary> itineraryList;
private int currentItineraryIndex;
private int currentStepIndex;
private boolean fromInfoWindow = false;
public OTPBundle() {
}
/**
* @return the toText
*/
public String getToText() {
return toText;
}
/**
* @param toText the toText to set
*/
public void setToText(String toText) {
this.toText = toText;
}
/**
* @return the fromText
*/
public String getFromText() {
return fromText;
}
/**
* @param fromText the fromText to set
*/
public void setFromText(String fromText) {
this.fromText = fromText;
}
/**
* @return the optimization
*/
public int getOptimization() {
return optimization;
}
/**
* @param optimization the optimization to set
*/
public void setOptimization(int optimization) {
this.optimization = optimization;
}
/**
* @return the travelMode
*/
public int getTravelMode() {
return travelMode;
}
/**
* @param travelMode the travelMode to set
*/
public void setTravelMode(int travelMode) {
this.travelMode = travelMode;
}
/**
* @return the startLocation
*/
public LatLng getStartLocation() {
return startLocation;
}
/**
* @param startLocation the startLocation to set
*/
public void setStartLocation(LatLng startLocation) {
this.startLocation = startLocation;
}
/**
* @return the endLocation
*/
public LatLng getEndLocation() {
return endLocation;
}
/**
* @param endLocation the endLocation to set
*/
public void setEndLocation(LatLng endLocation) {
this.endLocation = endLocation;
}
/**
* @return the currentItinerary
*/
public List<Leg> getCurrentItinerary() {
return currentItinerary;
}
/**
* @param currentItinerary the currentItinerary to set
*/
public void setCurrentItinerary(List<Leg> currentItinerary) {
this.currentItinerary = currentItinerary;
}
/**
* @return the itineraryList
*/
public List<Itinerary> getItineraryList() {
return itineraryList;
}
/**
* @param itineraryList the itineraryList to set
*/
public void setItineraryList(List<Itinerary> itineraryList) {
this.itineraryList = itineraryList;
}
/**
* @return the currentItineraryIndex
*/
public int getCurrentItineraryIndex() {
return currentItineraryIndex;
}
/**
* @param currentItineraryIndex the currentItineraryIndex to set
*/
public void setCurrentItineraryIndex(int currentItineraryIndex) {
this.currentItineraryIndex = currentItineraryIndex;
}
public int getCurrentStepIndex() {
return currentStepIndex;
}
public void setCurrentStepIndex(int currentStepIndex) {
this.currentStepIndex = currentStepIndex;
}
public boolean isFromInfoWindow() {
return fromInfoWindow;
}
public void setFromInfoWindow(boolean fromInfoWindow) {
this.fromInfoWindow = fromInfoWindow;
}
}