DRCL J-Sim API

drcl.inet.mac
Class ARPContract.Message

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

public static class ARPContract.Message
extends Message

A Message class defined for carrying information between ARP components and LL components.


Constructor Summary
ARPContract.Message()
          Constructor.
ARPContract.Message(int opCode_, long dst_, java.lang.Object data_)
          Constructor.
ARPContract.Message(int opCode_, java.lang.Object data_)
          Constructor.
 
Method Summary
 java.lang.Object clone()
          Clones itself.
 Contract getContract()
          Gets an instance of ARPContract class, which is a static field defined in ARPContract class.
 java.lang.String toString(java.lang.String separator_)
          Converts the message content to a String object.
 
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

ARPContract.Message

public ARPContract.Message()
Constructor.


ARPContract.Message

public ARPContract.Message(int opCode_,
                           java.lang.Object data_)
Constructor.

Parameters:
opCode_ - operation code.
data_ - the packet being exchanged between ARP and LL.

ARPContract.Message

public ARPContract.Message(int opCode_,
                           long dst_,
                           java.lang.Object data_)
Constructor. This is used while contructing an ARP request message.

Parameters:
opCode_ - operation code.
dst_ - the destination IP address whose MAC address to be resolved.
data_ - the packet being exchanged between ARP and LL.
Method Detail

clone

public java.lang.Object clone()
Clones itself.

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

getContract

public Contract getContract()
Gets an instance of ARPContract class, which is a static field defined in ARPContract class.

Specified by:
getContract in class Message

toString

public java.lang.String toString(java.lang.String separator_)
Converts the message content to a String object.

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 ~