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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 ModeltpsSimul
- it is the test duration in minutesfichierReq
- it's a file where results will be enregistratedgraphic
-
- Throws:
java.io.IOException
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