|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--multimedia.generation.GenericGeneration | +--multimedia.generation.MGInfAggregatedFlowGeneration
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.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 multimedia.codec.VideoCodecExample |
H261, MJPEG, MPEG, MPEG4 |
Fields inherited from interface utils.definitions.MyUnitDefinitions |
BYTES, GIGABYTES, KILOBYTES, MEGABYTES |
Constructor Summary | |
MGInfAggregatedFlowGeneration()
|
|
MGInfAggregatedFlowGeneration(MGInfAggregatedFlowModel model,
VideoCodec[] codecs,
int[] flowsDuration,
int[] startingTime,
short[] units,
java.lang.String fileName,
boolean graphic)
|
|
MGInfAggregatedFlowGeneration(VideoDefinition[] vds,
int[] weights,
int[] startingTime,
short[] units,
java.lang.String fileName,
boolean graphic)
Defined to used VideoDefinition like JurassicParkLow,... |
|
MGInfAggregatedFlowGeneration(VideoDefinition[] vds,
int[] weights,
short unit,
java.lang.String fileName,
boolean graphic)
Defines to be used by MGInfComplexAggregatedFlowGeneration as super constructor |
Method Summary | |
void |
aggregatedScenarioGeneration()
To generate an aggregated scenario from an MGInfAggregatedFlowGeneration object And a scenario file per flow type => + nbDifferentFlow scenarii |
void |
aggregatedStatisticsGeneration()
To generate an aggregated scenario with statistics informations from an MGInfAggregatedFlowGeneration object And an informative scenario file per flow type => + nbDifferentFlow scenarii |
MGInfGeneration[] |
createSingleFlowGenerator()
Method createSingleFlowGenerator : To create MGInfGeneration object from model,flowsDuration,codecs... |
int[] |
dataPerSlotDistribution()
Sums all data amount of sources slot per slot |
int[][] |
dataPerSlotPerFlowType()
Method dataPerSlotPerFlowType : This method permit to compute data per slot distribution for one type of source After we transform the result according to unit and number of source of this type => ex: if unit: kiloBytes -> Bytes and if there is 5 sources of this type data[i] = data[i]*5 |
double |
flowScenariiGeneration()
|
double |
flowStatisticsiGeneration()
Returns theoritical throughput of the aggregated flow => =sum( w1*throughputi) where i =1...ndDifferentFlow Create nbDifferentFlow scenario files |
java.lang.String |
getDocumentNames()
Returns a String which discribes the different flows as: model name or document name(if it exists) (source number) |
int[] |
getFlowsPacketSize()
|
int[] |
getFlowsTypeDuration()
|
int |
getFlowTypeNumber()
|
MGInfAggregatedFlowModel |
getModel()
|
double |
getTheoriticalAggregatedFlowRate()
Returns throughput of aggregatedFlow in kb/s |
double |
getTheoriticalTransmittedDataAmount()
Returns theoritical transmitted data amount during the generation phase in MB |
int |
getTheoriticalTransmittedDataAmountBis()
Returns theoritical transmitted data amount during the generation phase (in MBytes) |
int |
getTheoriticalTransmittedDataAmountTest(int[] slot)
|
static void |
main(java.lang.String[] args)
Methode: Main pour tester la classe |
void |
parametersInitialization()
This permit to initialized some parameters!!! |
void |
setDurations()
|
void |
setFlowsTypeCodec(VideoCodec[] codecs)
|
void |
setFlowsTypeDuration(int[] durations)
|
void |
setFlowsTypeSlotDuration(double[] durations)
|
void |
setFlowTypeNumber(int nbDifferentFlow)
|
void |
setModel(MGInfAggregatedFlowModel mafm)
|
void |
setPacketSize()
|
void |
setSingleFlowCreator()
|
void |
setSlotDuration(double duration)
|
void |
setSlotsDuration()
To set the duration of a slot for each source type |
void |
setSlotsNumber()
To set the number of slots of each source type |
void |
setSourceNumber()
|
void |
setSourceStartingTime(int[] startingTime)
|
void |
setUnits(short[] units)
|
int |
simulationDurationComputation()
Method simulationDurationComputation : To compute the duration of the aggregated flow according to "starting time" scenario |
int |
sourceTypeChoice()
To determine which source type send packets at one moment We define this method because flows have different characteristics notably packet size |
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 |
public MGInfAggregatedFlowGeneration()
public MGInfAggregatedFlowGeneration(MGInfAggregatedFlowModel model, VideoCodec[] codecs, int[] flowsDuration, int[] startingTime, short[] units, java.lang.String fileName, boolean graphic) throws java.io.IOException
model
- codecs
- a table of VideoCodec => length : nbDifferentFlowflowsDuration
- a table of int => length : nbDifferentFlowstartingTime
- a table of int => length : flowsNumberunits
- a table of short => length : nbDifferentFlowfileName
- Scenario file namegraphic
-
java.io.IOException
public MGInfAggregatedFlowGeneration(VideoDefinition[] vds, int[] weights, short unit, java.lang.String fileName, boolean graphic) throws java.io.IOException
vds
- weights
- unit
- fileName
- Scenario file namegraphic
-
java.io.IOException
public MGInfAggregatedFlowGeneration(VideoDefinition[] vds, int[] weights, int[] startingTime, short[] units, java.lang.String fileName, boolean graphic) throws java.io.IOException
vds
- a table of VideoDefinition => length : nbDifferentFlowweights
- a table of int => length : nbDifferentFlowstartingTime
- a table of int => length : flowsNumberunits
- a table of short => length : nbDifferentFlowfileName
- Scenario file namegraphic
-
java.io.IOException
Method Detail |
public void parametersInitialization() throws java.io.IOException
java.io.IOException
public void setSlotsNumber()
public void setSlotsDuration()
public MGInfGeneration[] createSingleFlowGenerator() throws java.io.IOException
java.io.IOException
public int simulationDurationComputation()
public int[][] dataPerSlotPerFlowType() throws java.io.IOException
java.io.IOException
public int[] dataPerSlotDistribution() throws java.io.IOException
java.io.IOException
public int[] getFlowsPacketSize()
public void aggregatedScenarioGeneration() throws java.io.IOException
java.io.IOException
public void aggregatedStatisticsGeneration() throws java.io.IOException
java.io.IOException
public double flowScenariiGeneration() throws java.io.IOException
java.io.IOException
public double flowStatisticsiGeneration() throws java.io.IOException
java.io.IOException
public int sourceTypeChoice()
public java.lang.String getDocumentNames()
public double getTheoriticalAggregatedFlowRate() throws java.io.IOException
java.io.IOException
public double getTheoriticalTransmittedDataAmount() throws java.io.IOException
java.io.IOException
public int getTheoriticalTransmittedDataAmountBis() throws java.io.IOException
java.io.IOException
public int getTheoriticalTransmittedDataAmountTest(int[] slot) throws java.io.IOException
java.io.IOException
public MGInfAggregatedFlowModel getModel()
public int[] getFlowsTypeDuration()
public void setModel(MGInfAggregatedFlowModel mafm)
public void setSlotDuration(double duration)
public void setFlowTypeNumber(int nbDifferentFlow)
public int getFlowTypeNumber()
public void setFlowsTypeDuration(int[] durations)
public void setFlowsTypeCodec(VideoCodec[] codecs)
public void setFlowsTypeSlotDuration(double[] durations) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void setSourceNumber()
public void setSourceStartingTime(int[] startingTime) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void setUnits(short[] units)
public void setPacketSize()
public void setDurations()
public void setSingleFlowCreator() throws java.io.IOException
java.io.IOException
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 |