org.onebusaway.gtfs.model.ServiceCalendar Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of onebusaway-gtfs Show documentation
Show all versions of onebusaway-gtfs Show documentation
A Java library for reading and writing General Transit Feed Spec feeds
package org.onebusaway.gtfs.model;
import org.onebusaway.gtfs.model.calendar.ServiceDate;
/**
* Note that I decided to call this class ServiceCalendar instead of Calendar,
* so as to avoid confusion with java.util.Calendar
*
* @author bdferris
*
*/
public final class ServiceCalendar extends IdentityBean {
private static final long serialVersionUID = 1L;
private int id;
private AgencyAndId serviceId;
private int monday;
private int tuesday;
private int wednesday;
private int thursday;
private int friday;
private int saturday;
private int sunday;
private ServiceDate startDate;
private ServiceDate endDate;
public ServiceCalendar() {
}
public ServiceCalendar(ServiceCalendar sc) {
this.id = sc.id;
this.serviceId = sc.serviceId;
this.monday = sc.monday;
this.tuesday = sc.tuesday;
this.wednesday = sc.wednesday;
this.thursday = sc.thursday;
this.friday = sc.friday;
this.saturday = sc.saturday;
this.sunday = sc.sunday;
this.startDate = sc.startDate;
this.endDate = sc.endDate;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public AgencyAndId getServiceId() {
return serviceId;
}
public void setServiceId(AgencyAndId serviceId) {
this.serviceId = serviceId;
}
public int getMonday() {
return monday;
}
public void setMonday(int monday) {
this.monday = monday;
}
public int getTuesday() {
return tuesday;
}
public void setTuesday(int tuesday) {
this.tuesday = tuesday;
}
public int getWednesday() {
return wednesday;
}
public void setWednesday(int wednesday) {
this.wednesday = wednesday;
}
public int getThursday() {
return thursday;
}
public void setThursday(int thursday) {
this.thursday = thursday;
}
public int getFriday() {
return friday;
}
public void setFriday(int friday) {
this.friday = friday;
}
public int getSaturday() {
return saturday;
}
public void setSaturday(int saturday) {
this.saturday = saturday;
}
public int getSunday() {
return sunday;
}
public void setSunday(int sunday) {
this.sunday = sunday;
}
public ServiceDate getStartDate() {
return startDate;
}
public void setStartDate(ServiceDate startDate) {
this.startDate = startDate;
}
public ServiceDate getEndDate() {
return endDate;
}
public void setEndDate(ServiceDate endDate) {
this.endDate = endDate;
}
public String toString() {
return "";
}
}