Class ContinuousDomain

java.lang.Object
fr.ifremer.isisfish.simulator.sensitivity.domain.ContinuousDomain
All Implemented Interfaces:
Domain, Serializable, Cloneable

public class ContinuousDomain extends Object implements Domain
All the continuous domains are based on distribution definition.
Version:
$Revision$ Last update : $Date$ By : $Author$
Author:
chatellier
See Also:
  • Field Details

    • distribution

      protected Distribution distribution
      Continuous domain distribution.
    • distributionParameters

      protected Map<String,Object> distributionParameters
      Distribution params (param name > param value).
  • Constructor Details

    • ContinuousDomain

      public ContinuousDomain()
      Default constructor.
    • ContinuousDomain

      public ContinuousDomain(Distribution distribution)
      Constructor with distribution.
      Parameters:
      distribution - distribution
    • ContinuousDomain

      public ContinuousDomain(Distribution distribution, SortedMap<String,Object> distributionParameters)
      Constructor with distribution and parameters.
      Parameters:
      distribution - distribution
      distributionParameters - distribution params
  • Method Details

    • getDistribution

      public Distribution getDistribution()
      Get distribution.
      Returns:
      distribution
    • getDistributionParameters

      public Map<String,Object> getDistributionParameters()
      Get distribution parameters.
      Returns:
      distribution parameters
    • getDistributionParameter

      public Object getDistributionParameter(String name)
      Return distribution parameter value by parameter name.
      Parameters:
      name - name
      Returns:
      param value
    • setDistributionParams

      public void setDistributionParams(SortedMap<String,Object> distributionParameters)
      Set distribution parameters (clear previous).
      Parameters:
      distributionParameters - distribution params
    • addDistributionParams

      public void addDistributionParams(SortedMap<String,Object> distributionParameters)
      Add distribution parameters.
      Parameters:
      distributionParameters - distribution parameters.
    • addDistributionParam

      public void addDistributionParam(String name, Object value)
      Add distribution parameter. Parameter name must be in current distribution parameter list.
      Parameters:
      name - parameter name
      value - parameter value
    • getValueForIdentifier

      public Object getValueForIdentifier(Object identifier)
      Description copied from interface: Domain
      Return value associated to identifier.
      Specified by:
      getValueForIdentifier in interface Domain
      Returns:
      found value or null if not found
    • accept

      public void accept(DomainVisitor visitor)
      Accept a new visitor.
      Specified by:
      accept in interface Domain
      Parameters:
      visitor - the visitor
    • clone

      public ContinuousDomain clone()
      Description copied from interface: Domain
      Clone the domain
      Specified by:
      clone in interface Domain
      Overrides:
      clone in class Object
      Returns:
      the domain cloned