Package jmri.jmrit.etcs
Class CabMessage
- java.lang.Object
- 
- jmri.jmrit.etcs.CabMessage
 
- 
- Direct Known Subclasses:
- DmiCabMessage
 
 @API(status=EXPERIMENTAL) public class CabMessage extends java.lang.Object Class to represent a CabMessage to send to the ERTMS DMI.
- 
- 
Constructor SummaryConstructors Constructor Description CabMessage(java.lang.String msg, int intValue, boolean ackReqd)Create a new CabMessage.CabMessage(java.lang.String messageId, java.lang.String msg, int intValue, boolean ackReqd)Create a new CabMessage.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAckRequired()Get if a driver acknowledgement is required for this message.java.util.DategetConfirmedTime()Get the Time the message was confirmed by the driver.intgetGroup()Get Message Group. 1 - system status messages and the important plain/fixed text messages received from track-side. 2 - auxiliary plain/fixed text messages received from track-side.java.lang.StringgetMessage()Get the Message String.java.lang.StringgetMessageId()Get the unique Message ID.java.util.DategetSentTime()Get the Date that the Message was Sent.voidsetConfirmed()Set the CabMessage as confirmed.
 
- 
- 
- 
Constructor Detail- 
CabMessagepublic CabMessage(java.lang.String msg, int intValue, boolean ackReqd) Create a new CabMessage.- Parameters:
- msg- String of message value
- intValue- 1 if system status / important, 2 for auxiliary messages.
- ackReqd- true if an acknowledgement is required, else false.
 
 - 
CabMessagepublic CabMessage(@Nonnull java.lang.String messageId, java.lang.String msg, int intValue, boolean ackReqd) Create a new CabMessage.- Parameters:
- messageId- unique ID String.
- msg- String of message value
- intValue- 1 if system status / important, 2 for auxiliary messages.
- ackReqd- true if an acknowledgement is required, else false.
 
 
- 
 - 
Method Detail- 
getMessagepublic java.lang.String getMessage() Get the Message String.- Returns:
- String of the Message.
 
 - 
getMessageIdpublic java.lang.String getMessageId() Get the unique Message ID.- Returns:
- the Message ID.
 
 - 
getSentTimepublic java.util.Date getSentTime() Get the Date that the Message was Sent.- Returns:
- the date of message creation.
 
 - 
getConfirmedTime@CheckForNull public java.util.Date getConfirmedTime() Get the Time the message was confirmed by the driver.- Returns:
- time confirmed, else null if unconfirmed.
 
 - 
setConfirmedpublic void setConfirmed() Set the CabMessage as confirmed. Sets the confirmed time.
 - 
getAckRequiredpublic boolean getAckRequired() Get if a driver acknowledgement is required for this message.- Returns:
- true if acknowledgement required, else false.
 
 - 
getGrouppublic int getGroup() Get Message Group. 1 - system status messages and the important plain/fixed text messages received from track-side. 2 - auxiliary plain/fixed text messages received from track-side.- Returns:
- the group this message is in.
 
 
- 
 
-