Package jmri.jmrix
Interface Message
-
- All Known Subinterfaces:
BroadcastMessage
- All Known Implementing Classes:
AbstractMessage
,AbstractMRMessage
,AbstractMRReply
,AcelaMessage
,AcelaReply
,CanMessage
,CanReply
,ConcentratorMessage
,ConcentratorReply
,Dcc4PcMessage
,Dcc4PcReply
,DCCppMessage
,DCCppReply
,EasyDccMessage
,EasyDccReply
,EcosMessage
,EcosReply
,GridConnectDoubledMessage
,GridConnectMessage
,GridConnectReply
,IEEE802154Message
,IEEE802154Reply
,JMRIClientMessage
,JMRIClientReply
,LocoNetMessage
,MarklinMessage
,MarklinReply
,MergMessage
,MergReply
,Message
,Message
,NceMessage
,NceReply
,QsiMessage
,QsiReply
,Reply
,Reply
,RfidMessage
,RfidReply
,SerialMessage
,SerialMessage
,SerialMessage
,SerialMessage
,SerialMessage
,SerialMessage
,SerialMessage
,SerialReply
,SerialReply
,SerialReply
,SerialReply
,SerialReply
,SerialReply
,SerialReply
,SpecificMessage
,SpecificMessage
,SpecificMessage
,SpecificMessage
,SpecificMessage
,SpecificReply
,SpecificReply
,SpecificReply
,SpecificReply
,SpecificReply
,SpeedoReply
,SprogMessage
,SprogReply
,SRCPMessage
,SRCPReply
,StandaloneMessage
,StandaloneReply
,TamsMessage
,TamsReply
,XBeeBroadcastMessage
,XBeeMessage
,XBeeReply
,XNetMessage
,XNetReply
,XpaMessage
,Z21Message
,Z21Reply
,Z21XNetMessage
,Z21XNetReply
public interface Message
Basic interface for messages to and from the layout hardware.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description int
getElement(int n)
Get a particular element in a Message.int
getNumDataElements()
Get the number of data elements in a Message.void
setElement(int n, int v)
Set a single Data Element at a particular index.default java.lang.String
toMonitorString()
java.lang.String
toString()
-
-
-
Method Detail
-
getElement
int getElement(int n)
Get a particular element in a Message.- Parameters:
n
- Element Index.- Returns:
- single element of message.
-
getNumDataElements
int getNumDataElements()
Get the number of data elements in a Message.- Returns:
- number elements.
-
setElement
void setElement(int n, int v)
Set a single Data Element at a particular index.- Parameters:
n
- index of element.v
- value of element.
-
toString
java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toMonitorString
default java.lang.String toMonitorString()
- Returns:
- a human-readable representation of the message.
-
-