multimedia.generation
Class GenericGeneration

java.lang.Object
  |
  +--multimedia.generation.GenericGeneration
All Implemented Interfaces:
MyUnitDefinitions
Direct Known Subclasses:
IPPGeneration, MGInfAggregatedFlowGeneration, MGInfGeneration, MMPP2Generation, MMPPNGeneration, OnOffGeneration, OnOffHeterogeneousAggregatedFlowGeneration, VariedAggregatedFlowGeneration

public abstract class GenericGeneration
extends java.lang.Object
implements MyUnitDefinitions


Field Summary
 java.lang.String fileName
           
 
Fields inherited from interface utils.definitions.MyUnitDefinitions
BYTES, GIGABYTES, KILOBYTES, MEGABYTES
 
Constructor Summary
GenericGeneration()
           
 
Method Summary
static java.io.File changeScenarioFileExtension(java.io.File rF, boolean playable)
          To test if the file name given has its extension or not And if there is an extension of this type, we rename the file without the extension
 int getDuration()
           
 int getGeneratedPacketNumber(short idx)
          Method getGeneratedPacketNumber.
 boolean getGraphicMode()
           
 java.lang.String getResultFileName()
           
 java.lang.String getResultFilePath()
          Returns the name of the generated scenario file
 long getResultFileSize()
          Method getResultFileSize.
 int getSourceNumber()
           
 java.lang.String getUnit()
           
static java.lang.String getUnit(short unit)
           
 void scenarioGeneration()
          To generate a scenario which could be played by the trafic generator Creates a file formated as follow:
Inter packet time(in micro-second) packet size
 void setDuration(int duration)
           
 void setGraphicMode(boolean graphic)
           
 void setResultFileName(java.lang.String fileName)
           
 void setSourceNumber(int srcNumber)
           
 void setUnit(short unit)
           
 void statisticsGeneration()
          Creates an "informative" scenario file of the aggregated flow
Creates a file formated as follow:
date
Requested documents : reqDoc
Videos aggregation Test Duration : tpsSimul mn
date: t + testTime s, IA : interpacketIime
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileName

public java.lang.String fileName
Constructor Detail

GenericGeneration

public GenericGeneration()
Method Detail

scenarioGeneration

public void scenarioGeneration()
                        throws java.io.IOException
To generate a scenario which could be played by the trafic generator Creates a file formated as follow:
Inter packet time(in micro-second) packet size

java.io.IOException

statisticsGeneration

public void statisticsGeneration()
                          throws java.io.IOException
Creates an "informative" scenario file of the aggregated flow
Creates a file formated as follow:
date
Requested documents : reqDoc
Videos aggregation Test Duration : tpsSimul mn
date: t + testTime s, IA : interpacketIime

java.io.IOException
See Also:
scenarioGeneration()

getResultFilePath

public java.lang.String getResultFilePath()
                                   throws java.io.IOException
Returns the name of the generated scenario file

java.io.IOException

setResultFileName

public void setResultFileName(java.lang.String fileName)
                       throws java.io.IOException
java.io.IOException

getResultFileName

public java.lang.String getResultFileName()

getResultFileSize

public long getResultFileSize()
                       throws java.lang.SecurityException
Method getResultFileSize.

Returns:
long
Throws:
java.lang.SecurityException

setDuration

public void setDuration(int duration)

getDuration

public int getDuration()

setGraphicMode

public void setGraphicMode(boolean graphic)

getGraphicMode

public boolean getGraphicMode()

getGeneratedPacketNumber

public int getGeneratedPacketNumber(short idx)
                             throws java.io.IOException
Method getGeneratedPacketNumber.

Parameters:
idx - if idx==0 => played scenario, idx==1 => informative scenario
Returns:
int
java.io.IOException

setUnit

public void setUnit(short unit)

getUnit

public java.lang.String getUnit()

getUnit

public static java.lang.String getUnit(short unit)

setSourceNumber

public void setSourceNumber(int srcNumber)

getSourceNumber

public int getSourceNumber()

changeScenarioFileExtension

public static java.io.File changeScenarioFileExtension(java.io.File rF,
                                                       boolean playable)
To test if the file name given has its extension or not And if there is an extension of this type, we rename the file without the extension

Parameters:
rF -
Returns:
String