- All Superinterfaces:
Encodable
- All Known Implementing Classes:
Stop.Other,Stop.Tram,Stop.Urban
Where a transaction happened, bytes 5 and 6 of a transaction. Bit 15 marks an
urban bus stop; without it the value is a tram stop on the tram route and an
id of another operator elsewhere.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA stop of an operator other than the urban buses and the tram.static final recordA tram stop, whose number the card stores multiplied by one hundred.static final recordAn urban bus stop, which the operator numbers internally. -
Field Summary
Fields -
Method Summary
Static Methods
-
Field Details
-
BYTES
static final int BYTESBytes a stop takes.- See Also:
-
MAX_ID
static final int MAX_IDLargest id the fifteen free bits hold.- See Also:
-
-
Method Details
-
decode
Decodes bytes 5 and 6 of a transaction.- Parameters:
bytes- the two bytesroute- the route of the same transaction, which tells the tram from other operators- Returns:
- the stop
- Throws:
CardFormatException- if the input is not two bytes
-