DRCL J-Sim API

drcl.inet.contract
Class DatagramContract.Message

java.lang.Object
  extended bydrcl.comp.Message
      extended bydrcl.inet.contract.DatagramContract.Message
All Implemented Interfaces:
java.lang.Cloneable, ObjectCloneable
Enclosing class:
DatagramContract

public static class DatagramContract.Message
extends Message


Constructor Summary
DatagramContract.Message()
           
DatagramContract.Message(java.lang.Object data_, int size_, long src_, long dest_, int port_, long tos_)
          Datagram sending contract between application and transport.
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this object.
 java.lang.Object getContent()
           
 Contract getContract()
          Returns the associated contract of this message.
 long getDestination()
           
 int getDestinationPort()
           
 int getPort()
           
 int getSize()
           
 long getSource()
           
 int getSourcePort()
           
 long getTOS()
           
 void setSource(long src_)
           
 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

DatagramContract.Message

public DatagramContract.Message()

DatagramContract.Message

public DatagramContract.Message(java.lang.Object data_,
                                int size_,
                                long src_,
                                long dest_,
                                int port_,
                                long tos_)
Datagram sending contract between application and transport.

Parameters:
data_ - the datagram.
src_ - source.
dest_ - destination.
tos_ - type of service.
Method Detail

getContent

public java.lang.Object getContent()

getSize

public int getSize()

getSource

public long getSource()

setSource

public void setSource(long src_)

getDestination

public long getDestination()

getTOS

public long getTOS()

getDestinationPort

public int getDestinationPort()

getSourcePort

public int getSourcePort()

getPort

public int getPort()

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 ~