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