Class ContinuousDomain
java.lang.Object
fr.ifremer.isisfish.simulator.sensitivity.domain.ContinuousDomain
- All Implemented Interfaces:
Domain
,Serializable
,Cloneable
All the continuous domains are based on distribution definition.
- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Distribution
Continuous domain distribution.Distribution params (param name > param value). -
Constructor Summary
ConstructorDescriptionDefault constructor.ContinuousDomain
(Distribution distribution) Constructor with distribution.ContinuousDomain
(Distribution distribution, SortedMap<String, Object> distributionParameters) Constructor with distribution and parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(DomainVisitor visitor) Accept a new visitor.void
addDistributionParam
(String name, Object value) Add distribution parameter.void
addDistributionParams
(SortedMap<String, Object> distributionParameters) Add distribution parameters.clone()
Clone the domainGet distribution.Return distribution parameter value by parameter name.Get distribution parameters.getValueForIdentifier
(Object identifier) Return value associated to identifier.void
setDistributionParams
(SortedMap<String, Object> distributionParameters) Set distribution parameters (clear previous).
-
Field Details
-
distribution
Continuous domain distribution. -
distributionParameters
Distribution params (param name > param value).
-
-
Constructor Details
-
ContinuousDomain
public ContinuousDomain()Default constructor. -
ContinuousDomain
Constructor with distribution.- Parameters:
distribution
- distribution
-
ContinuousDomain
Constructor with distribution and parameters.- Parameters:
distribution
- distributiondistributionParameters
- distribution params
-
-
Method Details
-
getDistribution
Get distribution.- Returns:
- distribution
-
getDistributionParameters
Get distribution parameters.- Returns:
- distribution parameters
-
getDistributionParameter
Return distribution parameter value by parameter name.- Parameters:
name
- name- Returns:
- param value
-
setDistributionParams
Set distribution parameters (clear previous).- Parameters:
distributionParameters
- distribution params
-
addDistributionParams
Add distribution parameters.- Parameters:
distributionParameters
- distribution parameters.
-
addDistributionParam
Add distribution parameter. Parameter name must be in current distribution parameter list.- Parameters:
name
- parameter namevalue
- parameter value
-
getValueForIdentifier
Description copied from interface:Domain
Return value associated to identifier.- Specified by:
getValueForIdentifier
in interfaceDomain
- Returns:
- found value or
null
if not found
-
accept
Accept a new visitor. -
clone
Description copied from interface:Domain
Clone the domain
-