|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--multimedia.model.GenericAggregateModel | +--multimedia.model.MGInfAggregateModel
Field Summary | |
GenericDiscreteDistribution[] |
chapeauSigma
|
int |
cNb
|
GenericDistribution[] |
distributionsPacketSize
|
GenericDistribution[] |
distributionsSlot
|
GenericContinuousDistribution[] |
distributionsTest
|
double |
lambda
|
protected PoissonDistribution |
loiPoisson
|
GenericDiscreteDistribution[] |
sigma
|
protected static int |
SLOTI
|
protected static int |
To
|
int[] |
weightSource
|
Fields inherited from class multimedia.model.GenericAggregateModel |
name, paramsCount |
Fields inherited from interface statistic.RandomGenerator |
random |
Constructor Summary | |
MGInfAggregateModel(int[] weight)
Method MGInfAggregateModel. |
|
MGInfAggregateModel(int srcNumber,
GenericFunction[] autoCorr,
GenericContinuousDistribution[] distributionsTest,
int[] weigth,
GenericDistribution distributionSlot,
GenericDistribution distributionPacketSize)
Method MGInfAggregateModel : It's the method which is used generally |
|
MGInfAggregateModel(int srcNumber,
GenericFunction[] autoCorr,
GenericContinuousDistribution[] distributionsTest,
int[] weigth,
GenericDistribution distributionSlot,
GenericDistribution distributionPacketSize,
double[] l)
MGInfAggregateModel |
|
MGInfAggregateModel(int srcNumber,
GenericFunction autoCorr,
GenericContinuousDistribution distributionTest,
GenericDistribution distributionSlot,
GenericDistribution distributionPacketSize)
Method MGInfAggregateModel. |
|
MGInfAggregateModel(MGInfModel[] models,
int[] weight)
Method MGInfAggregateModel. |
|
MGInfAggregateModel(VideoDefinition[] vds,
int[] sourceNumber)
Method MGInfAggregateModel. |
Method Summary | |
double |
calculLambdaAggrege(double[] valeur)
Method calculLambdaAggrege. |
int |
calculNbClients(int unMoment)
Method calculNbClients |
double |
calculT(int idx,
GenericDiscreteDistribution[] dds)
Method calculT |
int |
getChannelNumber()
|
java.lang.String |
getCompleteName()
public void setLambdas(double[] valeur) throws IllegalArgumentException { if (valeur.length == cNb) { lambdaI = valeur; } else { if (valeur.length>cNb ) { throw new IllegalArgumentException("MGInfAggregate.setLambdas : Too much lambdas value : " + valeur.length); } else { throw new IllegalArgumentException("MGInfAggregate.setLambdas : Not enough lambdas : " +valeur.length ); } } } |
int |
getDifferentSourceNumber()
|
double |
getLambdaAggr()
|
double |
getParamDistribution(int distributionType,
int sourceNumber,
int idx)
Method getParamDistribution. |
java.lang.Object |
getParameter(int idx)
Method getParameter |
GenericDistribution |
getSpecificDistribution(int distributionType,
int sourceNumber)
getSpecificDistribution |
int |
getWeightSource(int idx)
|
int[] |
getWeightSources()
|
static void |
main(java.lang.String[] args)
Methode: Main pour tester la classe |
int |
mixedDistributionChoice(int distributionType,
int sourceNumber)
|
void |
setChannelNumber(int channelNumber)
|
double |
sigmaAggregateCdf(double x)
|
double |
sigmaAggregateMean()
Method sigmaAggregateMean |
int |
sourceTypeChoice()
Method sourceTypeChoice. |
Methods inherited from class multimedia.model.GenericAggregateModel |
getName, getParamsCount, setName, setParamsCount |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public GenericDiscreteDistribution[] sigma
public GenericDiscreteDistribution[] chapeauSigma
public GenericContinuousDistribution[] distributionsTest
public GenericDistribution[] distributionsSlot
public GenericDistribution[] distributionsPacketSize
public int cNb
public double lambda
public int[] weightSource
protected PoissonDistribution loiPoisson
protected static int To
protected static int SLOTI
Constructor Detail |
public MGInfAggregateModel(int[] weight)
weight
- public MGInfAggregateModel(int srcNumber, GenericFunction autoCorr, GenericContinuousDistribution distributionTest, GenericDistribution distributionSlot, GenericDistribution distributionPacketSize)
srcNumber
- it is the number of sourceautoCorr
- it could be a markovian, SRD or LRD FunctiondistributionTest
- defines the distribution of clients during the entire testdistributionSlot
- it's the weigth of each distributiondistributionPacketSize
- defines the distribution of packet sizepublic MGInfAggregateModel(int srcNumber, GenericFunction[] autoCorr, GenericContinuousDistribution[] distributionsTest, int[] weigth, GenericDistribution distributionSlot, GenericDistribution distributionPacketSize) throws java.lang.IllegalArgumentException
srcNumber
- it is the number of sourceautoCorr
- it could be a markovian, SRD or LRD FunctiondistributionsTest
- defines the distribution of clients during the entire test
it could be logNormal, Gamma or Pareto distributionweigth
- it's the weigth of each distribution
java.lang.IllegalArgumentException
public MGInfAggregateModel(int srcNumber, GenericFunction[] autoCorr, GenericContinuousDistribution[] distributionsTest, int[] weigth, GenericDistribution distributionSlot, GenericDistribution distributionPacketSize, double[] l) throws java.lang.IllegalArgumentException
srcNumber
- it is the number of source (just to verify that we define enough distribution)autoCorr
- it could be a markovian, SRD or LRD Function. Table length is equal to the number of different source.distributionsTest
- defines the distribution of clients during the entire test
it's could be logNormal, Gamma or Pareto distributionweigth
- it's the weigth of each distributionl
- it defines the value of lambda for each source type (in general it's 1)
java.lang.IllegalArgumentException
public MGInfAggregateModel(MGInfModel[] models, int[] weight) throws java.lang.IllegalArgumentException
models
-
java.lang.IllegalArgumentException
public MGInfAggregateModel(VideoDefinition[] vds, int[] sourceNumber) throws java.lang.IllegalArgumentException
vds
-
java.lang.IllegalArgumentException
Method Detail |
public int calculNbClients(int unMoment) throws java.lang.IllegalArgumentException
unMoment
-
java.lang.IllegalArgumentException
public double calculT(int idx, GenericDiscreteDistribution[] dds) throws java.lang.IllegalArgumentException
idx
- it correspond to the number of the source typedds
- it's a discrete distribution table => sigma, chapeauSigma or poissonDistribution table
java.lang.IllegalArgumentException
public int sourceTypeChoice()
public int mixedDistributionChoice(int distributionType, int sourceNumber)
public java.lang.Object getParameter(int idx)
idx
- it's an integer between 0 and 7
0: number of sources
1: sigma's table
2: chapeausigma's table
3: distribution table
4: weigth of each distribution table
5: distribution of packets in slots
6: distribution of packet size in slots
7: aggregated lambda
8: number of different sourcespublic GenericDistribution getSpecificDistribution(int distributionType, int sourceNumber)
distributionType
- it's an integer between 0 and 2
0: distributionTest
1: distributionsSlot
2: distributionsPacketSizesourceNumber
- it's an integer between 0 and cNb-1 => it corresponds to the source number
Except in the case: there is 0 source of a type!!! (just to compare with a MGINf)public double getParamDistribution(int distributionType, int sourceNumber, int idx)
distributionType
- sourceNumber
- idx
-
public double sigmaAggregateMean()
public double calculLambdaAggrege(double[] valeur)
valeur
-
public int[] getWeightSources()
public int getWeightSource(int idx)
public int getChannelNumber()
public void setChannelNumber(int channelNumber)
public double getLambdaAggr()
public int getDifferentSourceNumber()
public double sigmaAggregateCdf(double x)
public java.lang.String getCompleteName()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |