|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.emulator.signal.GeoFadingModel
public class GeoFadingModel
Implementation of Geometrical V2V fading model 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. |
static double |
MAX_SPEED_MPS
|
protected double |
minSpeed
|
protected Path |
path
|
static int |
SIZE_FADING_TABLE
|
protected String |
specName
|
protected double |
speed
|
protected Antenna |
srcAntenna
|
static String |
TYPE
|
Constructor Summary | |
---|---|
protected |
GeoFadingModel()
Constructor. |
|
GeoFadingModel(String specName,
double minSpeed)
|
|
GeoFadingModel(String specName,
double minSpeed,
long seed)
Constructor for manual use. |
Method Summary | |
---|---|
protected static float[][] |
createFadingTable(String SpecName,
int ftSize)
Precompute the fading table. |
protected static float[][] |
getFadingTable(String specName)
|
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(String specName)
|
String |
getSpecName()
|
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 GeoFadingModel. |
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 String specName
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
Constructor Detail |
---|
protected GeoFadingModel()
public GeoFadingModel(String specName, double minSpeed, long seed)
public GeoFadingModel(String specName, double minSpeed)
Method Detail |
---|
protected static float[][] createFadingTable(String SpecName, int ftSize)
protected static float[][] getOrCreateFadingTable(String specName)
protected static float[][] getFadingTable(String specName)
public String getType()
getType
in interface FadingModel
public String getSpecName()
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 |