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.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(DataOutputStream os)
throws IOException
- Description copied from class:
ASNObject
- encodes this object and writes it to the stream os.
- Overrides:
code
in class ListOf
- Throws:
IOException
- if something went wrong while writing to the stream
decode
public boolean decode(DataInputStream is)
throws IOException
- Description copied from class:
ASNObject
- decodes the data from the InputStream and writes it to an object
- Overrides:
decode
in class Sequence
- Returns:
- true if successfully decoded
- Throws:
IOException
- if something went wrong while reading from the stream
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
Copyright © 2011. All Rights Reserved.