|
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.sensorsim.SensorPhy
This class implements the sensor physical layer.
| Nested Class Summary |
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary | |
static java.lang.String |
CHANNEL_PORT_ID
|
static java.lang.String |
CONFIG_PORT_ID
|
static java.lang.String |
MOBILITY_PORT_ID
|
static double |
NOISE_MEAN
|
static double |
NOISE_STRENGTH
|
static double |
NOISE_VAR
|
static java.lang.String |
PROPAGATION_PORT_ID
|
static long |
SEED_RNG
|
static double |
TARGET_STRENGTH
|
static java.lang.String |
TO_AGENT_PORT_ID
|
| Fields inherited from class drcl.net.Module |
downPort, PortGroup_DOWN, PortGroup_UP, upPort |
| Constructor Summary | |
SensorPhy()
|
|
SensorPhy(long nid_,
double Radius_)
|
|
| Method Summary | |
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()
Gets the port that connects to the sensor channel |
java.lang.String |
getName()
Returns the (informational) name of the component. |
long |
getNid(long nid_)
Gets the ID of the node |
double |
getNoisePower()
Gets the noise power |
double |
getPt()
|
double |
getRadius()
Gets the transmission radius |
double |
getRxThresh()
Gets the receiving threshold |
double |
getTargetPower()
Gets the target power |
void |
setNid(long nid_)
Sets the ID of the node |
void |
setNoiseStrength(double noiseStrength_)
Sets the noise strength |
void |
setPt(double Pt_)
|
void |
setRadius(double Radius_)
Sets the transmission radius |
void |
setRxThresh(double RxThresh_)
Sets the receiving threshold |
void |
setTargetPower(double Pt_)
Sets the target power |
| 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 double TARGET_STRENGTH
public static final double NOISE_STRENGTH
public static final double NOISE_MEAN
public static final double NOISE_VAR
public static final long SEED_RNG
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 TO_AGENT_PORT_ID
| Constructor Detail |
public SensorPhy(long nid_,
double Radius_)
public SensorPhy()
| Method Detail |
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 setRadius(double Radius_)
public double getRadius()
public void setRxThresh(double RxThresh_)
public double getRxThresh()
public double getNoisePower()
public void setNoiseStrength(double noiseStrength_)
public void setTargetPower(double Pt_)
public void setPt(double Pt_)
public double getTargetPower()
public double getPt()
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||