|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.comp.Component
drcl.net.Module
drcl.inet.mac.WirelessPhy
This class simulates many functions of a wireless physical card. It piggy-backs
various information (ie. location of the sending node, the transmission power
of data frame etc.) to the mac layer data frame and passes that fram to the channel.
While receiving a data frame from the channel component, it determines whether
that frame can be decoded correctly by consulting RadioPropagationModel
and passes the decodable frame to the mac layer. It also contains a EnergyModel
component to track the energy consumption.
| Nested Class Summary |
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary | |
static java.lang.String |
ANTENNA_PORT_ID
|
static java.lang.String |
CHANNEL_PORT_ID
|
static java.lang.String |
CONFIG_PORT_ID
|
static java.lang.String |
ENERGY_PORT_ID
|
static java.lang.String |
MOBILITY_PORT_ID
|
static java.lang.String |
PROPAGATION_PORT_ID
|
| Fields inherited from class drcl.net.Module |
downPort, PortGroup_DOWN, PortGroup_UP, upPort |
| Constructor Summary | |
WirelessPhy()
Constructor. |
|
| Method Summary | |
void |
_start()
|
void |
configureCard(java.lang.String card_)
Configures the card parameters. |
void |
duplicate(java.lang.Object source_)
Duplicates the content of source_, including ID, name, child components and connections among them, to this component. |
Port |
getChannelPort()
|
java.lang.String |
getName()
Returns the (informational) name of the component. |
long |
getNid(long nid_)
Gets the node id. |
void |
setCPThresh(double CPThresh_)
|
void |
setCSThresh(double CSThresh_)
|
void |
setFreq(double freq_)
Sets the frequency |
void |
setNid(long nid_)
Sets the node id. |
void |
setPt(double Pt_)
Sets the transmission power |
void |
setPwl(int pwl_)
Sets the power level. |
void |
setRxThresh(double RXThresh_)
|
void |
timeout(java.lang.Object data_)
Preriodically timeout to update energy consumption even if it is in idle state. |
| Methods inherited from class drcl.net.Module |
cancelTimeout, setTimeout, setTimeoutAt |
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String CONFIG_PORT_ID
public static final java.lang.String CHANNEL_PORT_ID
public static final java.lang.String PROPAGATION_PORT_ID
public static final java.lang.String MOBILITY_PORT_ID
public static final java.lang.String ENERGY_PORT_ID
public static final java.lang.String ANTENNA_PORT_ID
| Constructor Detail |
public WirelessPhy()
| Method Detail |
public void _start()
public void configureCard(java.lang.String card_)
public java.lang.String getName()
Component
getName in class Componentpublic void duplicate(java.lang.Object source_)
Component
duplicate in interface ObjectDuplicableduplicate in class Modulepublic Port getChannelPort()
public void setNid(long nid_)
public long getNid(long nid_)
public void setPt(double Pt_)
public void setPwl(int pwl_)
public void setRxThresh(double RXThresh_)
public void setCSThresh(double CSThresh_)
public void setCPThresh(double CPThresh_)
public void setFreq(double freq_)
public void timeout(java.lang.Object data_)
Module.setTimeout(Object, double),
Module.setTimeoutAt(Object, double)
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||