summaryrefslogtreecommitdiffstats
path: root/src/org/uic/ticket/api/spec/ICompartmentDetails.java
blob: 4e05801643494850d1fca286cb9228cba702a281 (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
/*
 * 
 */
package org.uic.ticket.api.spec;

import org.uic.ticket.api.asn.omv1.CompartmentPositionType;

/**
 * The Interface ICompartmentDetails.
 * 
 * ICompartmentDetails defines details on reserved place types 
 * 
 * The codes corresponds to UIC leaflet 918.1 element 51
 * 
 */
public interface ICompartmentDetails {

	/**
	 * Gets the coach type.
	 * 
	 * The codes corresponds to UIC leaflet 918.1 element 51 position 1 and 2
	 * 
	 * @return the coach type
	 */
	public int getCoachType();
	
	/**
	 * Sets the coach type.
	 * 
	 * The codes corresponds to UIC leaflet 918.1 element 51 position 1 and 2 
	 *
	 * @param coachType the new coach type
	 */
	public void setCoachType(int coachType);
	
	/**
	 * Gets the compartment type.
	 * 
	 * The codes corresponds to UIC leaflet 918.1 element 51 position 3 and 4	 
	 *
	 * @return the compartment type
	 */
	public int getCompartmentType() ;
	
	/**
	 * Sets the compartment type.
	 * 
	 * The codes corresponds to UIC leaflet 918.1 element 51 position 3 and 4	
	 *
	 * @param compartmentType the new compartment type
	 */
	public void setCompartmentType(int compartmentType);
	
	/**
	 * Gets the special allocation.
	 * 
	 * The codes corresponds to UIC leaflet 918.1 element 51 position 5 and 6	 
	 *
	 * @return the special allocation
	 */
	public int getSpecialAllocation() ;
	
	/**
	 * Sets the special allocation.
	 * 
	 * The codes corresponds to UIC leaflet 918.1 element 51 position 5 and 6	 	 
	 *
	 * @param specialAllocation the new special allocation
	 */
	public void setSpecialAllocation(int specialAllocation);
	
	/**
	 * Gets the coach type description.
	 *
	 * @return the coach type description
	 */
	public String getCoachTypeDescr();
	
	/**
	 * Sets the coach type description.
	 *
	 * @param coachTypeDescr the new coach type description
	 */
	public void setCoachTypeDescr(String coachTypeDescr);
	
	/**
	 * Gets the compartment type description.
	 *
	 * @return the compartment type description
	 */
	public String getCompartmentTypeDescr();
	
	/**
	 * Sets the compartment type description
	 *
	 * @param comparttmentTypeDescr the new compartment type description
	 */
	public void setCompartmentTypeDescr(String comparttmentTypeDescr);
	
	/**
	 * Gets the special allocation description.
	 *
	 * @return the special allocation description
	 */
	public String getSpecialAllocationDescr();
	
	/**
	 * Sets the special allocation description.
	 *
	 * @param specialAllocationDescr the new special allocation description
	 */
	public void setSpecialAllocationDescr(String specialAllocationDescr);
	
	/**
	 * Gets the position in trains with different decks.
	 *
	 * @return the position
	 */
	public CompartmentPositionType getPosition();
	
	/**
	 * Sets the position of the compartment in trains with different decks
	 *
	 * @param position the new position
	 */
	public void setPosition(CompartmentPositionType position);
	
}