diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2020-01-03 10:47:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-03 10:47:21 +0100 |
commit | c3ee0f35f58125a7a2b2e29ac8db8abc169f1b87 (patch) | |
tree | 3f30e28833d113bd4be1515da247c45911a0d89a /src/org/uic/ticket/api/impl/SimpleLine.java | |
parent | asn.1 java model (diff) | |
download | UIC-barcode-c3ee0f35f58125a7a2b2e29ac8db8abc169f1b87.tar UIC-barcode-c3ee0f35f58125a7a2b2e29ac8db8abc169f1b87.tar.gz UIC-barcode-c3ee0f35f58125a7a2b2e29ac8db8abc169f1b87.tar.bz2 UIC-barcode-c3ee0f35f58125a7a2b2e29ac8db8abc169f1b87.tar.lz UIC-barcode-c3ee0f35f58125a7a2b2e29ac8db8abc169f1b87.tar.xz UIC-barcode-c3ee0f35f58125a7a2b2e29ac8db8abc169f1b87.tar.zst UIC-barcode-c3ee0f35f58125a7a2b2e29ac8db8abc169f1b87.zip |
Diffstat (limited to 'src/org/uic/ticket/api/impl/SimpleLine.java')
-rw-r--r-- | src/org/uic/ticket/api/impl/SimpleLine.java | 139 |
1 files changed, 139 insertions, 0 deletions
diff --git a/src/org/uic/ticket/api/impl/SimpleLine.java b/src/org/uic/ticket/api/impl/SimpleLine.java new file mode 100644 index 0000000..620dc65 --- /dev/null +++ b/src/org/uic/ticket/api/impl/SimpleLine.java @@ -0,0 +1,139 @@ +/*
+ *
+ */
+package org.uic.ticket.api.impl;
+
+import java.util.HashSet;
+
+import org.uic.ticket.api.asn.omv1.CodeTableType;
+import org.uic.ticket.api.spec.ILine;
+
+// TODO: Auto-generated Javadoc
+/**
+ * The Class SimpleLine.
+ */
+public class SimpleLine implements ILine {
+
+ /** The carrier. */
+ protected String carrier;
+
+ /** The line ids. */
+ protected HashSet<Integer> lineIds = new HashSet<Integer>();
+
+ /** The station code table. */
+ protected CodeTableType stationCodeTable = CodeTableType.stationUIC;
+
+ /** The entry station. */
+ protected String entryStation;
+
+ /** The terminating station. */
+ protected String terminatingStation;
+
+ /** The city. */
+ protected int city;
+
+ /** The binary zone id. */
+ protected byte[] binaryZoneId;
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ILine#getCarrier()
+ */
+ public String getCarrier() {
+ return carrier;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ILine#setCarrier(java.lang.String)
+ */
+ public void setCarrier(String carrier) {
+ this.carrier = carrier;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ILine#getLineIds()
+ */
+ public HashSet<Integer> getLineIds() {
+ return lineIds;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ILine#addLineId(java.lang.Integer)
+ */
+ public void addLineId(Integer lineId) {
+ this.lineIds.add(lineId);
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ILine#getStationCodeTable()
+ */
+ public CodeTableType getStationCodeTable() {
+ return stationCodeTable;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ILine#setStationCodeTable(org.uic.ticket.api.asn.om.CodeTableType)
+ */
+ public void setStationCodeTable(CodeTableType stationCodeTable) {
+ this.stationCodeTable = stationCodeTable;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ILine#getEntryStation()
+ */
+ public String getEntryStation() {
+ return entryStation;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ILine#setEntryStation(java.lang.String)
+ */
+ public void setEntryStation(String entryStation) {
+ this.entryStation = entryStation;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ILine#getTerminatingStation()
+ */
+ public String getTerminatingStation() {
+ return terminatingStation;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ILine#setTerminatingStation(java.lang.String)
+ */
+ public void setTerminatingStation(String terminatingStation) {
+ this.terminatingStation = terminatingStation;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ILine#getCity()
+ */
+ public int getCity() {
+ return city;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ILine#setCity(int)
+ */
+ public void setCity(int city) {
+ this.city = city;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ILine#getBinaryZoneId()
+ */
+ public byte[] getBinaryZoneId() {
+ return binaryZoneId;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ILine#setBinaryZoneId(byte[])
+ */
+ public void setBinaryZoneId(byte[] binatyZoneId) {
+ this.binaryZoneId = binatyZoneId;
+ }
+
+
+
+
+}
|