test.model
Class MGInfTest

java.lang.Object
  |
  +--test.model.GenericModelTest
        |
        +--test.model.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

Version:
0.1, 25/10/02
Author:
mladoue

Field Summary
 
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)
          Donne la quantite de donnee generee par slot dans le cas ou ou on considere une distribution gamma ou lognormale...
 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.model.GenericModelTest
getResultFileName, getResultFileSize, getTestDuration
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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