org.openmuc.j60870
public class ASdu extends java.lang.Object
TypeId
(1 byte)CauseOfTransmission
, a bit indicating whether the message was sent for test purposes only
and a bit indicating whether a confirmation message is positive or negative. The optional second byte of the Cause of
Transmission field is the Originator Address. It is the address of the originating controlling station so that
responses can be routed back to it.Constructor and Description |
---|
ASdu(TypeId typeId,
boolean isSequenceOfElements,
CauseOfTransmission causeOfTransmission,
boolean test,
boolean negativeConfirm,
int originatorAddress,
int commonAddress,
InformationObject[] informationObjects)
Use this constructor to create standardized ASDUs.
|
ASdu(TypeId typeId,
boolean isSequenceOfElements,
int sequenceLength,
CauseOfTransmission causeOfTransmission,
boolean test,
boolean negativeConfirm,
int originatorAddress,
int commonAddress,
byte[] privateInformation)
Use this constructor to create private ASDU with TypeIDs in the range 128-255.
|
Modifier and Type | Method and Description |
---|---|
CauseOfTransmission |
getCauseOfTransmission() |
int |
getCommonAddress() |
InformationObject[] |
getInformationObjects() |
java.lang.Integer |
getOriginatorAddress() |
byte[] |
getPrivateInformation() |
int |
getSequenceLength() |
TypeId |
getTypeIdentification() |
boolean |
isNegativeConfirm() |
boolean |
isSequenceOfElements() |
boolean |
isTestFrame() |
java.lang.String |
toString() |
public ASdu(TypeId typeId, boolean isSequenceOfElements, CauseOfTransmission causeOfTransmission, boolean test, boolean negativeConfirm, int originatorAddress, int commonAddress, InformationObject[] informationObjects)
typeId
- isSequenceOfElements
- causeOfTransmission
- test
- negativeConfirm
- originatorAddress
- commonAddress
- informationObjects
- public ASdu(TypeId typeId, boolean isSequenceOfElements, int sequenceLength, CauseOfTransmission causeOfTransmission, boolean test, boolean negativeConfirm, int originatorAddress, int commonAddress, byte[] privateInformation)
typeId
- isSequenceOfElements
- sequenceLength
- causeOfTransmission
- test
- negativeConfirm
- originatorAddress
- commonAddress
- privateInformation
- public TypeId getTypeIdentification()
public boolean isSequenceOfElements()
public int getSequenceLength()
public CauseOfTransmission getCauseOfTransmission()
public boolean isTestFrame()
public boolean isNegativeConfirm()
public java.lang.Integer getOriginatorAddress()
public int getCommonAddress()
public InformationObject[] getInformationObjects()
public byte[] getPrivateInformation()
public java.lang.String toString()
toString
in class java.lang.Object