edu.indiana.iucbrf.feature
Interface DoubleRepresentable

All Known Subinterfaces:
FSMFeature
All Known Implementing Classes:
AbstractFSMFeature, BooleanFeature, CharacterFeature, DisplayMessageFeature, DoubleFeature, FiveSeverityFeature, IntegerFeature, PrintQualityFeature, YesNoFeature

public interface DoubleRepresentable

A DoubleRepresentable object can be represented as a double, and can have its value set from a double.

Note: There is no guarantee that doubleValue() and setValue() have an inverse relationship. It may be that setValue() converts a double value into some domain-dependent form, from which there is no return to the original double value (therefore, doubleValue() would not necessarily return that same double value. That is, in the code below the boolean areEqual variable may be either true or false:
double doubleValue = 5;
Solution s = new DomainDependentSolution();
s.setValue(doubleValue);
areEqual = (s.doubleValue() == doubleValue); // may be true or false, depending on DomainDependentSolution


Method Summary
 double getValueAsDouble()
          Get a representation of this feature as a double.
 void setValueWithDouble(double newValue)
          Set the value of this feature according to a double.
 

Method Detail

getValueAsDouble

double getValueAsDouble()
Get a representation of this feature as a double.


setValueWithDouble

void setValueWithDouble(double newValue)
Set the value of this feature according to a double.