DRCL J-Sim API

drcl.inet.mac
Class RadioPropagationQueryContract

java.lang.Object
  extended bydrcl.comp.Contract
      extended bydrcl.inet.mac.RadioPropagationQueryContract

public class RadioPropagationQueryContract
extends Contract

The RadioPropagationQueryContract contract. This class defines the message formats used between WirelessPhy and RadioPropagationModel.

Author:
Ye Ge

Nested Class Summary
static class RadioPropagationQueryContract.Message
           
 
Field Summary
static RadioPropagationQueryContract INSTANCE
           
 
Fields inherited from class drcl.comp.Contract
Role_INITIATOR, Role_PEER, Role_REACTOR
 
Constructor Summary
RadioPropagationQueryContract()
           
 
Method Summary
static RadioPropagationQueryContract.Message constructQuery(double Lambda_, double Xs_, double Ys_, double Zs_, double Xr_, double Yr_, double Zr_)
          Constructs a radio propagation query message.
 java.lang.Object getContractContent()
          Returns the content of this contract (format?).
 java.lang.String getName()
           
 
Methods inherited from class drcl.comp.Contract
getRole, match, setRole
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final RadioPropagationQueryContract INSTANCE
Constructor Detail

RadioPropagationQueryContract

public RadioPropagationQueryContract()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in class Contract

getContractContent

public java.lang.Object getContractContent()
Description copied from class: Contract
Returns the content of this contract (format?).

Specified by:
getContractContent in class Contract

constructQuery

public static RadioPropagationQueryContract.Message constructQuery(double Lambda_,
                                                                   double Xs_,
                                                                   double Ys_,
                                                                   double Zs_,
                                                                   double Xr_,
                                                                   double Yr_,
                                                                   double Zr_)
Constructs a radio propagation query message.

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

DRCL J-Sim API

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