DRCL J-Sim API

drcl.comp.lib.bytestream
Class ByteStreamContract.Message

java.lang.Object
  extended bydrcl.comp.Message
      extended bydrcl.comp.lib.bytestream.ByteStreamContract.Message
All Implemented Interfaces:
java.lang.Cloneable, ObjectCloneable
Enclosing class:
ByteStreamContract

public static class ByteStreamContract.Message
extends Message


Constructor Summary
ByteStreamContract.Message()
           
ByteStreamContract.Message(int type_)
          Query
ByteStreamContract.Message(int type_, byte[] buf_, int len_)
          Send
ByteStreamContract.Message(int type_, byte[] buf_, int offset_, int len_)
          Send
ByteStreamContract.Message(int type_, int size_)
          Report
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this object.
 byte[] getByteArray()
           
 Contract getContract()
          Returns the associated contract of this message.
 int getLength()
           
 int getOffset()
           
 int getType()
           
 boolean isQuery()
           
 boolean isReport()
           
 boolean isSend()
           
 java.lang.String toString(java.lang.String separator_)
          Prints the content of the message by separating each field with the separator string.
 
Methods inherited from class drcl.comp.Message
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteStreamContract.Message

public ByteStreamContract.Message()

ByteStreamContract.Message

public ByteStreamContract.Message(int type_)
Query


ByteStreamContract.Message

public ByteStreamContract.Message(int type_,
                                  int size_)
Report


ByteStreamContract.Message

public ByteStreamContract.Message(int type_,
                                  byte[] buf_,
                                  int len_)
Send


ByteStreamContract.Message

public ByteStreamContract.Message(int type_,
                                  byte[] buf_,
                                  int offset_,
                                  int len_)
Send

Method Detail

getByteArray

public byte[] getByteArray()

getOffset

public int getOffset()

getLength

public int getLength()

isSend

public boolean isSend()

isQuery

public boolean isQuery()

isReport

public boolean isReport()

getType

public int getType()

clone

public java.lang.Object clone()
Description copied from interface: ObjectCloneable
Returns a clone of this object.

Specified by:
clone in interface ObjectCloneable
Specified by:
clone in class Message

getContract

public Contract getContract()
Description copied from class: Message
Returns the associated contract of this message.

Specified by:
getContract in class Message

toString

public java.lang.String toString(java.lang.String separator_)
Description copied from class: Message
Prints the content of the message by separating each field with the separator string.

Specified by:
toString in class Message

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~