Class ControllerStatusPacket
- java.lang.Object
-
- jmri.jmrix.ipocs.protocol.packets.Packet
-
- jmri.jmrix.ipocs.protocol.packets.ControllerStatusPacket
-
public class ControllerStatusPacket extends Packet
An IPOCS unit can send this as a status message.- Since:
- 4.21.2
-
-
Field Summary
Fields Modifier and Type Field Description static byte
IDENT
-
Constructor Summary
Constructors Constructor Description ControllerStatusPacket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getId()
RqControllerState
getState()
protected void
parseSpecific(java.nio.ByteBuffer buffer)
protected byte[]
serializeSpecific()
void
setState(RqControllerState state)
-
-
-
Field Detail
-
IDENT
public static final byte IDENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ControllerStatusPacket
public ControllerStatusPacket()
-
-
Method Detail
-
parseSpecific
protected void parseSpecific(java.nio.ByteBuffer buffer)
- Specified by:
parseSpecific
in classPacket
-
serializeSpecific
protected byte[] serializeSpecific()
- Specified by:
serializeSpecific
in classPacket
-
getState
public RqControllerState getState()
-
setState
public void setState(RqControllerState state)
-
-