public class SingleCommand extends AbstractInformationObjectMessage implements MirrorableMessage<SingleCommand>
informationObjectAddress
header, MAX_INFORMATION_ENTRIES
Constructor and Description |
---|
SingleCommand(ASDUHeader header,
InformationObjectAddress informationObjectAddress,
boolean state) |
SingleCommand(ASDUHeader header,
InformationObjectAddress informationObjectAddress,
boolean state,
byte type,
boolean execute) |
Modifier and Type | Method and Description |
---|---|
void |
encode(ProtocolOptions options,
io.netty.buffer.ByteBuf out) |
boolean |
getState() |
byte |
getType() |
boolean |
isExecute() |
boolean |
isState() |
SingleCommand |
mirror(Cause cause,
boolean positive) |
static SingleCommand |
parse(ProtocolOptions options,
byte length,
ASDUHeader header,
io.netty.buffer.ByteBuf data) |
getInformationObjectAddress
dump, getHeader, toString
public SingleCommand(ASDUHeader header, InformationObjectAddress informationObjectAddress, boolean state, byte type, boolean execute)
public SingleCommand(ASDUHeader header, InformationObjectAddress informationObjectAddress, boolean state)
public byte getType()
public boolean isState()
public boolean getState()
public boolean isExecute()
public SingleCommand mirror(Cause cause, boolean positive)
mirror
in interface MirrorableMessage<SingleCommand>
public void encode(ProtocolOptions options, io.netty.buffer.ByteBuf out)
encode
in interface Encodeable
public static SingleCommand parse(ProtocolOptions options, byte length, ASDUHeader header, io.netty.buffer.ByteBuf data)