|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--multimedia.generation.GenericGeneration
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 |
public java.lang.String fileName
Constructor Detail |
public GenericGeneration()
Method Detail |
public void scenarioGeneration() throws java.io.IOException
java.io.IOException
public void statisticsGeneration() throws java.io.IOException
java.io.IOException
scenarioGeneration()
public java.lang.String getResultFilePath() throws java.io.IOException
java.io.IOException
public void setResultFileName(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public java.lang.String getResultFileName()
public long getResultFileSize() throws java.lang.SecurityException
java.lang.SecurityException
public void setDuration(int duration)
public int getDuration()
public void setGraphicMode(boolean graphic)
public boolean getGraphicMode()
public int getGeneratedPacketNumber(short idx) throws java.io.IOException
idx
- if idx==0 => played scenario, idx==1 => informative scenario
java.io.IOException
public void setUnit(short unit)
public java.lang.String getUnit()
public static java.lang.String getUnit(short unit)
public void setSourceNumber(int srcNumber)
public int getSourceNumber()
public static java.io.File changeScenarioFileExtension(java.io.File rF, boolean playable)
rF
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |