edu.cmu.emulator.signal
Class LossTrace

java.lang.Object
  extended by edu.cmu.emulator.signal.LossTrace

public class LossTrace
extends Object


Field Summary
protected  long durationMillis
           
protected  double[] gain
           
protected  String name
           
protected  double[] time
           
 
Constructor Summary
LossTrace()
           
 
Method Summary
 long getDurationMillis()
           
 double[] getGain()
           
 String getName()
           
 double[] getTime()
           
 void parseSubClass(Element lossTraceDef)
           -21.0
static void readLossTraces(String fileName, HashMap lossTraces)
           
 void readTrace(Element traceElement)
           
static ArrayList readTraceFile(String fileName)
           
static ArrayList readTraces(InputStream inStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name

time

protected double[] time

gain

protected double[] gain

durationMillis

protected long durationMillis
Constructor Detail

LossTrace

public LossTrace()
Method Detail

getName

public String getName()

getTime

public double[] getTime()

getGain

public double[] getGain()

getDurationMillis

public long getDurationMillis()

parseSubClass

public void parseSubClass(Element lossTraceDef)
-21.0


readTrace

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

readTraceFile

public static ArrayList readTraceFile(String fileName)
                               throws IOException
Throws:
IOException

readTraces

public static ArrayList readTraces(InputStream inStream)
                            throws IOException
Throws:
IOException

readLossTraces

public static void readLossTraces(String fileName,
                                  HashMap lossTraces)
                           throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.