|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--multimedia.model.GenericAggregatedModel | +--multimedia.model.GenericModel | +--multimedia.model.GenericAudioModel | +--multimedia.model.MMPPNModel
Field Summary | |
double[] |
alpha
|
double[] |
beta
|
double[] |
lambda
|
Fields inherited from class multimedia.model.GenericAudioModel |
codec |
Constructor Summary | |
MMPPNModel()
|
|
MMPPNModel(int unEtatCount,
int unEtatDepart,
AudioCodec unCodec)
MMPPNModel : |
|
MMPPNModel(int unEtatCount,
int unEtatDepart,
double[] unAlpha,
double[] unBeta,
double[] unLambda,
AudioCodec unCodec)
MMPP-N Model general description |
|
MMPPNModel(int unEtatCount,
int unEtatDepart,
double unAlpha,
double unBeta,
AudioCodec unCodec)
MMPPNModel : we use this constructor when a codec is specified |
Method Summary | |
double |
calculT(double unParam)
Method calculT |
java.lang.String |
getCompleteName()
|
double |
getParam(int unEtat,
java.lang.String param)
getParam: use to get all parameters: alpha, beta and gamma |
java.lang.Object |
getParameter(int idx)
Method getParameter. |
double |
getParamOn()
Method getParamOn. |
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 mean = N*1/InterPacketTime*Pon = N*lambda*Pon where N is the number of state 1...N for a MMPP-N+1, i.e. |
void |
setParam(java.lang.String unParam,
double uneValeur)
setParam alpha[0]=alpha(0)=0, alpha[1]=alpha(1)=alpha, ..., alpha[N]=alpha(N)=N*alpha beta[0]=beta(0)=N*beta, ..., beta[N]=beta(N)=0 lambda[0]=lambda(0)=0,lambda[1]=lambda(1)=lambda, ...,lambda[N]=lambda(N)=N*lambda |
void |
setParams(double unAlpha,
double unBeta,
double unLambda)
setParams use to define all parameters: alpha, beta and gamma |
Methods inherited from class multimedia.model.GenericAudioModel |
getCodec, getEtatCount, getEtatDepart, setCodec, setEtatCount, setEtatDepart |
Methods inherited from class multimedia.model.GenericAggregatedModel |
getName, getParamsCount, setName, setParamsCount |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public double[] alpha
public double[] beta
public double[] lambda
Constructor Detail |
public MMPPNModel()
public MMPPNModel(int unEtatCount, int unEtatDepart, AudioCodec unCodec)
unEtatCount
- defines N (in MMPP-N+1 modelName), it corresponds to the number of statesunEtatDepart
- Fix a start stateunCodec
- it's the associated Codec which gives packet size and inter-packet time
java.lang.IllegalArgumentException
public MMPPNModel(int unEtatCount, int unEtatDepart, double unAlpha, double unBeta, AudioCodec unCodec) throws java.lang.IllegalArgumentException
unEtatCount
- defines N (im MMPP-N+1 modelName), it corresponds to the number of statesunEtatDepart
- Fix a start stateunAlpha
- parameter of exponential distributionsunBeta
- parameter of exponential distributionsunCodec
- it's the associated Codec which gives packet size and inter-packet time
java.lang.IllegalArgumentException
public MMPPNModel(int unEtatCount, int unEtatDepart, double[] unAlpha, double[] unBeta, double[] unLambda, AudioCodec unCodec) throws java.lang.IllegalArgumentException
unEtatCount
- it defines the number of statesunEtatDepart
- it defines the state of the system at the startunAlpha
- it's a table of value which define exponential distribution parameterunBeta
- it's a table of value which define exponential distribution parameterunLambda
- it's a table of exponential distribution parameters which define inter-packet time (state 1 to N)unCodec
- it's the associated Codec
java.lang.IllegalArgumentException
Method Detail |
public void setParam(java.lang.String unParam, double uneValeur) throws java.lang.IllegalArgumentException
setParam
in class GenericAudioModel
unParam
- uneValeur
-
java.lang.IllegalArgumentException
public void setParams(double unAlpha, double unBeta, double unLambda) throws java.lang.IllegalArgumentException
unAlpha
- we have: alpha[0]=0 and i>0 alpha[i]= i * unAlphaunBeta
- we have: beta[N]=0 and iunLambda
- we have: lambda[0]=0 for i=1..N lambda[i] = i * unLambda
java.lang.IllegalArgumentException
public double calculT(double unParam) throws java.lang.IllegalArgumentException
calculT
in class GenericAudioModel
java.lang.IllegalArgumentException
multimedia.GenericModel#calculT(double)
public double getParam(int unEtat, java.lang.String param) throws java.lang.IllegalArgumentException
getParam
in class GenericAudioModel
unEtat
- it contained between 0 and N (~etatCount-1)param
- the parameter name
java.lang.IllegalArgumentException
public double meanRate()
public double getParamOn()
public java.lang.Object getParameter(int idx) throws java.lang.IllegalArgumentException
idx
-
java.lang.IllegalArgumentException
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 |