test
Class MGInfTest

java.lang.Object
  |
  +--test.GenericModelTest
        |
        +--test.MGInfTest
All Implemented Interfaces:
multimedia.MovieExample, multimedia.codec.VideoCodecEurope, VideoCodecExample, VideoExample

public class MGInfTest
extends GenericModelTest
implements VideoCodecExample, VideoExample

MGInfTest it's defined to test MGInfGeneration class


Field Summary
protected static short BYTES
           
protected  CodecAV codec
           
protected static short KILOBYTES
           
protected static short MEGABYTES
           
protected  MGInfModel model
           
protected  int N
           
protected  java.lang.String name
           
protected  short unite
           
 
Fields inherited from class test.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
 
Constructor Summary
MGInfTest(MGInfModel model, 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[] getDataSpecificDistributionInSlot(int[] slots)
          Method getDateSpecificDistributionInSlot.
 int getSlotNumber()
          Method getSlotNumber.
static void main(java.lang.String[] args)
          Methode: Main
 double[] rateEvolutionComputation(int[] newSlots)
           
 void traceComparaisonOfDataPerSlotDistribution()
          Method traceComparaisonOfDataPerSlotDistribution : this permit to compare throw a plot two array of data Here it is defined to compare Xi and Yi
 void traceDataPerSlotDistribution(int[] slotValues)
          Method traceDataPerSlotDistribution : this permit to plot an array of data Here it is defined to plot data per slots
 void traceRateEvolution(int[] newSlots)
          Method traceRateEvolution
 
Methods inherited from class test.GenericModelTest
getResultFileName, getResultFileSize, getTestDuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

protected MGInfModel model

codec

protected CodecAV codec

name

protected java.lang.String name

unite

protected short unite

N

protected int N

BYTES

protected static short BYTES

KILOBYTES

protected static short KILOBYTES

MEGABYTES

protected static short MEGABYTES
Constructor Detail

MGInfTest

public MGInfTest(MGInfModel model,
                 int tpsSimul,
                 java.lang.String fichierReq,
                 VideoCodec codec,
                 java.lang.String name,
                 short unite,
                 boolean 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

rateEvolutionComputation

public double[] rateEvolutionComputation(int[] newSlots)
                                  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

traceRateEvolution

public void traceRateEvolution(int[] newSlots)
                        throws java.io.IOException
Method traceRateEvolution

Parameters:
newSlots -
Throws:
java.io.IOException

traceDataPerSlotDistribution

public void traceDataPerSlotDistribution(int[] slotValues)
Method traceDataPerSlotDistribution : this permit to plot an array of data Here it is defined to plot data per slots

Parameters:
slotValues -

traceComparaisonOfDataPerSlotDistribution

public void traceComparaisonOfDataPerSlotDistribution()
                                               throws java.io.IOException
Method traceComparaisonOfDataPerSlotDistribution : this permit to compare throw a plot two array of data Here it is defined to compare Xi and Yi

Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Methode: Main

java.io.IOException