Class DiscreteDomain

java.lang.Object
fr.ifremer.isisfish.simulator.sensitivity.domain.DiscreteDomain
All Implemented Interfaces:
Domain, Serializable, Cloneable
Direct Known Subclasses:
EquationDiscreteDomain, RuleDiscreteDomain

public class DiscreteDomain extends Object implements Domain
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 Details

  • Constructor Details

    • DiscreteDomain

      public DiscreteDomain()
      Constructor.
  • Method Details

    • getValues

      public SortedMap<Object,Object> getValues()
      Get domain values.
      Returns:
      the values
    • setValues

      public void setValues(SortedMap<Object,Object> values)
      Set domain values.
      Parameters:
      values - the values
    • putValue

      public void putValue(Object key, Object value)
      Set domain value.
      Parameters:
      key - the key
      value - the value
    • getValuesCount

      public int getValuesCount()
      Get domain value count.
      Returns:
      domain value count
    • getValueForIdentifier

      public Object getValueForIdentifier(Object identifier) throws IllegalArgumentException
      Return value associated to identifier..
      Specified by:
      getValueForIdentifier in interface Domain
      Returns:
      found value or null if not found
      Throws:
      IllegalArgumentException - if identifier is not a valid key
    • accept

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

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