|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--multimedia.generation.GenericGeneration | +--multimedia.generation.OnOffHeterogeneousAggregatedFlowGeneration
Field Summary |
Fields inherited from class multimedia.generation.GenericGeneration |
fileName |
Fields inherited from interface multimedia.codec.AudioCodecExample |
G711, G723_1, G726, G728, G729 |
Fields inherited from interface utils.definitions.MyUnitDefinitions |
BYTES, GIGABYTES, KILOBYTES, MEGABYTES |
Constructor Summary | |
OnOffHeterogeneousAggregatedFlowGeneration()
|
|
OnOffHeterogeneousAggregatedFlowGeneration(int tpsSimul,
OnOffHeterogeneousAggregatedFlowModel ooha,
int serverPort)
OnOffHeterogeneousAggregatedFlowGeneration |
|
OnOffHeterogeneousAggregatedFlowGeneration(int tpsSimul,
OnOffHeterogeneousAggregatedFlowModel ooha,
int serverPort,
java.lang.String fichierReq,
boolean graphic)
To specify in addition a scenario file name and if you use a GUI |
|
OnOffHeterogeneousAggregatedFlowGeneration(int tpsSimul,
OnOffHeterogeneousAggregatedFlowModel ooha,
java.lang.String fichierReq,
java.lang.String serverName,
int[] serverPort,
boolean graphic)
To specify a specific port number for each flow type |
Method Summary | |
void |
aggregatedScenarioGeneration()
To generate an aggregated scenario from an OnOffHeterogeneousAggregatedFlowGeneration object And a scenario file per flow type => + nbDifferentFlow scenarii |
void |
aggregatedScenarioGeneration(int serverPort)
To generate an aggregated scenario with statistics informations from an OnOffHeterogeneousAggregatedFlowGeneration object And an informative scenario file per flow type => + nbDifferentFlow scenarii |
double |
flowScenariiGeneration()
To determine scenarii of each source type which could be used by the generator Create a file format as follow: Inter-packet time /t packet size |
double |
flowStatisticsGeneration()
To compute scenario of each source type with some informations It generates as much scenario as it's necessary Create a file format as follow: day date : servername modelName IAmoy : tpsIP_codec numero de port : number packet size :size bytes date: t + testTime s, IA : interpacketIime : 0.000000 s |
java.lang.String |
getDocumentNames()
Returns a String which discribes the different flows as: model name or document name(if it exists) (source number) |
int |
getFlowTypeNumber()
Returns the number of flow defined for the test |
OnOffHeterogeneousAggregatedFlowModel |
getModel()
|
int |
getPort(int idx)
Returns the port value which corresponds to the specified flow |
java.lang.String |
getResultFileName(int idx)
Method getResultFileName |
double |
getTheoriticalAggregatedFlowRate()
Returns throughput of aggregatedFlow in kb/s |
double |
getTheoriticalTransmittedDataAmount()
Returns theoritical transmitted data amount during the generation phase in MB |
void |
initializedSortedMap()
|
static void |
main(java.lang.String[] args)
Methode: Main pour tester la classe |
double |
meanRate()
To compute mean of generated packet number per second <=> theoretical throughput mean = sum( meani ) where i=1..nbDifferentFlow |
void |
scenarioGeneration(java.lang.String fileName)
To compute an aggregated scenario from generation of each scenario WARNING: This create only one file Create a file format as follow: Inter-packet time(in ms) /t size |
void |
setFlowTypeNumber(int nbDifferentFlow)
|
void |
setModel(OnOffHeterogeneousAggregatedFlowModel model)
|
void |
setPortNumber(int idx,
int serverPort)
To set the port value for each flow if idx=-1 it means that all values will be the same : serverPort |
void |
statisticsGeneration()
To compute final scenario (with some informations) which is the aggregation of each scenarii pre-calculated WARNING: This create only one file Create a file format as follow: day date : servername characteristic of the flow \t theoritical throughput : value date (in seconds) \t Inter-Packet Time(in milliseconds) \t numero de port date : date s /t IA : Inter-packet time ms /t packet size : size Bytes |
java.lang.String |
toString()
Returns a description: "Aggregation of " + nbDifferentFlow + " On-Off homogeneous sources : " + model.getTypeSrcsNumbers() |
Methods inherited from class multimedia.generation.GenericGeneration |
changeScenarioFileExtension, getDuration, getGeneratedPacketNumber, getGraphicMode, getResultFileName, getResultFilePath, getResultFileSize, getSourceNumber, getUnit, getUnit, scenarioGeneration, setDuration, setGraphicMode, setResultFileName, setSourceNumber, setUnit |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OnOffHeterogeneousAggregatedFlowGeneration()
public OnOffHeterogeneousAggregatedFlowGeneration(int tpsSimul, OnOffHeterogeneousAggregatedFlowModel ooha, int serverPort) throws java.io.IOException
tpsSimul
- test duration in minutesooha
- define an Heterogeneous On-Off Flows AggregationserverPort
- define the port numberpublic OnOffHeterogeneousAggregatedFlowGeneration(int tpsSimul, OnOffHeterogeneousAggregatedFlowModel ooha, int serverPort, java.lang.String fichierReq, boolean graphic) throws java.io.IOException
tpsSimul
- test duration in minutesooha
- define an Heterogeneous On-Off Flows AggregationserverPort
- define the port numberfichierReq
- scenario file namegraphic
- To choose a graphical mode or notpublic OnOffHeterogeneousAggregatedFlowGeneration(int tpsSimul, OnOffHeterogeneousAggregatedFlowModel ooha, java.lang.String fichierReq, java.lang.String serverName, int[] serverPort, boolean graphic) throws java.io.IOException
tpsSimul
- test duration in minutesooha
- define an Heterogeneous On-Off Flows AggregationfichierReq
- define the name of result fileserverPort
- define the port numbergraphic
- determines if it will be used in a graphic environnementMethod Detail |
public void aggregatedScenarioGeneration() throws java.io.IOException
java.io.IOException
public void aggregatedScenarioGeneration(int serverPort) throws java.io.IOException
serverPort
- to specify on which port it will be played
java.io.IOException
public double flowScenariiGeneration() throws java.io.IOException
java.io.IOException
public double flowStatisticsGeneration() throws java.io.IOException
java.io.IOException
public void scenarioGeneration(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public void statisticsGeneration() throws java.io.IOException
statisticsGeneration
in class GenericGeneration
java.io.IOException
GenericGeneration.scenarioGeneration()
public void setPortNumber(int idx, int serverPort)
idx
- specify the port numberserverPort
- the valuepublic void initializedSortedMap()
public int getPort(int idx)
idx
- specify the port number between 0 and nbDifferentFlow-1
public OnOffHeterogeneousAggregatedFlowModel getModel()
public void setModel(OnOffHeterogeneousAggregatedFlowModel model)
public double meanRate()
public double getTheoriticalAggregatedFlowRate() throws java.io.IOException
java.io.IOException
public double getTheoriticalTransmittedDataAmount() throws java.io.IOException
java.io.IOException
public int getFlowTypeNumber()
public void setFlowTypeNumber(int nbDifferentFlow)
public java.lang.String getResultFileName(int idx)
idx
- specify the file number : idx = -1 => For an aggregated scenario file, idx =0...N it's to get a specific flow scenario file
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDocumentNames()
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |