test.model
Class MGInfAggregatedTest
java.lang.Object
|
+--test.model.GenericModelTest
|
+--test.model.MGInfAggregatedTest
- All Implemented Interfaces:
- multimedia.MovieExample, RandomGenerator, multimedia.codec.VideoCodecEurope, VideoCodecExample, VideoExample
- public class MGInfAggregatedTest
- extends GenericModelTest
- implements VideoCodecExample, VideoExample, RandomGenerator
Fields inherited from interface multimedia.VideoExample |
BeanHigh, BeanLow, BeanMedium, coeffDistbh, coeffDistbm, coeffDistjph, coeffDistjpm, coeffFuncbh, coeffFuncbl, coeffFuncbm, coeffFuncjph, coeffFuncjpl, coeffFuncjpm, dbh, dbm, djph, djpm, dPacketSize, dSlot, gdbh, gdbm, gdjph, gdjpm, gfbh, gfjpl, gftbh, gftbl, gftbm, gftjph, gftjpl, gftjpm, JurassicParkHigh, JurassicParkLow, JurassicParkMedium, mginfbh, mginfbl, mginfbm, mginfjph, mginfjpl, mginfjpm |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
models
protected MGInfModel[] models
codec
protected CodecAV codec
name
protected java.lang.String name
unite
protected short unite
totalSourceNumber
protected int totalSourceNumber
sourceNumber
protected int[] sourceNumber
sigmas
protected GenericDiscreteDistribution[] sigmas
chapeauSigmas
protected GenericDiscreteDistribution[] chapeauSigmas
distributionsTest
protected GenericContinuousDistribution[] distributionsTest
paramsPoisson
protected double[] paramsPoisson
currentSource
protected int currentSource
MGInfAggregatedTest
public MGInfAggregatedTest(MGInfModel[] models,
int tpsSimul,
java.lang.String fichierReq,
VideoCodec codec,
java.lang.String name,
short unite,
boolean graphic)
throws java.io.IOException
- Parameters:
tpsSimul
- fichierReq
- codec
- name
- graphic
-
- Throws:
java.io.IOException
getDataDistributionInSlot
public int[] getDataDistributionInSlot()
throws java.io.IOException
- Method getDateDistributionInSlot. Donne la quantite de donnee generee par slot dans le cas ou
ou on considere une distribution poissonienne des donnees
- Returns:
- int[]
- Throws:
java.io.IOException
getDataSpecificDistributionInSlot
public int[] getDataSpecificDistributionInSlot(int[] slots)
throws java.io.IOException
- Method getDateSpecificDistributionInSlot. Donne la quantite de donnee generee par slot dans le cas ou
ou on considere une distribution gamma ou lognormale... des donnees
- Parameters:
slots
-
- Throws:
java.io.IOException
getDataSlotTry
public int[] getDataSlotTry()
throws java.io.IOException
java.io.IOException
getSlotNumber
public int getSlotNumber()
- Method getSlotNumber. To calulate N: the number of slots corresponding to duration test
- Returns:
- int
createResultFile
public void createResultFile(int[] slotValues)
throws java.io.IOException
java.io.IOException
createResultFile
public void createResultFile(int[] slotValues,
java.lang.String fileName)
throws java.io.IOException
java.io.IOException
sourceTypeChoice
public int sourceTypeChoice()
getTotalDataAmount
public int getTotalDataAmount(int[] newSlots)
throws java.io.IOException
java.io.IOException
getTheoriticalThroughput
public double getTheoriticalThroughput()
- Returns:
- throughput in MB/s
getTheoriticalDataAmount
public double getTheoriticalDataAmount()
getPrettyPrint
public java.lang.String getPrettyPrint(int[] slots)
throws java.io.IOException
java.io.IOException
getUnitPrint
public java.lang.String getUnitPrint()
initPoissonParameter
public void initPoissonParameter()
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Methode: Main
java.io.IOException