|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ecebs.rtd.enabler.types.itso.LOCE
public class LOCE
Represents the LOCE structure found as part of LOCx structures within ITSO IPEs. Note on length: as per ITSO 1000-1 part 4.2.4, most LOC structures have a specific size. Where the size is variable, the LOCE structure will be wrapped by a LOC1 structure. For all other types, the length is fixed and defined in ITSO 1000-1 part 4.2.4.
Nested Class Summary | |
---|---|
static class |
LOCE.LocDefType
Defines the types of locations defined in ITSO 1000-1, 4.2.4 |
Field Summary | |
---|---|
static byte |
LOCE_LEN
|
Constructor Summary | |
---|---|
LOCE(int offset,
byte[] bytes,
byte locType,
int length)
|
Method Summary | |
---|---|
String |
getAtcoCode()
Get the atco code for a LOCE of type 211 ( LOCE.LocDefType.ATCO_CODE ) |
short |
getCountryCode()
Get the country code for a LOCE of type 208 ( LOCE.LocDefType.FULL_NLC ) |
byte[] |
getData()
|
LOCE.LocDefType |
getLocDefType()
|
int |
getMachineNumber()
Get the machine number for a LOCE of type 202 ( LOCE.LocDefType.BUS_FARE_STAGE_TYPE_1 ) |
List<String> |
getMultipleNAPTANCodes()
Get the list of NAPTAN codes for a LOCE of type 212 ( LOCE.LocDefType.MULTIPLE_NAPTAN_CODES ) |
String |
getNAPTANCode()
Get the NAPTAN Code for a LOCE of type 206 ( LOCE.LocDefType.NAPTAN_CODE ) |
String |
getNLC()
Get the NLC for a LOCE of type 208 ( LOCE.LocDefType.FULL_NLC ) |
int |
getOID()
Get the operator identity for a LOCE of type 209 ( LOCE.LocDefType.BUS_FARE_STAGE_TYPE_2 ) |
String |
getServiceNumber()
Get the service number for a LOCE of type 209 ( LOCE.LocDefType.BUS_FARE_STAGE_TYPE_2 ) |
List<String> |
getServiceNumbers()
Get the list of service numbers for a LOCE of type 210 ( LOCE.LocDefType.SERVICE_NUMBERS ) |
short |
getStageNumber()
Get the stage number for a LOCE of type 202 ( LOCE.LocDefType.BUS_FARE_STAGE_TYPE_1 ) |
int |
getZonalBitmap()
Get the Zonal bit map for a LOCE of type 204 ( LOCE.LocDefType.ZONAL_BITMAP_ANYWHERE ) or
205 (LOCE.LocDefType.ZONAL_BITMAP_ZONETOZONE ) |
long |
getZoneNumber()
Get the zone number for a LOCE of type 207 ( LOCE.LocDefType.ZONE_NUMBER ) |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte LOCE_LEN
Constructor Detail |
---|
public LOCE(int offset, byte[] bytes, byte locType, int length) throws IndexOutOfBoundsException
IndexOutOfBoundsException
Method Detail |
---|
public byte[] getData()
public LOCE.LocDefType getLocDefType()
public String toString()
toString
in class Object
public int getMachineNumber()
LOCE.LocDefType.BUS_FARE_STAGE_TYPE_1
)
IllegalStateException
- thrown if the type of this LOCE instance is not LOCE.LocDefType.BUS_FARE_STAGE_TYPE_1
public short getStageNumber()
LOCE.LocDefType.BUS_FARE_STAGE_TYPE_1
)
IllegalStateException
- thrown if the type of this LOCE instance is not LOCE.LocDefType.BUS_FARE_STAGE_TYPE_1
public int getZonalBitmap()
LOCE.LocDefType.ZONAL_BITMAP_ANYWHERE
) or
205 (LOCE.LocDefType.ZONAL_BITMAP_ZONETOZONE
)
IllegalStateException
- thrown if the type of this LOCE instance is not
LOCE.LocDefType.ZONAL_BITMAP_ANYWHERE
or LOCE.LocDefType.ZONAL_BITMAP_ZONETOZONE
ByteUtils.isBitSet(int, int)
public String getNAPTANCode()
LOCE.LocDefType.NAPTAN_CODE
)
IllegalStateException
- thrown if the type of this LOCE instance is not LOCE.LocDefType.NAPTAN_CODE
public long getZoneNumber()
LOCE.LocDefType.ZONE_NUMBER
)
IllegalStateException
- thrown if the type of this LOCE instance is not LOCE.LocDefType.ZONE_NUMBER
public short getCountryCode()
LOCE.LocDefType.FULL_NLC
)
IllegalStateException
- thrown if the type of this LOCE instance is not LOCE.LocDefType.FULL_NLC
public String getNLC()
LOCE.LocDefType.FULL_NLC
)
IllegalStateException
- thrown if the type of this LOCE instance is not LOCE.LocDefType.NAPTAN_CODE
public int getOID()
LOCE.LocDefType.BUS_FARE_STAGE_TYPE_2
)
IllegalStateException
- thrown if the type of this LOCE instance is not LOCE.LocDefType.BUS_FARE_STAGE_TYPE_2
public String getServiceNumber()
LOCE.LocDefType.BUS_FARE_STAGE_TYPE_2
)
IllegalStateException
- thrown if the type of this LOCE instance is not LOCE.LocDefType.BUS_FARE_STAGE_TYPE_2
public List<String> getServiceNumbers()
LOCE.LocDefType.SERVICE_NUMBERS
)
IllegalStateException
- thrown if the type of this LOCE instance is not LOCE.LocDefType.SERVICE_NUMBERS
public String getAtcoCode()
LOCE.LocDefType.ATCO_CODE
)
IllegalStateException
- thrown if the type of this LOCE instance is not LOCE.LocDefType.ATCO_CODE
public List<String> getMultipleNAPTANCodes()
LOCE.LocDefType.MULTIPLE_NAPTAN_CODES
)
IllegalStateException
- thrown if the type of this LOCE instance is not LOCE.LocDefType.MULTIPLE_NAPTAN_CODES
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |