From c3ee0f35f58125a7a2b2e29ac8db8abc169f1b87 Mon Sep 17 00:00:00 2001 From: CGantert345 <57003061+CGantert345@users.noreply.github.com> Date: Fri, 3 Jan 2020 10:47:21 +0100 Subject: api implementation --- .../uic/ticket/api/impl/SimpleRouteSection.java | 106 +++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 src/org/uic/ticket/api/impl/SimpleRouteSection.java (limited to 'src/org/uic/ticket/api/impl/SimpleRouteSection.java') diff --git a/src/org/uic/ticket/api/impl/SimpleRouteSection.java b/src/org/uic/ticket/api/impl/SimpleRouteSection.java new file mode 100644 index 0000000..079ae61 --- /dev/null +++ b/src/org/uic/ticket/api/impl/SimpleRouteSection.java @@ -0,0 +1,106 @@ +/* + * + */ +package org.uic.ticket.api.impl; + +import org.uic.ticket.api.asn.omv1.CodeTableType; +import org.uic.ticket.api.spec.IRouteSection; + +// TODO: Auto-generated Javadoc +/** + * The Class SimpleRouteSection. + */ +public class SimpleRouteSection implements IRouteSection { + + + /** The station code table. */ + protected CodeTableType stationCodeTable = CodeTableType.stationUIC; + + /** The from station. */ + protected String fromStation; + + /** The to station. */ + protected String toStation; + + /** The from station name. */ + protected String fromStationName; + + /** The to station name. */ + protected String toStationName; + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IRouteSection#getStationCodeTable() + */ + public CodeTableType getStationCodeTable() { + return stationCodeTable; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IRouteSection#setStationCodeTable(org.uic.ticket.api.asn.om.CodeTableType) + */ + public void setStationCodeTable(CodeTableType stationCodeTable) { + this.stationCodeTable = stationCodeTable; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IRouteSection#getFromStation() + */ + public String getFromStation() { + return fromStation; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IRouteSection#setFromStation(java.lang.String) + */ + public void setFromStation(String fromStation) { + this.fromStation = fromStation; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IRouteSection#getToStation() + */ + public String getToStation() { + return toStation; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IRouteSection#setToStation(java.lang.String) + */ + public void setToStation(String toStation) { + this.toStation = toStation; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IRouteSection#getFromStationName() + */ + public String getFromStationName() { + return fromStationName; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IRouteSection#setFromStationName(java.lang.String) + */ + public void setFromStationName(String fromStationName) { + this.fromStationName = fromStationName; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IRouteSection#getToStationName() + */ + public String getToStationName() { + return toStationName; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IRouteSection#setToStationName(java.lang.String) + */ + public void setToStationName(String toStationName) { + this.toStationName = toStationName; + } + + + + + + +} -- cgit v1.2.3