com.ecebs.rtd.enabler.types.itso
Class TransientTicketRecord
java.lang.Object
com.ecebs.rtd.enabler.types.itso.TransientTicketRecord
- All Implemented Interfaces:
- Serializable
public class TransientTicketRecord
- extends Object
- implements Serializable
Represents a Transient Ticket Record (TTR) found within a
cyclic log on an ITSO CMD
- Author:
- kyleb
- See Also:
CyclicLog
,
Serialized Form
TransientTicketRecord
public TransientTicketRecord(LogDirEntry dir,
byte[] ipeBytes)
- Parses from the provided byte array, starting at the given offset
- Parameters:
dir
- Directory entry associated with the IPEipeBytes
- byte array to parse from
getLogDirEntry
public LogDirEntry getLogDirEntry()
getHeader
public Header getHeader()
getTTBitMap2
public short getTTBitMap2()
isAmountPaidPresent
public boolean isAmountPaidPresent()
isDestinationPresent
public boolean isDestinationPresent()
isIpeIdPresent
public boolean isIpeIdPresent()
isOriginPresent
public boolean isOriginPresent()
isRouteCodePresent
public boolean isRouteCodePresent()
isIINPresent
public boolean isIINPresent()
isCIPEPresent
public boolean isCIPEPresent()
isEntryPresent
public boolean isEntryPresent()
isEntryOIDPresent
public boolean isEntryOIDPresent()
isUserDefinedElementPresent
public boolean isUserDefinedElementPresent()
getTTTransactionType
public ITSOCodeResolver.EventTypeCode getTTTransactionType()
getDateTimeStamp
public Calendar getDateTimeStamp()
getAmountPaid
public Amount getAmountPaid()
isCompanionTravelling
public boolean isCompanionTravelling()
isReturnTicket
public boolean isReturnTicket()
isNoFareCharged
public boolean isNoFareCharged()
getDestinationTT
public LOCE getDestinationTT()
getIPEPointer
public byte getIPEPointer()
getOriginLocation
public LOCE getOriginLocation()
getRoutingCode
public LOCE getRoutingCode()
getIIN
public int getIIN()
getIPEID1
public byte getIPEID1()
getIPEID2
public byte getIPEID2()
getIPEID3
public byte getIPEID3()
getIPEID4
public byte getIPEID4()
getCIPEFlags
public byte getCIPEFlags()
isInvalidTravelDetected
public boolean isInvalidTravelDetected()
isCMInspected
public boolean isCMInspected()
getEntryTTIPEIsamID
public byte[] getEntryTTIPEIsamID()
getEntryTTIPEIsamSeqNum
public int getEntryTTIPEIsamSeqNum()
getEntryDTS
public Calendar getEntryDTS()
getEntryOID
public int getEntryOID()
getEntryIINIndex
public short getEntryIINIndex()
getUserDefined
public byte[] getUserDefined()
getIPEInstanceID
public IPEInstanceID getIPEInstanceID()
getSeal
public byte[] getSeal()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013 Ecebs Ltd. All Rights Reserved.