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


Field Summary
protected  GenericDiscreteDistribution[] chapeauSigmas
           
protected  CodecAV codec
           
protected  int currentSource
           
protected  GenericContinuousDistribution[] distributionsTest
           
protected  MGInfModel[] models
           
protected  java.lang.String name
           
protected  double[] paramsPoisson
           
protected  GenericDiscreteDistribution[] sigmas
           
protected  int[] sourceNumber
           
protected  int totalSourceNumber
           
protected  short unite
           
 
Fields inherited from class test.model.GenericModelTest
fichierReq, graphic, resultFile, resultFileName, tpsSimul
 
Fields inherited from interface multimedia.codec.VideoCodecExample
H261, MJPEG, MPEG, MPEG4
 
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
 
Fields inherited from interface statistic.RandomGenerator
random
 
Constructor Summary
MGInfAggregatedTest(MGInfModel[] models, int tpsSimul, java.lang.String fichierReq, VideoCodec codec, java.lang.String name, short unite, boolean graphic)
           
 
Method Summary
 void createResultFile(int[] slotValues)
           
 void createResultFile(int[] slotValues, java.lang.String fileName)
           
 int[] getDataDistributionInSlot()
          Method getDateDistributionInSlot.
 int[] getDataSlotTry()
           
 int[] getDataSpecificDistributionInSlot(int[] slots)
          Method getDateSpecificDistributionInSlot.
 java.lang.String getPrettyPrint(int[] slots)
           
 int getSlotNumber()
          Method getSlotNumber.
 double getTheoriticalDataAmount()
           
 double getTheoriticalThroughput()
           
 int getTotalDataAmount(int[] newSlots)
           
 java.lang.String getUnitPrint()
           
 void initPoissonParameter()
           
static void main(java.lang.String[] args)
          Methode: Main
 int sourceTypeChoice()
           
 
Methods inherited from class test.model.GenericModelTest
getResultFileName, getResultFileSize, getTestDuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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