Class DiscreteDomain
java.lang.Object
fr.ifremer.isisfish.simulator.sensitivity.domain.DiscreteDomain
- All Implemented Interfaces:
Domain
,Serializable
,Cloneable
- Direct Known Subclasses:
EquationDiscreteDomain
,RuleDiscreteDomain
Un domain discret a un ensemble de valeur.
Chaque valeur est identifiée par un label pour son utilisation par les
script d'AS.
- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(DomainVisitor visitor) Accept a new visitor.clone()
Clone the domaingetValueForIdentifier
(Object identifier) Return value associated to identifier.Get domain values.int
Get domain value count.void
Set domain value.void
Set domain values.
-
Field Details
-
values
Value for this domain.
-
-
Constructor Details
-
DiscreteDomain
public DiscreteDomain()Constructor.
-
-
Method Details
-
getValues
Get domain values.- Returns:
- the values
-
setValues
Set domain values.- Parameters:
values
- the values
-
putValue
Set domain value.- Parameters:
key
- the keyvalue
- the value
-
getValuesCount
public int getValuesCount()Get domain value count.- Returns:
- domain value count
-
getValueForIdentifier
Return value associated to identifier..- Specified by:
getValueForIdentifier
in interfaceDomain
- Returns:
- found value or
null
if not found - Throws:
IllegalArgumentException
- if identifier is not a valid key
-
accept
Accept a new visitor. -
clone
Description copied from interface:Domain
Clone the domain
-