From aaeb77f8f58ebc01fd241139439a8d290765e5fc Mon Sep 17 00:00:00 2001 From: CGantert345 <57003061+CGantert345@users.noreply.github.com> Date: Tue, 28 Jul 2020 17:56:59 +0200 Subject: Draft of the new DOSIPAS included --- .../ticket/api/impl/SimpleIncludedOpenTicket.java | 41 +++++++++++++++++----- 1 file changed, 32 insertions(+), 9 deletions(-) (limited to 'src/org/uic/ticket/api/impl/SimpleIncludedOpenTicket.java') diff --git a/src/org/uic/ticket/api/impl/SimpleIncludedOpenTicket.java b/src/org/uic/ticket/api/impl/SimpleIncludedOpenTicket.java index 601e818..c0b2680 100644 --- a/src/org/uic/ticket/api/impl/SimpleIncludedOpenTicket.java +++ b/src/org/uic/ticket/api/impl/SimpleIncludedOpenTicket.java @@ -7,14 +7,13 @@ import java.util.Collection; import java.util.Date; import java.util.LinkedHashSet; -import org.uic.ticket.api.asn.omv1.CodeTableType; -import org.uic.ticket.api.asn.omv1.TravelClassType; import org.uic.ticket.api.spec.IExtension; import org.uic.ticket.api.spec.IIncludedOpenTicket; import org.uic.ticket.api.spec.IRegionalValidity; import org.uic.ticket.api.spec.ITariff; +import org.uic.ticket.api.spec.IStationCodeTable; +import org.uic.ticket.api.spec.ITravelClassType; -// TODO: Auto-generated Javadoc /** * The Class SimpleIncludedOpenTicket. */ @@ -39,7 +38,7 @@ public class SimpleIncludedOpenTicket implements IIncludedOpenTicket { protected int authorizationCode; /** The station code table. */ - protected CodeTableType stationCodeTable = CodeTableType.stationUIC; + protected IStationCodeTable stationCodeTable = IStationCodeTable.stationUIC; /** The from station. */ protected String fromStation; @@ -66,7 +65,7 @@ public class SimpleIncludedOpenTicket implements IIncludedOpenTicket { protected Date validUntil; /** The class code. */ - protected TravelClassType classCode = TravelClassType.second; + protected ITravelClassType classCode = ITravelClassType.second; /** The included carriers. */ protected CollectionincludedCarriers = new LinkedHashSet(); @@ -175,14 +174,14 @@ public class SimpleIncludedOpenTicket implements IIncludedOpenTicket { /* (nicht-Javadoc) * @see org.uic.ticket.api.spec.IIncludedOpenTicket#getStationCodeTable() */ - public CodeTableType getStationCodeTable() { + public IStationCodeTable getStationCodeTable() { return stationCodeTable; } /* (nicht-Javadoc) * @see org.uic.ticket.api.spec.IIncludedOpenTicket#setStationCodeTable(org.uic.ticket.api.asn.om.CodeTableType) */ - public void setStationCodeTable(CodeTableType stationCodeTable) { + public void setStationCodeTable(IStationCodeTable stationCodeTable) { this.stationCodeTable = stationCodeTable; } @@ -301,14 +300,14 @@ public class SimpleIncludedOpenTicket implements IIncludedOpenTicket { /* (nicht-Javadoc) * @see org.uic.ticket.api.spec.IIncludedOpenTicket#getClassCode() */ - public TravelClassType getClassCode() { + public ITravelClassType getClassCode() { return classCode; } /* (nicht-Javadoc) * @see org.uic.ticket.api.spec.IIncludedOpenTicket#setClassCode(org.uic.ticket.api.asn.om.TravelClassType) */ - public void setClassCode(TravelClassType classCode) { + public void setClassCode(ITravelClassType classCode) { this.classCode = classCode; } @@ -436,4 +435,28 @@ public class SimpleIncludedOpenTicket implements IIncludedOpenTicket { this.validUntil = date; } + @Override + public Collection getExcludedTransportTypes() { + // TODO Auto-generated method stub + return null; + } + + @Override + public void addExcludedTransportType(Integer excludedTransportType) { + // TODO Auto-generated method stub + + } + + @Override + public Collection getIncludedTransportTypes() { + // TODO Auto-generated method stub + return null; + } + + @Override + public void addInludedTransportType(Integer includedTransportType) { + // TODO Auto-generated method stub + + } + } -- cgit v1.2.3