DRCL J-Sim API

drcl.inet.mac
Class RadioPropagationQueryContract.Message

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

public static class RadioPropagationQueryContract.Message
extends Message


Constructor Summary
RadioPropagationQueryContract.Message()
           
RadioPropagationQueryContract.Message(double loss_)
          Constructor.
RadioPropagationQueryContract.Message(double Lambda_, double Xs_, double Ys_, double Zs_, double Xr_, double Yr_, double Zr_)
          Constructor.
RadioPropagationQueryContract.Message(double Lambda_, double Xs_, double Ys_, double Zs_, double Xr_, double Yr_, double Zr_, double loss_)
          Constructor.
RadioPropagationQueryContract.Message(long sid_, double Lambda_, double Xs_, double Ys_, double Zs_, double Xr_, double Yr_, double Zr_)
          Constructor.
RadioPropagationQueryContract.Message(long sid_, double Lambda_, double Xs_, double Ys_, double Zs_, double Xr_, double Yr_, double Zr_, double loss_)
          Constructor.
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this object.
 Contract getContract()
          Returns the associated contract of this message.
 double getDxy()
          calculate the distance of two nodes on the X-Y plane, assuming X and Y are the Cartesian coordinates.
 double getDxyz()
          calculate the distance of two nodes.
 double getDxyz2()
          Calculate the distance of two nodes.
 double getLambda()
           
 double getLoss()
           
 long getSid()
           
 double getXr()
           
 double getXs()
           
 double getYr()
           
 double getYs()
           
 double getZr()
           
 double getZs()
           
 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

RadioPropagationQueryContract.Message

public RadioPropagationQueryContract.Message()

RadioPropagationQueryContract.Message

public RadioPropagationQueryContract.Message(double Lambda_,
                                             double Xs_,
                                             double Ys_,
                                             double Zs_,
                                             double Xr_,
                                             double Yr_,
                                             double Zr_)
Constructor.

Parameters:
Lambda_ - the wavelength
Xs_ - the x coordinate of the sending node
Ys_ - the y coordinate of the sending node
Zs_ - the z coordinate of the sending node
Xr_ - the x coordinate of the receiving node
Yr_ - the y coordinate of the receiving node
Zr_ - the z coordinate of the receiving node

RadioPropagationQueryContract.Message

public RadioPropagationQueryContract.Message(long sid_,
                                             double Lambda_,
                                             double Xs_,
                                             double Ys_,
                                             double Zs_,
                                             double Xr_,
                                             double Yr_,
                                             double Zr_)
Constructor.

Parameters:
Lambda_ - the wavelength
sid_ -
Xs_ - the x coordinate of the sending node
Ys_ - the y coordinate of the sending node
Zs_ - the z coordinate of the sending node
Xr_ - the x coordinate of the receiving node
Yr_ - the y coordinate of the receiving node
Zr_ - the z coordinate of the receiving node

RadioPropagationQueryContract.Message

public RadioPropagationQueryContract.Message(double Lambda_,
                                             double Xs_,
                                             double Ys_,
                                             double Zs_,
                                             double Xr_,
                                             double Yr_,
                                             double Zr_,
                                             double loss_)
Constructor.

Parameters:
Lambda_ - the wavelength
Xs_ - the x coordinate of the sending node
Ys_ - the y coordinate of the sending node
Zs_ - the z coordinate of the sending node
Xr_ - the x coordinate of the receiving node
Yr_ - the y coordinate of the receiving node
Zr_ - the z coordinate of the receiving node
loss_ - the path loss in the reply

RadioPropagationQueryContract.Message

public RadioPropagationQueryContract.Message(long sid_,
                                             double Lambda_,
                                             double Xs_,
                                             double Ys_,
                                             double Zs_,
                                             double Xr_,
                                             double Yr_,
                                             double Zr_,
                                             double loss_)
Constructor.

Parameters:
Lambda_ - the wavelength
sid_ -
Xs_ - the x coordinate of the sending node
Ys_ - the y coordinate of the sending node
Zs_ - the z coordinate of the sending node
Xr_ - the x coordinate of the receiving node
Yr_ - the y coordinate of the receiving node
Zr_ - the z coordinate of the receiving node
loss_ - the path loss in the reply

RadioPropagationQueryContract.Message

public RadioPropagationQueryContract.Message(double loss_)
Constructor.

Parameters:
loss_ - the path loss
Method Detail

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

getSid

public long getSid()

getXs

public double getXs()

getYs

public double getYs()

getZs

public double getZs()

getXr

public double getXr()

getYr

public double getYr()

getZr

public double getZr()

getLambda

public double getLambda()

getLoss

public double getLoss()

getDxy

public double getDxy()
calculate the distance of two nodes on the X-Y plane, assuming X and Y are the Cartesian coordinates.


getDxyz

public double getDxyz()
calculate the distance of two nodes. Assume X, Y and Z are the Cartesian coordinates.


getDxyz2

public double getDxyz2()
Calculate the distance of two nodes. Assume x represent longitude, y represent latitude, z represent altitude.


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 ~