From e023e674020f1a435f7b8c8b9276704f576ea6e5 Mon Sep 17 00:00:00 2001 From: CGantert345 <57003061+CGantert345@users.noreply.github.com> Date: Mon, 29 Mar 2021 14:08:45 +0200 Subject: structure change 1 --- .../uic/barcode/ticket/api/impl/SimpleLine.java | 138 +++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 src/main/java/org/uic/barcode/ticket/api/impl/SimpleLine.java (limited to 'src/main/java/org/uic/barcode/ticket/api/impl/SimpleLine.java') diff --git a/src/main/java/org/uic/barcode/ticket/api/impl/SimpleLine.java b/src/main/java/org/uic/barcode/ticket/api/impl/SimpleLine.java new file mode 100644 index 0000000..6fe82c9 --- /dev/null +++ b/src/main/java/org/uic/barcode/ticket/api/impl/SimpleLine.java @@ -0,0 +1,138 @@ +/* + * + */ +package org.uic.barcode.ticket.api.impl; + +import java.util.HashSet; + +import org.uic.barcode.ticket.api.spec.ILine; +import org.uic.barcode.ticket.api.spec.IStationCodeTable; + +/** + * The Class SimpleLine. + */ +public class SimpleLine implements ILine { + + /** The carrier. */ + protected String carrier; + + /** The line ids. */ + protected HashSet lineIds = new HashSet(); + + /** The station code table. */ + protected IStationCodeTable stationCodeTable = IStationCodeTable.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 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 IStationCodeTable getStationCodeTable() { + return stationCodeTable; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.ILine#setStationCodeTable(org.uic.ticket.api.asn.om.CodeTableType) + */ + public void setStationCodeTable(IStationCodeTable 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; + } + + + + +} -- cgit v1.2.3