multimedia.generation
Class MGInfGeneration

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

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


Field Summary
 
Fields inherited from class multimedia.generation.GenericGeneration
fileName
 
Fields inherited from interface statistic.RandomGenerator
random
 
Fields inherited from interface multimedia.codec.AudioCodecExample
G711, G723_1, G726, G728, G729
 
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
 
Fields inherited from interface utils.definitions.MyUnitDefinitions
BYTES, GIGABYTES, KILOBYTES, MEGABYTES
 
Constructor Summary
MGInfGeneration()
           
MGInfGeneration(MGInfModel model, int tpsSimul, CodecAV codec, int srcNumber)
           
MGInfGeneration(MGInfModel model, int tpsSimul, java.lang.String fichierReq, CodecAV codec, int srcNumber, short unit, boolean graphic)
          MGInfGeneration Methode standard ou on definit tout
MGInfGeneration(VideoDefinition vd, int srcNumber, java.lang.String fileName, short unit, boolean graphic)
          Definit afin de generer du trafic a partir d'un objet " video definition" comprenent modele, tpsSimul, codec...
 
Method Summary
static int[] dataPerSlotDistributionComputation(MGInfModel model, int N)
          To compute the data amount per slot with a poisson process
static int[] dataPerSlotDistributionTransformation(MGInfModel model, int N)
          Method dataPerSlotDistributionTransformation
 CodecAV getCodec()
          Method getCodec : return the codec
 java.lang.String getDocumentName()
          Method getName : return the name/type of the transmit document
 double getSlotDuration()
          Method getSlotDuration : to compute slot duration
static void main(java.lang.String[] args)
          Methode: Main pour tester la classe
 void setCodecAV(CodecAV codec)
           
 void setMGInfModel(MGInfModel mginfModel)
           
 void setMovieName(java.lang.String movieName)
           
 int slotsNumberComputation()
          To compute the number of slots which defines the time evolution
 
Methods inherited from class multimedia.generation.GenericGeneration
changeScenarioFileExtension, getDuration, getGeneratedPacketNumber, getGraphicMode, getResultFileName, getResultFilePath, getResultFileSize, getSourceNumber, getUnit, getUnit, scenarioGeneration, setDuration, setGraphicMode, setResultFileName, setSourceNumber, setUnit, statisticsGeneration
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MGInfGeneration

public MGInfGeneration()
                throws java.io.IOException

MGInfGeneration

public MGInfGeneration(MGInfModel model,
                       int tpsSimul,
                       CodecAV codec,
                       int srcNumber)
                throws java.io.IOException
Parameters:
tpsSimul - test duration
codec - it's a codec
Throws:
java.io.IOException

MGInfGeneration

public MGInfGeneration(MGInfModel model,
                       int tpsSimul,
                       java.lang.String fichierReq,
                       CodecAV codec,
                       int srcNumber,
                       short unit,
                       boolean graphic)
                throws java.io.IOException
MGInfGeneration Methode standard ou on definit tout

Parameters:
tpsSimul - test duration
fichierReq - scenario file name
codec - to specify a codec (video codec in general)
unit - you could choose between: BYTES, KILOBYTES, MEGABYTES, GIGABYTES
graphic - To choose a graphical mode or not
Throws:
java.io.IOException

MGInfGeneration

public MGInfGeneration(VideoDefinition vd,
                       int srcNumber,
                       java.lang.String fileName,
                       short unit,
                       boolean graphic)
                throws java.io.IOException
Definit afin de generer du trafic a partir d'un objet " video definition" comprenent modele, tpsSimul, codec...

Parameters:
vd -
srcNumber -
unit - you could choose between: you could choose betwen: BYTES, KILOBYTES, MEGABYTES, GIGABYTES
graphic - To choose a graphical mode or not
Throws:
java.io.IOException
Method Detail

slotsNumberComputation

public int slotsNumberComputation()
To compute the number of slots which defines the time evolution

Returns:
the number of slots

dataPerSlotDistributionComputation

public static int[] dataPerSlotDistributionComputation(MGInfModel model,
                                                       int N)
To compute the data amount per slot with a poisson process

Parameters:
model -
N - => slot number
Returns:
an array of int => size : [ N ]

dataPerSlotDistributionTransformation

public static int[] dataPerSlotDistributionTransformation(MGInfModel model,
                                                          int N)
Method dataPerSlotDistributionTransformation

Parameters:
model -
N -
Returns:

getSlotDuration

public double getSlotDuration()
Method getSlotDuration : to compute slot duration

Returns:
slot duration in seconds

setMGInfModel

public void setMGInfModel(MGInfModel mginfModel)

setCodecAV

public void setCodecAV(CodecAV codec)

setMovieName

public void setMovieName(java.lang.String movieName)

getDocumentName

public java.lang.String getDocumentName()
Method getName : return the name/type of the transmit document


getCodec

public CodecAV getCodec()
Method getCodec : return the codec


main

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

java.io.IOException