fr.ifremer.isisfish.simulator.sensitivity.domain
Class DiscreteDomain

java.lang.Object
  extended by 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 sont utilisation par les script d'AS.

Version:
$Revision: 1.0 $ Last update : $Date: 24 févr. 2009 $ By : $Author: chatellier $
Author:
chatellier
See Also:
Serialized Form

Field Summary
protected  SortedMap<Object,Object> values
          Value for this domain.
 
Constructor Summary
DiscreteDomain()
          Constructor.
 
Method Summary
 void accept(DomainVisitor visitor)
          Accept a new visitor.
 DiscreteDomain clone()
          Clone the domain
 Object getValueForIdentifier(Object identifier)
          Return value associated to identifier.
 SortedMap<Object,Object> getValues()
          Get domaine values.
 void setValues(SortedMap<Object,Object> values)
          Set domain values.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

values

protected SortedMap<Object,Object> values
Value for this domain.

Constructor Detail

DiscreteDomain

public DiscreteDomain()
Constructor.

Method Detail

getValues

public SortedMap<Object,Object> getValues()
Get domaine values.

Returns:
the values

setValues

public void setValues(SortedMap<Object,Object> values)
Set domain values.

Parameters:
values - the values

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


Copyright © 1999-2012 CodeLutin. All Rights Reserved.