org.openmuc.jsml.structures
Class SML_Message
java.lang.Object
org.openmuc.jsml.structures.ASNObject
org.openmuc.jsml.structures.ListOf
org.openmuc.jsml.structures.Sequence
org.openmuc.jsml.structures.SML_Message
public class SML_Message
- extends Sequence
Fields inherited from class org.openmuc.jsml.structures.ListOf |
seqArray |
Methods inherited from class org.openmuc.jsml.structures.Sequence |
decode |
Methods inherited from class org.openmuc.jsml.structures.ListOf |
seqArray |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
transactionId
protected OctetString transactionId
groupNo
protected Unsigned8 groupNo
abortOnError
protected Unsigned8 abortOnError
messageBody
protected SML_MessageBody messageBody
crc16
protected Unsigned16 crc16
endOfSmlMsg
protected EndOfSmlMessage endOfSmlMsg
SML_Message
public SML_Message(OctetString transactionId,
Unsigned8 groupNo,
Unsigned8 abortOnError,
SML_MessageBody messageBody)
SML_Message
public SML_Message()
setTransactionId
public void setTransactionId(OctetString transactionId)
setGroupNo
public void setGroupNo(Unsigned8 groupNo)
setAbortOnError
public void setAbortOnError(Unsigned8 abortOnError)
getTransactionId
public OctetString getTransactionId()
getGroupNo
public Unsigned8 getGroupNo()
getAbortOnError
public Unsigned8 getAbortOnError()
getMessageBody
public SML_MessageBody getMessageBody()
code
public void code(java.io.DataOutputStream os)
throws java.io.IOException
- Description copied from class:
ASNObject
- encodes this object and writes it to the stream os.
- Overrides:
code
in class ListOf
- Throws:
java.io.IOException
- if something went wrong while writing to the stream
decodeAndCheck
public boolean decodeAndCheck(java.io.DataInputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
createElements
protected void createElements()
- Specified by:
createElements
in class Sequence
print
public void print()
- Description copied from class:
ASNObject
- prints the content or type of the object to stdout
- Overrides:
print
in class Sequence