public class SingleCommand extends AbstractInformationObjectMessage implements MirrorableMessage<SingleCommand>
informationObjectAddressheader, 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) |
getInformationObjectAddressdump, getHeader, toStringpublic 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 Encodeablepublic static SingleCommand parse(ProtocolOptions options, byte length, ASDUHeader header, io.netty.buffer.ByteBuf data)
Copyright © 2017 Eclipse NeoSCADA Project. All rights reserved.