org.openmuc.jsml.structures
Class SML_Message

java.lang.Object
  extended by org.openmuc.jsml.structures.ASNObject
      extended by org.openmuc.jsml.structures.ListOf
          extended by org.openmuc.jsml.structures.Sequence
              extended by org.openmuc.jsml.structures.SML_Message

public class SML_Message
extends Sequence


Field Summary
protected  Unsigned8 abortOnError
           
protected  Unsigned16 crc16
           
protected  EndOfSmlMessage endOfSmlMsg
           
protected  Unsigned8 groupNo
           
protected  SML_MessageBody messageBody
           
protected  OctetString transactionId
           
 
Fields inherited from class org.openmuc.jsml.structures.ListOf
seqArray
 
Fields inherited from class org.openmuc.jsml.structures.ASNObject
isOptional, isSelected
 
Constructor Summary
SML_Message()
           
SML_Message(OctetString transactionId, Unsigned8 groupNo, Unsigned8 abortOnError, SML_MessageBody messageBody)
           
 
Method Summary
 void code(DataOutputStream os)
          encodes this object and writes it to the stream os.
protected  void createElements()
           
 boolean decode(DataInputStream is)
          decodes the data from the InputStream and writes it to an object
 Unsigned8 getAbortOnError()
           
 Unsigned8 getGroupNo()
           
 SML_MessageBody getMessageBody()
           
 OctetString getTransactionId()
           
 void print()
          prints the content or type of the object to stdout
 void setAbortOnError(Unsigned8 abortOnError)
           
 void setGroupNo(Unsigned8 groupNo)
           
 void setTransactionId(OctetString transactionId)
           
 
Methods inherited from class org.openmuc.jsml.structures.ListOf
seqArray
 
Methods inherited from class org.openmuc.jsml.structures.ASNObject
isOptional, isSelected, setOptional, setSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

SML_Message

public SML_Message(OctetString transactionId,
                   Unsigned8 groupNo,
                   Unsigned8 abortOnError,
                   SML_MessageBody messageBody)

SML_Message

public SML_Message()
Method Detail

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.