hypercast
Class FSM_Extension

java.lang.Object
  |
  +--hypercast.Extension
        |
        +--hypercast.FSM_Extension

public class FSM_Extension
extends Extension

This class defines the OL_Message extension header. It contains all the functions needed to maintain the Extension header. The header applies to OL_Message.FSM extension.


Field Summary
 
Fields inherited from class hypercast.Extension
FSM, HEADER_NONE, RAW_DATA, ROUTE_RECORD, SECURITY
 
Constructor Summary
FSM_Extension(hypercast.FSM_Extension se)
          Constructs an SecurityExtension Extension from an existing one.
FSM_Extension(short fsmid, byte type, byte[] uniqueID)
          Constructs an Extension header object for Message-FSM-data finite state machine id (2 bytes) type(1 byte) byte array of the message id (8 bytes) // TODO: I think that this comment is wrong, should be 4 byte
FSM_Extension(short fsmid, byte type, byte[] uniqueID, byte[] controlData)
          Constructs an Extension header object for Stream-Control finite state machine id (2 bytes) type (1 byte) unique id (no fixed length) control payload (no fixed length)
FSM_Extension(short fsmid, byte type, byte[] uniqueID, byte deliveryMode, hypercast.I_LogicalAddress la)
          Constructs an Extension header object for FSM-Control finite state machine id (2 bytes) type(1 byte) byte array of the message id (8 bytes), delivery mode (1 byte),the logical address of the root
FSM_Extension(short fsmid, byte type, byte[] uniqueID, hypercast.I_LogicalAddress la)
          Constructs an Extension header object for FSM-Control finite state machine id (2 bytes) type(1 byte) byte array of the message id (8 bytes), delivery mode (1 byte),the logical address of the root
FSM_Extension(short fsmid, byte type, byte[] uniqueID, long sequenceNumber)
          Constructs an Extension header object for Stream-Data header(1 byte) type(1 byte) finite state machine id (2 bytes) stream id length(1 byte) stream id(no fixed length),sequence number(8 bytes)
 
Method Summary
 hypercast.Extension Clone()
          Return a new FSM_Extension extension instance by cloning this extension.
 byte getExtensionType()
          Returns the type of this extension.
 int getSize()
          Return the length of the byte array of this extension.
 byte[] toByteArray()
          Return the byte array of the extension header
 
Methods inherited from class hypercast.Extension
createExtension, createExtension, createExtension, createExtension, createExtension, isValidHeader, toString, typeToString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FSM_Extension

public FSM_Extension(short fsmid,
                     byte type,
                     byte[] uniqueID)
Constructs an Extension header object for Message-FSM-data finite state machine id (2 bytes) type(1 byte) byte array of the message id (8 bytes) // TODO: I think that this comment is wrong, should be 4 byte


FSM_Extension

public FSM_Extension(short fsmid,
                     byte type,
                     byte[] uniqueID,
                     byte deliveryMode,
                     hypercast.I_LogicalAddress la)
Constructs an Extension header object for FSM-Control finite state machine id (2 bytes) type(1 byte) byte array of the message id (8 bytes), delivery mode (1 byte),the logical address of the root


FSM_Extension

public FSM_Extension(short fsmid,
                     byte type,
                     byte[] uniqueID,
                     hypercast.I_LogicalAddress la)
Constructs an Extension header object for FSM-Control finite state machine id (2 bytes) type(1 byte) byte array of the message id (8 bytes), delivery mode (1 byte),the logical address of the root


FSM_Extension

public FSM_Extension(short fsmid,
                     byte type,
                     byte[] uniqueID,
                     long sequenceNumber)
Constructs an Extension header object for Stream-Data header(1 byte) type(1 byte) finite state machine id (2 bytes) stream id length(1 byte) stream id(no fixed length),sequence number(8 bytes)


FSM_Extension

public FSM_Extension(short fsmid,
                     byte type,
                     byte[] uniqueID,
                     byte[] controlData)
Constructs an Extension header object for Stream-Control finite state machine id (2 bytes) type (1 byte) unique id (no fixed length) control payload (no fixed length)


FSM_Extension

public FSM_Extension(hypercast.FSM_Extension se)
Constructs an SecurityExtension Extension from an existing one.

Method Detail

Clone

public hypercast.Extension Clone()
Return a new FSM_Extension extension instance by cloning this extension.

Specified by:
Clone in class Extension

getExtensionType

public byte getExtensionType()
Returns the type of this extension.

Specified by:
getExtensionType in class Extension

toByteArray

public byte[] toByteArray()
Return the byte array of the extension header

Specified by:
toByteArray in class Extension

getSize

public int getSize()
Return the length of the byte array of this extension.

Specified by:
getSize in class Extension