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 --- .../uic/ticket/api/spec/IIncludedOpenTicket.java | 51 +++++++++++++++++++--- 1 file changed, 45 insertions(+), 6 deletions(-) (limited to 'src/org/uic/ticket/api/spec/IIncludedOpenTicket.java') diff --git a/src/org/uic/ticket/api/spec/IIncludedOpenTicket.java b/src/org/uic/ticket/api/spec/IIncludedOpenTicket.java index ab9ee81..359a7e7 100644 --- a/src/org/uic/ticket/api/spec/IIncludedOpenTicket.java +++ b/src/org/uic/ticket/api/spec/IIncludedOpenTicket.java @@ -6,8 +6,6 @@ package org.uic.ticket.api.spec; import java.util.Collection; import java.util.Date; -import org.uic.ticket.api.asn.omv1.CodeTableType; -import org.uic.ticket.api.asn.omv1.TravelClassType; /** * The Interface IIncludedOpenTicket. @@ -118,7 +116,7 @@ public interface IIncludedOpenTicket { * * @return the station code table */ - public CodeTableType getStationCodeTable(); + public IStationCodeTable getStationCodeTable(); /** * Sets the station code table. @@ -129,7 +127,7 @@ public interface IIncludedOpenTicket { * * @param stationCodeTable the new station code table */ - public void setStationCodeTable(CodeTableType stationCodeTable); + public void setStationCodeTable(IStationCodeTable stationCodeTable); /** * Gets the from station code. @@ -248,14 +246,14 @@ public interface IIncludedOpenTicket { * * @return the travel class code */ - public TravelClassType getClassCode(); + public ITravelClassType getClassCode(); /** * Sets the travel class code. * * @param classCode the new travel class code */ - public void setClassCode(TravelClassType classCode); + public void setClassCode(ITravelClassType classCode); /** * Gets the carriers included in the transport contract. @@ -311,6 +309,47 @@ public interface IIncludedOpenTicket { */ public void addExcludedServiceBrand(Integer excludedServiceBrand); + + /** + * Gets the list of excluded Transport Types. + * + * The list should be omitted in case a complete + * list of included transport types is provided. + * + * @return the list of excluded transport types + */ + public Collection getExcludedTransportTypes(); + + /** + * Adds an excluded service brand. + * + * The list should be omitted in case a complete + * list of included TransportTypes is provided. + * + * @param excluded TransportType the excluded TransportTypes + */ + public void addExcludedTransportType(Integer excludedTransportType); + + + /** + * Gets the list of excluded Transport Types. + * + * The list should be omitted in case a complete + * list of included transport types is provided. + * + * @return the list of included transport types + */ + public Collection getIncludedTransportTypes(); + + /** + * Adds an excluded service brand. + * + * The list should be omitted in case a complete + * list of included TransportTypes is provided. + * + * @param excluded TransportType the excluded TransportTypes + */ + public void addInludedTransportType(Integer includedTransportType); /** * Gets the tariffs. -- cgit v1.2.3