multimedia.model
Class MMPP2Model
java.lang.Object
|
+--multimedia.model.GenericAggregatedModel
|
+--multimedia.model.GenericModel
|
+--multimedia.model.GenericAudioModel
|
+--multimedia.model.MMPPNModel
|
+--multimedia.model.MMPP2Model
- public class MMPP2Model
- extends MMPPNModel
Constructor Summary |
MMPP2Model()
MMPP2Model : This default object |
MMPP2Model(int unEtatDepart,
double unAlpha,
double unBeta,
AudioCodec unCodec)
MMPP2Model in the particular case of IPP Model |
MMPP2Model(int unEtatDepart,
double unAlpha,
double unBeta,
double unLambda1,
double unLambda2,
AudioCodec unCodec)
MMPP2Model |
Method Summary |
java.lang.String |
getCompleteName()
|
static void |
main(java.lang.String[] args)
Methode: Main pour tester la classe |
double |
meanRate()
meanRate : to calculate mean of generated packet number per second <=> theoretical throughput
mean = lambda1*alpha/(alpha+beta) + lambda2*beta/(alpha+beta) |
void |
setParams(double alpha,
double beta,
double lambda1,
double lambda2)
Method setParams : permit to set the parameters |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MMPP2Model
public MMPP2Model()
- MMPP2Model : This default object
MMPP2Model
public MMPP2Model(int unEtatDepart,
double unAlpha,
double unBeta,
double unLambda1,
double unLambda2,
AudioCodec unCodec)
- MMPP2Model
- Parameters:
unEtatDepart
- it defines the state of the system at the startunAlpha
- it's exponential distribution parameter (state 2)unBeta
- it's exponential distribution parameter (state 1)unLambda1
- it's exponential distribution parameter which defines inter-packet time (state 1)unLambda2
- it's exponential distribution parameter which defines inter-packet time (state 2)unCodec
- it's the associated Codec
MMPP2Model
public MMPP2Model(int unEtatDepart,
double unAlpha,
double unBeta,
AudioCodec unCodec)
- MMPP2Model in the particular case of IPP Model
- Parameters:
unEtatDepart
- it defines the state of the system at the startunAlpha
- it's exponential distribution parameter (state 2)unBeta
- it's exponential distribution parameter (state 1)unCodec
- it's the associated Codec
meanRate
public double meanRate()
- meanRate : to calculate mean of generated packet number per second <=> theoretical throughput
mean = lambda1*alpha/(alpha+beta) + lambda2*beta/(alpha+beta)
- Overrides:
meanRate
in class MMPPNModel
- Returns:
- mean rate in kb/s
getCompleteName
public java.lang.String getCompleteName()
- Overrides:
getCompleteName
in class MMPPNModel
setParams
public void setParams(double alpha,
double beta,
double lambda1,
double lambda2)
- Method setParams : permit to set the parameters
- Parameters:
alpha
- beta
- lambda1
- lambda2
-
main
public static void main(java.lang.String[] args)
- Methode: Main pour tester la classe