|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.emulator.signal.RiceanFadingModel
public class RiceanFadingModel
Dummy Ricean fading model implementation. This should be replaced with a real implementation.
Field Summary | |
---|---|
protected static int |
channelI
|
protected static int |
channelQ
|
protected Antenna |
destAntenna
|
protected float[][] |
fadingTable
Table of fading factors. |
protected static HashMap |
fadingTableMap
|
static double |
fcarrier_GHz
|
static double |
FT_DURATION_SEC
|
static double |
FT_RESOLUTION_SEC
|
protected int |
ftOffset
This instance's offset within the fading table. |
protected double |
k
|
protected static Logger |
log
|
static double |
MAX_SPEED_MPS
|
protected double |
minSpeed
|
protected Path |
path
|
static int |
SIZE_FADING_TABLE
|
protected double |
speed
|
protected Antenna |
srcAntenna
|
static String |
TYPE
|
Constructor Summary | |
---|---|
protected |
RiceanFadingModel()
Constructor. |
|
RiceanFadingModel(double k,
double minSpeed)
|
|
RiceanFadingModel(double k,
double minSpeed,
long seed)
Constructor for manual use. |
Method Summary | |
---|---|
protected static float[][] |
createFadingTable(double K,
int ftSize)
Precompute the fading table. |
protected static float[][] |
getFadingTable(double k)
|
double |
getK()
|
double |
getLossI(Antenna a1,
Antenna a2,
long timeMillis)
Calculate the current fading for this fading model instance at the time given. |
double |
getLossQ(Antenna a1,
Antenna a2,
long timeMillis)
Calculate the current fading for this fading model instance at the time given. |
double |
getMinSpeed()
|
protected static float[][] |
getOrCreateFadingTable(double k)
|
double |
getSpeed()
|
String |
getType()
|
void |
initPathFading(Path path)
|
static void |
main(String[] args)
|
void |
newValue(RelSpatialAttribute rsAttrib,
long timeMillis,
Object value)
|
void |
parseSubClass(Element fadingModelDef)
Parse an XML definition for RiceanFadingModel. |
void |
stopPathFading(Path path)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Path path
protected Antenna srcAntenna
protected Antenna destAntenna
protected double k
protected double minSpeed
protected double speed
protected float[][] fadingTable
protected int ftOffset
protected static int channelI
protected static int channelQ
protected static HashMap fadingTableMap
public static final String TYPE
public static final int SIZE_FADING_TABLE
public static final double MAX_SPEED_MPS
public static final double fcarrier_GHz
public static double FT_DURATION_SEC
public static double FT_RESOLUTION_SEC
protected static Logger log
Constructor Detail |
---|
protected RiceanFadingModel()
public RiceanFadingModel(double k, double minSpeed, long seed)
public RiceanFadingModel(double k, double minSpeed)
Method Detail |
---|
protected static float[][] createFadingTable(double K, int ftSize)
protected static float[][] getOrCreateFadingTable(double k)
protected static float[][] getFadingTable(double k)
public String getType()
getType
in interface FadingModel
public double getK()
public double getSpeed()
public double getMinSpeed()
public void initPathFading(Path path)
initPathFading
in interface FadingModel
public void stopPathFading(Path path)
stopPathFading
in interface FadingModel
public void newValue(RelSpatialAttribute rsAttrib, long timeMillis, Object value)
newValue
in interface RSAListener
public double getLossI(Antenna a1, Antenna a2, long timeMillis)
getLossI
in interface FadingModel
timeMillis
- the time to calculate fading for
public double getLossQ(Antenna a1, Antenna a2, long timeMillis)
getLossQ
in interface FadingModel
timeMillis
- the time to calculate fading for
public void parseSubClass(Element fadingModelDef)
parseSubClass
in interface FadingModel
fadingModelDef
- the root XML elementpublic static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |