test.model
Class OnOffTest

java.lang.Object
  |
  +--test.model.GenericModelTest
        |
        +--test.model.OnOffTest
All Implemented Interfaces:
AudioCodecExample, multimedia.codec.AudioCodecRTPIP, RandomGenerator

public class OnOffTest
extends GenericModelTest
implements RandomGenerator, AudioCodecExample


Field Summary
 
Fields inherited from interface statistic.RandomGenerator
random
 
Fields inherited from interface multimedia.codec.AudioCodecExample
G711, G723_1, G726, G728, G729
 
Constructor Summary
OnOffTest()
           
OnOffTest(OnOffModel model, int tpsSimul, java.lang.String fichierReq, boolean graphic)
          OnOffTest
 
Method Summary
 double[][] computePeriodOnDuration()
           
 void createDistributionPacketFile()
          Method genererDistributionPacketFile.
 void createPeriodFile(int period)
          Method genererPeriodFile.
static void main(java.lang.String[] args)
          Methode: Main
 double[] rateEvolutionComputation()
           
 void tracePeriodTimeEvolution()
           
 void traceRateEvolution()
          Several Methods which permit to plot some informations
 
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

OnOffTest

public OnOffTest()

OnOffTest

public OnOffTest(OnOffModel model,
                 int tpsSimul,
                 java.lang.String fichierReq,
                 boolean graphic)
          throws java.io.IOException
OnOffTest

Parameters:
model - it must be an On-Off Model
tpsSimul - it is the test duration in minutes
fichierReq - it's a file where results will be enregistrated
graphic -
Throws:
java.io.IOException
Method Detail

computePeriodOnDuration

public double[][] computePeriodOnDuration()

tracePeriodTimeEvolution

public void tracePeriodTimeEvolution()

rateEvolutionComputation

public double[] rateEvolutionComputation()

traceRateEvolution

public void traceRateEvolution()
Several Methods which permit to plot some informations


createPeriodFile

public void createPeriodFile(int period)
                      throws java.io.IOException
Method genererPeriodFile. Permet de generer un fichier ou ne s'affiche que les periodes On ou que les periodes OFF

Parameters:
period - ON ou OFF au choix
Throws:
java.io.IOException

createDistributionPacketFile

public void createDistributionPacketFile()
                                  throws java.io.IOException
Method genererDistributionPacketFile. Definit afin d'etudier la repartion des paquets durant Ton Cree un fichier indiquant le tps inter-paquet des paquets crees pendant une periode ON Et en fin de period, on ajoute la phrase suivante: Number of packet generated during this ON period:

Throws:
java.io.IOException

main

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

java.io.IOException