edu.cmu.emulator.signal
Class TimePlaybackLossModel

java.lang.Object
  extended by edu.cmu.emulator.signal.TimePlaybackLossModel
All Implemented Interfaces:
LossModel

public class TimePlaybackLossModel
extends Object
implements LossModel


Field Summary
private static boolean debug
           
protected  long durationMillis
           
protected  double[] gain
           
static int IM_LINEAR
           
static int IM_NONE
           
protected  int interpolationMode
           
protected  int lastBin
           
protected  boolean loop
           
protected  String lossTraceName
           
protected  double[] time
           
static String TYPE
           
 
Constructor Summary
TimePlaybackLossModel()
           
TimePlaybackLossModel(int interpolationMode)
           
 
Method Summary
protected  int getIndex(double timeSecs)
           
protected  int getIndex(double timeSecs, int min, int max)
           
 double getLoss(Antenna a1, Antenna a2, long timeMillis)
           
 double getLoss(double timeSecs)
           
 String getLossTrace()
           
 String getType()
           
 void parseSubClass(Element lossModelDef)
           -21.0
 void readTrace(Element traceElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lossTraceName

protected String lossTraceName

interpolationMode

protected int interpolationMode

time

protected double[] time

gain

protected double[] gain

lastBin

protected int lastBin

durationMillis

protected long durationMillis

loop

protected boolean loop

TYPE

public static final String TYPE
See Also:
Constant Field Values

IM_NONE

public static final int IM_NONE
See Also:
Constant Field Values

IM_LINEAR

public static final int IM_LINEAR
See Also:
Constant Field Values

debug

private static final boolean debug
See Also:
Constant Field Values
Constructor Detail

TimePlaybackLossModel

public TimePlaybackLossModel()

TimePlaybackLossModel

public TimePlaybackLossModel(int interpolationMode)
Method Detail

getLossTrace

public String getLossTrace()

getType

public String getType()
Specified by:
getType in interface LossModel

getLoss

public double getLoss(Antenna a1,
                      Antenna a2,
                      long timeMillis)
Specified by:
getLoss in interface LossModel

getLoss

public double getLoss(double timeSecs)

getIndex

protected int getIndex(double timeSecs)

getIndex

protected int getIndex(double timeSecs,
                       int min,
                       int max)

parseSubClass

public void parseSubClass(Element lossModelDef)
-21.0

Specified by:
parseSubClass in interface LossModel

readTrace

public void readTrace(Element traceElement)
               throws DeserializationException
Throws:
DeserializationException


Copyright © 2013. All Rights Reserved.