Class CoxianPar

All Implemented Interfaces:
AutoCheck, Parameter

public class CoxianPar extends AbstractParameter implements Parameter
This is the parameter that should be passed to the Coxian distribution.

Copyright (c) 2017
Imperial College London - Department of Computing
Author:
Giuliano Casale
  • Constructor Summary

    Constructors
    Constructor
    Description
    CoxianPar(double lambda0, double lambda1, double phi0)
    It creates a new coxian parameter based on the data provided by the user.
    CoxianPar(Double wlambda0, Double wlambda1, Double wphi0)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    It verifies if the parameter is correct.
    It returns the parameter used to create the 1st exponential distribution used by the coxian distribution.
    It returns the parameter used to create the 2nd exponential distribution used by the coxian distribution.
    double
    It returns the value of the parameter lambda0, the parameter lambda for the 1st exponential distribution created by the coxian parameter.
    double
    It returns the value of the parameter lambda1, the parameter lambda for the 2nd exponential distribution created by the coxian parameter.
    double
    It returns the value of the mean of the coxian distribution which is provided by the user or evaluated according to other data.
    double
    It returns the value of the parameter phi0, the probability to exit one of the exponential distribution.
    double
    It returns the value of the variance of the coxian distribution which is provided by the user or evaluated according to other data.
    void
    setMean(double value)
    Sets mean for a given distribution parameter.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CoxianPar

      public CoxianPar(double lambda0, double lambda1, double phi0) throws IncorrectDistributionParameterException
      It creates a new coxian parameter based on the data provided by the user. This constructor takes three parameters and creates two instances of exponential distribution which are exited with probability phi0 provided.
      Parameters:
      lambda0 - double containing the value of lambda for the 1st exponential.
      lambda1 - double containing the value of lambda for the 2nd exponential.
      phi0 - double containing the probability to exit one of the two exponential.
      Throws:
      IncorrectDistributionParameterException - if lambda0 and lambda1 are not both greater than zero or if phi0 is not between zero and one.
    • CoxianPar

      public CoxianPar(Double wlambda0, Double wlambda1, Double wphi0) throws IncorrectDistributionParameterException
      Throws:
      IncorrectDistributionParameterException
  • Method Details

    • check

      public boolean check()
      It verifies if the parameter is correct. For the coxian distribution, the parameter is right if both the lambda values are gtz and phi0 probability is between 0 and 1.
      Specified by:
      check in interface AutoCheck
      Specified by:
      check in interface Parameter
      Overrides:
      check in class AbstractParameter
      Returns:
      boolean indicating if the parameter is correct or not.
    • getLambda0

      public double getLambda0()
      It returns the value of the parameter lambda0, the parameter lambda for the 1st exponential distribution created by the coxian parameter.
      Returns:
      double with lambda0 the value of lambda for the 1st exponential distribution.
    • getLambda1

      public double getLambda1()
      It returns the value of the parameter lambda1, the parameter lambda for the 2nd exponential distribution created by the coxian parameter.
      Returns:
      double with lambda1 the value of lambda for the 2nd exponential distribution.
    • getPhi0

      public double getPhi0()
      It returns the value of the parameter phi0, the probability to exit one of the exponential distribution.
      Returns:
      double with phi0 the probability to exit one of the exponential distribution.
    • getMean

      public double getMean()
      It returns the value of the mean of the coxian distribution which is provided by the user or evaluated according to other data.
      Returns:
      double with the mean of the coxian distribution.
    • getVar

      public double getVar()
      It returns the value of the variance of the coxian distribution which is provided by the user or evaluated according to other data.
      Returns:
      double with the variance of the coxian distribution.
    • getExpParam0

      public ExponentialPar getExpParam0()
      It returns the parameter used to create the 1st exponential distribution used by the coxian distribution.
      Returns:
      exponentialPar with expParam0 the parameter of the 1st exponential distribution.
    • getExpParam1

      public ExponentialPar getExpParam1()
      It returns the parameter used to create the 2nd exponential distribution used by the coxian distribution.
      Returns:
      exponentialPar with expParam1 the parameter of the 2nd exponential distribution.
    • setMean

      public void setMean(double value) throws IncorrectDistributionParameterException
      Sets mean for a given distribution parameter. This method is required to adjust the mean value of a distribution into Load Dependent Service Time Strategy.
      Author: Bertoli Marco
      Specified by:
      setMean in interface Parameter
      Overrides:
      setMean in class AbstractParameter
      Parameters:
      value - New mean value for this distribution.
      Throws:
      IncorrectDistributionParameterException - if mean value is invalid for this distribution.