DRCL J-Sim API

drcl.inet.sensorsim
Class SensorAppWirelessAgentContract.Message

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

public static class SensorAppWirelessAgentContract.Message
extends Message

This class implements the underlying message of the contract.


Constructor Summary
SensorAppWirelessAgentContract.Message()
           
SensorAppWirelessAgentContract.Message(int UniBcast_flag_, int type_, double snr_, int eventID_)
          Constructor for broadcast packets
SensorAppWirelessAgentContract.Message(int UniBcast_flag_, long dst_, int size_, int type_, double snr_, int eventID_, long target_nid_)
          Constructor for unicast packets
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this object.
 Contract getContract()
          Returns the associated contract of this message.
 long getDst()
           
 int getEventID()
           
 int getFlag()
           
 int getSize()
           
 double getSNR()
           
 long getTargetNid()
           
 int getType()
           
 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

SensorAppWirelessAgentContract.Message

public SensorAppWirelessAgentContract.Message()

SensorAppWirelessAgentContract.Message

public SensorAppWirelessAgentContract.Message(int UniBcast_flag_,
                                              long dst_,
                                              int size_,
                                              int type_,
                                              double snr_,
                                              int eventID_,
                                              long target_nid_)
Constructor for unicast packets


SensorAppWirelessAgentContract.Message

public SensorAppWirelessAgentContract.Message(int UniBcast_flag_,
                                              int type_,
                                              double snr_,
                                              int eventID_)
Constructor for broadcast packets

Method Detail

getDst

public long getDst()

getSize

public int getSize()

getType

public int getType()

getSNR

public double getSNR()

getEventID

public int getEventID()

getFlag

public int getFlag()

getTargetNid

public long getTargetNid()

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 ~