org.openmuc.jsml.structures
Class ImplicitChoice

java.lang.Object
  extended by org.openmuc.jsml.structures.ASNObject
      extended by org.openmuc.jsml.structures.ImplicitChoice
Direct Known Subclasses:
SML_Status, SML_Value

public abstract class ImplicitChoice
extends ASNObject


Field Summary
protected  ASNObject choice
           
static int Integer
           
static int OctetString
           
static int SML_Boolean
           
static int TL_Field
           
static int Unsigned
           
 
Fields inherited from class org.openmuc.jsml.structures.ASNObject
isOptional, isSelected
 
Constructor Summary
ImplicitChoice()
           
 
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
 ASNObject getChoice()
           
 void print()
          General print method, which prints the classname of derived classes and the print method of choice
 
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

OctetString

public static final int OctetString
See Also:
Constant Field Values

SML_Boolean

public static final int SML_Boolean
See Also:
Constant Field Values

Integer

public static final int Integer
See Also:
Constant Field Values

Unsigned

public static final int Unsigned
See Also:
Constant Field Values

TL_Field

public static final int TL_Field
See Also:
Constant Field Values

choice

protected ASNObject choice
Constructor Detail

ImplicitChoice

public ImplicitChoice()
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

getChoice

public ASNObject getChoice()

print

public void print()
General print method, which prints the classname of derived classes and the print method of choice

Specified by:
print in class ASNObject


Copyright © 2011. All Rights Reserved.