|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--multimedia.generation.GenericGeneration | +--multimedia.generation.AggregateOnOffFlowGeneration
Field Summary | |
protected multimedia.generation.AggregateOnOffFlowGeneration.AggregateOnOffFlows[] |
aof
|
protected java.lang.String |
fileName
|
protected java.io.File[] |
flowsFile
|
protected java.lang.String[] |
fN
|
protected int |
nbDifferentFlow
|
protected OnOffHeterogeneousAggregatedFlowsModel |
onoffAggregation
|
protected double |
realRate
|
protected java.lang.String |
serverName
|
protected int[] |
serverPort
|
protected java.lang.String |
testName
|
protected java.util.TreeMap[] |
tM
|
protected java.util.SortedMap |
tS
|
protected short |
unit
|
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 utils.definitions.MyUnitDefinitions |
BYTES, GIGABYTES, KILOBYTES, MEGABYTES |
Fields inherited from interface utils.definitions.MyFormatterDefinitions |
myDebitFormatter, myIAFormatter, mySizeFormatter, myTimeFormatter |
Constructor Summary | |
AggregateOnOffFlowGeneration(int tpsSimul,
OnOffHeterogeneousAggregatedFlowsModel ooha,
java.lang.String serverName,
int serverPort)
AggregateOnOffFlowGeneration |
|
AggregateOnOffFlowGeneration(int tpsSimul,
OnOffHeterogeneousAggregatedFlowsModel ooha,
java.lang.String serverName,
int serverPort,
java.lang.String fichierReq,
boolean graphic)
To specify in addition a scenario file name and if you use a GUI |
|
AggregateOnOffFlowGeneration(int tpsSimul,
OnOffHeterogeneousAggregatedFlowsModel 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 AggregateOnOffFlowGeneration object And a scenario file per flow type => + nbDifferentFlow scenarii |
void |
aggregatedScenarioGeneration(int serverPort)
To generate an aggregated scenario with statistics informations from an AggregateOnOffFlowGeneration 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 |
flowScenariiGeneration(java.lang.String serverName)
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 |
getNbDifferentFlow()
Returns the number of source defined for the test |
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 |
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()
To compute an aggregated scenario from generation of each scenario Create a file format as follow: Inter-packet time(in ms) /t size |
void |
scenarioGeneration(java.lang.String serverName,
int portNumber)
To compute final scenario with some informations which is the aggregation of each scenarii pre-calculated 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 |
protected double |
scenarioGenericGeneration(boolean playable,
java.lang.String serverName,
int portNumber)
Creates either a playable scenario file or an informative one. |
protected void |
setPortNumber(int[] serverPort)
|
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 |
java.lang.String |
toString()
Method toString() |
Methods inherited from class multimedia.generation.GenericGeneration |
changeScenarioFileExtension, getDuration, getGeneratedPacketNumber, getGraphicMode, getResultFileName, getResultFileSize, getUnit, getUnit, setDuration, setGraphicMode, setResultFile, setUnit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.io.File[] flowsFile
protected OnOffHeterogeneousAggregatedFlowsModel onoffAggregation
protected java.lang.String[] fN
protected java.util.SortedMap tS
protected multimedia.generation.AggregateOnOffFlowGeneration.AggregateOnOffFlows[] aof
protected java.util.TreeMap[] tM
protected int nbDifferentFlow
protected double realRate
protected java.lang.String serverName
protected int[] serverPort
protected java.lang.String fileName
protected short unit
protected java.lang.String testName
Constructor Detail |
public AggregateOnOffFlowGeneration(int tpsSimul, OnOffHeterogeneousAggregatedFlowsModel ooha, java.lang.String serverName, int serverPort) throws java.io.IOException
tpsSimul
- test duration in minutesooha
- define an Heterogeneous On-Off Flows AggregationserverName
- define the name of the server which will play the scenarioserverPort
- define the port numberpublic AggregateOnOffFlowGeneration(int tpsSimul, OnOffHeterogeneousAggregatedFlowsModel ooha, java.lang.String serverName, int serverPort, java.lang.String fichierReq, boolean graphic) throws java.io.IOException
tpsSimul
- test duration in minutesooha
- define an Heterogeneous On-Off Flows AggregationserverName
- define the name of the server which will play the scenarioserverPort
- define the port numberfichierReq
- scenario file namegraphic
- To choose a graphical mode or notpublic AggregateOnOffFlowGeneration(int tpsSimul, OnOffHeterogeneousAggregatedFlowsModel 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 fileserverName
- define the name of the server which will play the scenarioserverPort
- 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 flowScenariiGeneration(java.lang.String serverName) throws java.io.IOException
serverName
-
java.io.IOException
public void scenarioGeneration() throws java.io.IOException
scenarioGeneration
in class GenericGeneration
java.io.IOException
public void scenarioGeneration(java.lang.String serverName, int portNumber) throws java.io.IOException
scenarioGeneration
in class GenericGeneration
serverName
- portNumber
-
java.io.IOException
protected double scenarioGenericGeneration(boolean playable, java.lang.String serverName, int portNumber) throws java.io.IOException
GenericGeneration
scenarioGenericGeneration
in class GenericGeneration
playable
- a boolean : true, to create a playable fileserverName
- serverName gives the server nameportNumber
- serverPort gives the number port
java.io.IOException
GenericGeneration.scenarioGenericGeneration(boolean, java.lang.String, int)
public void setPortNumber(int idx, int serverPort)
idx
- specify the port numberserverPort
- the valueprotected void setPortNumber(int[] serverPort)
public int getPort(int idx)
idx
- specify the port number between 0 and nbDifferentFlow-1
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 getNbDifferentFlow()
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 |