multimedia.generation
Class AggregationMGInfFlowsGeneration

java.lang.Object
  |
  +--multimedia.generation.GenericGeneration
        |
        +--multimedia.generation.AggregationMGInfFlowsGeneration
All Implemented Interfaces:
AudioCodecExample, multimedia.codec.AudioCodecRTPIP, multimedia.MovieExample, RandomGenerator, multimedia.codec.VideoCodecEurope, VideoCodecExample, VideoExample

public class AggregationMGInfFlowsGeneration
extends GenericGeneration
implements AudioCodecExample, VideoExample, VideoCodecExample, RandomGenerator


Field Summary
protected  CodecAV[] codecs
           
protected  MGInfAggregateModel model
           
protected  int[] sourceNumber
           
protected  int totalSourceNumber
           
protected  VideoDefinition[] vds
           
 
Fields inherited from class multimedia.generation.GenericGeneration
fichierReq, graphic, resultFile, tpsSimul
 
Fields inherited from interface multimedia.codec.AudioCodecExample
G711, G723_1, G726, G728, G729
 
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 multimedia.codec.VideoCodecExample
H261, MJPEG, MPEG, MPEG4
 
Fields inherited from interface statistic.RandomGenerator
random
 
Constructor Summary
AggregationMGInfFlowsGeneration(VideoDefinition[] vds, int[] sourceNumber, java.lang.String fichierReq)
          Method AggregateMGInfFlowGeneration.
 
Method Summary
 void genererVideoScenario(java.lang.String serverName, int serverPort)
          genererScenario: generate a scenario file with information
 int getTotalSourceNumber()
           
static void main(java.lang.String[] args)
          Methode: Main pour tester la classe
 void scenarioGeneration()
          To generate scenarii which can be played by the trafic generator
 void scenarioGeneration(java.lang.String serverName, int portNumber)
           
 int sourceTypeChoice()
           
 
Methods inherited from class multimedia.generation.GenericGeneration
getDuration, getGeneratedPacketNumber, getGraphicMode, getResultFileName, getResultFileSize, setDuration, setGraphicMode, setResultFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

codecs

protected CodecAV[] codecs

model

protected MGInfAggregateModel model

vds

protected VideoDefinition[] vds

sourceNumber

protected int[] sourceNumber

totalSourceNumber

protected int totalSourceNumber
Constructor Detail

AggregationMGInfFlowsGeneration

public AggregationMGInfFlowsGeneration(VideoDefinition[] vds,
                                       int[] sourceNumber,
                                       java.lang.String fichierReq)
                                throws java.io.IOException
Method AggregateMGInfFlowGeneration.

Parameters:
vds -
fichierReq - scenario file name
Throws:
java.io.IOException
Method Detail

scenarioGeneration

public void scenarioGeneration()
                        throws java.io.IOException
Description copied from class: GenericGeneration
To generate scenarii which can be played by the trafic generator

Specified by:
scenarioGeneration in class GenericGeneration
java.io.IOException

scenarioGeneration

public void scenarioGeneration(java.lang.String serverName,
                               int portNumber)
                        throws java.io.IOException
Specified by:
scenarioGeneration in class GenericGeneration
java.io.IOException

genererVideoScenario

public void genererVideoScenario(java.lang.String serverName,
                                 int serverPort)
                          throws java.io.IOException,
                                 java.lang.IllegalArgumentException
genererScenario: generate a scenario file with information

Parameters:
serverName - gives the server name
serverPort - gives the number port Return a file formated as follow:
date : serverName
modelName IAmoy : tpsIP_codec numero de port : number packet size :size bytes
date: t + testTime s, IA : interpacketIime : 0.000000 s
java.io.IOException
java.lang.IllegalArgumentException

getTotalSourceNumber

public int getTotalSourceNumber()

sourceTypeChoice

public int sourceTypeChoice()

main

public static void main(java.lang.String[] args)
Methode: Main pour tester la classe