org.openmuc.jsml.structures
Class SML_Boolean

java.lang.Object
  extended by org.openmuc.jsml.structures.ASNObject
      extended by org.openmuc.jsml.structures.SML_Boolean

public class SML_Boolean
extends ASNObject


Field Summary
protected  boolean val
           
 
Fields inherited from class org.openmuc.jsml.structures.ASNObject
isOptional, isSelected
 
Constructor Summary
SML_Boolean()
           
SML_Boolean(boolean b)
           
 
Method Summary
 void code(java.io.DataOutputStream os)
          encodes this object and writes it to the stream os.
 boolean decode(java.io.DataInputStream is)
          decodes the data from the InputStream and writes it to an object
 boolean getVal()
           
 void print()
          prints the content or type of the object to stdout
 
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

val

protected boolean val
Constructor Detail

SML_Boolean

public SML_Boolean(boolean b)

SML_Boolean

public SML_Boolean()
Method Detail

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.

Specified by:
code in class ASNObject
Throws:
java.io.IOException - if something went wrong while writing to the stream

decode

public boolean decode(java.io.DataInputStream is)
               throws java.io.IOException
Description copied from class: ASNObject
decodes the data from the InputStream and writes it to an object

Specified by:
decode in class ASNObject
Returns:
true if successfully decoded
Throws:
java.io.IOException - if something went wrong while reading from the stream

print

public void print()
Description copied from class: ASNObject
prints the content or type of the object to stdout

Specified by:
print in class ASNObject

getVal

public boolean getVal()


Copyright © 2011. All Rights Reserved.