summaryrefslogtreecommitdiffstats
path: root/src/org/uic/ticket/api/impl/SimpleTrainLink.java
blob: 1431de32def3d8e1bbe4da96c35de7a08ca3a0f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/*
 * 
 */
package org.uic.ticket.api.impl;

import java.util.Date;

import org.uic.ticket.api.spec.ITrainLink;

// TODO: Auto-generated Javadoc
/**
 * The Class SimpleTrainLink.
 */
public class SimpleTrainLink implements ITrainLink{
	
		
	/** The train. */
	protected String train;
	
	/** The departure date time. */
	protected Date departureDateTime;
	
	/**  offset to UTC time in units of 15 minutes. */
	protected Long departureUTCoffset;
	
	/** 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.ITrainLink#getTrain()
	 */
	public String getTrain() {
		return train;
	}
	
	/* (nicht-Javadoc)
	 * @see org.uic.ticket.api.spec.ITrainLink#setTrain(java.lang.String)
	 */
	public void setTrain(String train) {
		this.train = train.trim();
	}
	
	/* (nicht-Javadoc)
	 * @see org.uic.ticket.api.spec.ITrainLink#getDepartureDateTime()
	 */
	public Date getDepartureDateTime() {
		return departureDateTime;
	}
	
	/* (nicht-Javadoc)
	 * @see org.uic.ticket.api.spec.ITrainLink#setDepartureDateTime(java.util.Date)
	 */
	public void setDepartureDateTime(Date departureDateTime) {
		this.departureDateTime = departureDateTime;
	}
	
	/* (nicht-Javadoc)
	 * @see org.uic.ticket.api.spec.ITrainLink#getFromStation()
	 */
	public String getFromStation() {
		return fromStation;
	}
	
	/* (nicht-Javadoc)
	 * @see org.uic.ticket.api.spec.ITrainLink#setFromStation(java.lang.String)
	 */
	public void setFromStation(String fromStation) {
		this.fromStation = fromStation;
	}
	
	/* (nicht-Javadoc)
	 * @see org.uic.ticket.api.spec.ITrainLink#getToStation()
	 */
	public String getToStation() {
		return toStation;
	}
	
	/* (nicht-Javadoc)
	 * @see org.uic.ticket.api.spec.ITrainLink#setToStation(java.lang.String)
	 */
	public void setToStation(String toStation) {
		this.toStation = toStation.trim();
	}
	
	/* (nicht-Javadoc)
	 * @see org.uic.ticket.api.spec.ITrainLink#getFromStationName()
	 */
	public String getFromStationName() {
		return fromStationName;
	}
	
	/* (nicht-Javadoc)
	 * @see org.uic.ticket.api.spec.ITrainLink#setFromStationName(java.lang.String)
	 */
	public void setFromStationName(String fromStationName) {
		this.fromStationName = fromStationName.trim();
	}
	
	/* (nicht-Javadoc)
	 * @see org.uic.ticket.api.spec.ITrainLink#getToStationName()
	 */
	public String getToStationName() {
		return toStationName;
	}
	
	/* (nicht-Javadoc)
	 * @see org.uic.ticket.api.spec.ITrainLink#setToStationName(java.lang.String)
	 */
	public void setToStationName(String toStationName) {
		this.toStationName = toStationName;
	}

	/* (nicht-Javadoc)
	 * @see org.uic.ticket.api.spec.ITrainLink#getDepartureUTCoffset()
	 */
	public Long getDepartureUTCoffset() {
		return departureUTCoffset;
	}

	/* (nicht-Javadoc)
	 * @see org.uic.ticket.api.spec.ITrainLink#setDepartureUTCoffset(java.lang.Long)
	 */
	public void setDepartureUTCoffset(Long departureUTCoffset) {
		this.departureUTCoffset = departureUTCoffset;
	}         
	
	

}