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

java.lang.Object
  extended by fr.ifremer.isisfish.simulator.sensitivity.domain.ContinuousDomain<Double,Double>
      extended by fr.ifremer.isisfish.simulator.sensitivity.domain.EquationContinuousDomain
All Implemented Interfaces:
Domain<Double,Double>, Serializable

public class EquationContinuousDomain
extends ContinuousDomain<Double,Double>

Domaine continu portant sur variable pouvant prendre diférente valeur par rapport à une valeur initiale. Composé d'un borne min et max et d'un opération.

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

Field Summary
protected  Double coefficient
          Coefficient in percent
protected  String operator
          Operation. (=,+,-,/)
protected  Double referenceValue
          Reference value
protected  Double value
          Value used to create the equation
protected  String variableName
          Variable name (must be java valid identifier)
 
Fields inherited from class fr.ifremer.isisfish.simulator.sensitivity.domain.ContinuousDomain
cardinality, maxBound, minBound
 
Constructor Summary
EquationContinuousDomain()
          Empty constructor.
 
Method Summary
 EquationContinuousDomain clone()
          Clone the domain
 Double getCoefficient()
          Get coefficient.
 double getMaxBound()
          .
 double getMinBound()
          .
 String getOperator()
          Get operator.
 Double getReferenceValue()
          Get reference value.
 Double getValue()
          Get value used to create the equation.
 Double getValueForIdentifier(Double identifier)
          Return value associated to identifier.
 String getVariableName()
          Get variable name.
 void setCoefficient(Double coefficient)
          Set coefficient.
 void setOperator(String operator)
          Set operator.
 void setReferenceValue(Double referenceValue)
          Set reference value.
 void setValue(Double value)
          Set value used to create the equation.
 void setVariableName(String variableName)
          Set variable name.
 String toString()
           
 
Methods inherited from class fr.ifremer.isisfish.simulator.sensitivity.domain.ContinuousDomain
accept, getCardinality, setCardinality, setMaxBound, setMinBound
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

variableName

protected String variableName
Variable name (must be java valid identifier)


operator

protected String operator
Operation. (=,+,-,/)


coefficient

protected Double coefficient
Coefficient in percent


referenceValue

protected Double referenceValue
Reference value


value

protected Double value
Value used to create the equation

Constructor Detail

EquationContinuousDomain

public EquationContinuousDomain()
Empty constructor.

Method Detail

toString

public String toString()
Overrides:
toString in class Object

getVariableName

public String getVariableName()
Get variable name.

Returns:
the variableName

setVariableName

public void setVariableName(String variableName)
Set variable name.

Parameters:
variableName - the variableName to set

getOperator

public String getOperator()
Get operator.

Returns:
the operator

setOperator

public void setOperator(String operator)
Set operator.

Parameters:
operator - the operator to set

getCoefficient

public Double getCoefficient()
Get coefficient.

Returns:
the coefficient

setCoefficient

public void setCoefficient(Double coefficient)
Set coefficient.

Parameters:
coefficient - the coefficient to set

getReferenceValue

public Double getReferenceValue()
Get reference value.

Returns:
the reference value

setReferenceValue

public void setReferenceValue(Double referenceValue)
Set reference value.

Parameters:
referenceValue - the reference value.to set

getMinBound

public double getMinBound()
. In equation continuous domain, always return 0

Overrides:
getMinBound in class ContinuousDomain<Double,Double>
Returns:
the minBound

getMaxBound

public double getMaxBound()
. In equation continuous domain, always return 1

Overrides:
getMaxBound in class ContinuousDomain<Double,Double>
Returns:
the maxBound

getValueForIdentifier

public Double getValueForIdentifier(Double identifier)
Return value associated to identifier.. In continuous domain, just return identifier. In equation continuous domain, value appear in continuous domain values only. Here : return identifier.

Specified by:
getValueForIdentifier in interface Domain<Double,Double>
Overrides:
getValueForIdentifier in class ContinuousDomain<Double,Double>
Returns:
found value or null if not found

getValue

public Double getValue()
Get value used to create the equation.

Returns:
the value

setValue

public void setValue(Double value)
Set value used to create the equation.

Parameters:
value - the value to set

clone

public EquationContinuousDomain clone()
Description copied from interface: Domain
Clone the domain

Specified by:
clone in interface Domain<Double,Double>
Overrides:
clone in class ContinuousDomain<Double,Double>
Returns:
the domain cloned


Copyright © 1999-2010 CodeLutin. All Rights Reserved.