public class FloatingPointFeature extends ValuedFeature implements com.exalead.util.Checkable, java.io.Serializable
ValuedFeature.Units
Feature.Triggers
Modifier and Type | Field and Description |
---|---|
boolean |
addExactValue |
double |
coefficient |
static boolean |
DEFAULT_ADD_EXACT_VALUE |
static double |
DEFAULT_COEFFICIENT |
static boolean |
DEFAULT_HANDLE_OUT_OF_BOUND_VALUES |
static double |
DEFAULT_MAX |
static double |
DEFAULT_MIN |
static int |
DEFAULT_PRECISION |
static double |
DEFAULT_STEP |
static boolean |
DEFAULT_TRUNCATE_TRAILING_ZEROS |
boolean |
handleOutOfBoundValues |
double |
max |
double |
min |
int |
precision |
double |
step |
boolean |
truncateTrailingZeros |
unit, units
annotation, DEFAULT_LEVEL, display, level, trigger, triggers
Constructor and Description |
---|
FloatingPointFeature() |
FloatingPointFeature(FloatingPointFeature o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this FloatingPointFeature.
|
static FloatingPointFeature |
fromString(java.lang.String s)
String representation of this FloatingPointFeature.
|
double |
getCoefficient()
the coefficient used to multiply the extracted feature
|
double |
getMax()
the maximum value of the extracted feature
|
double |
getMin()
the minimum value of the extracted feature
|
int |
getPrecision()
the floating point precision in the display form
|
double |
getStep()
the optional step used
|
boolean |
isAddExactValue()
add the value (without any normalization) in a second annotation named TAG.exact
|
boolean |
isHandleOutOfBoundValues()
handle the value that are out of bound
|
boolean |
isTruncateTrailingZeros()
remove the trailing zeros after comma
|
FloatingPointFeature |
makeCopy()
Creates and returns a deep copy of this FloatingPointFeature.
|
static FloatingPointFeature |
readFrom(java.io.InputStream is)
Read this FloatingPointFeature from an XML fragment.
|
void |
setAddExactValue(boolean addExactValue)
add the value (without any normalization) in a second annotation named TAG.exact
|
void |
setCoefficient(double coefficient)
the coefficient used to multiply the extracted feature
|
void |
setHandleOutOfBoundValues(boolean handleOutOfBoundValues)
handle the value that are out of bound
|
void |
setMax(double max)
the maximum value of the extracted feature
|
void |
setMin(double min)
the minimum value of the extracted feature
|
void |
setPrecision(int precision)
the floating point precision in the display form
|
void |
setStep(double step)
the optional step used
|
void |
setTruncateTrailingZeros(boolean truncateTrailingZeros)
remove the trailing zeros after comma
|
java.lang.String |
toString()
String representation of this FloatingPointFeature.
|
FloatingPointFeature |
withAddExactValue(boolean addExactValue) |
FloatingPointFeature |
withAddExactValue(java.lang.Boolean addExactValue) |
FloatingPointFeature |
withAnnotation(java.lang.String annotation) |
FloatingPointFeature |
withCoefficient(double coefficient) |
FloatingPointFeature |
withDisplay(java.lang.String display) |
FloatingPointFeature |
withHandleOutOfBoundValues(boolean handleOutOfBoundValues) |
FloatingPointFeature |
withHandleOutOfBoundValues(java.lang.Boolean handleOutOfBoundValues) |
FloatingPointFeature |
withLevel(java.lang.String level) |
FloatingPointFeature |
withMax(double max) |
FloatingPointFeature |
withMin(double min) |
FloatingPointFeature |
withPrecision(int precision) |
FloatingPointFeature |
withPrecision(java.lang.Integer precision) |
FloatingPointFeature |
withStep(double step) |
FloatingPointFeature |
withTrigger(java.lang.String trigger) |
FloatingPointFeature |
withTriggers(java.util.Collection<exa.bee.StringValue> __values) |
FloatingPointFeature |
withTriggers(exa.bee.StringValue... __values) |
FloatingPointFeature |
withTruncateTrailingZeros(boolean truncateTrailingZeros) |
FloatingPointFeature |
withTruncateTrailingZeros(java.lang.Boolean truncateTrailingZeros) |
FloatingPointFeature |
withUnit(java.lang.String unit) |
FloatingPointFeature |
withUnits(java.util.Collection<exa.bee.StringValue> __values) |
FloatingPointFeature |
withUnits(exa.bee.StringValue... __values) |
void |
writeTo(java.io.OutputStream os)
Write this FloatingPointFeature as an XML fragment
|
getUnit, getUnits, setUnit, setUnits, withUnits
getAnnotation, getDisplay, getLevel, getTrigger, getTriggers, setAnnotation, setDisplay, setLevel, setTrigger, setTriggers, withTriggers
public double step
public static final double DEFAULT_STEP
public double min
public static final double DEFAULT_MIN
public double max
public static final double DEFAULT_MAX
public double coefficient
public static final double DEFAULT_COEFFICIENT
public int precision
public static final int DEFAULT_PRECISION
public boolean handleOutOfBoundValues
public static final boolean DEFAULT_HANDLE_OUT_OF_BOUND_VALUES
public boolean addExactValue
public static final boolean DEFAULT_ADD_EXACT_VALUE
public boolean truncateTrailingZeros
public static final boolean DEFAULT_TRUNCATE_TRAILING_ZEROS
public FloatingPointFeature()
public FloatingPointFeature(FloatingPointFeature o)
public FloatingPointFeature withUnit(java.lang.String unit)
withUnit
in class ValuedFeature
public FloatingPointFeature withUnits(exa.bee.StringValue... __values)
withUnits
in class ValuedFeature
public FloatingPointFeature withUnits(java.util.Collection<exa.bee.StringValue> __values)
withUnits
in class ValuedFeature
public FloatingPointFeature withTrigger(java.lang.String trigger)
withTrigger
in class ValuedFeature
public FloatingPointFeature withTriggers(exa.bee.StringValue... __values)
withTriggers
in class ValuedFeature
public FloatingPointFeature withTriggers(java.util.Collection<exa.bee.StringValue> __values)
withTriggers
in class ValuedFeature
public FloatingPointFeature withAnnotation(java.lang.String annotation)
withAnnotation
in class ValuedFeature
public FloatingPointFeature withDisplay(java.lang.String display)
withDisplay
in class ValuedFeature
public FloatingPointFeature withLevel(java.lang.String level)
withLevel
in class ValuedFeature
public void setStep(double step)
public double getStep()
public FloatingPointFeature withStep(double step)
public void setMin(double min)
public double getMin()
public FloatingPointFeature withMin(double min)
public void setMax(double max)
public double getMax()
public FloatingPointFeature withMax(double max)
public void setCoefficient(double coefficient)
public double getCoefficient()
public FloatingPointFeature withCoefficient(double coefficient)
public void setPrecision(int precision)
public int getPrecision()
public FloatingPointFeature withPrecision(int precision)
public FloatingPointFeature withPrecision(java.lang.Integer precision)
public void setHandleOutOfBoundValues(boolean handleOutOfBoundValues)
public boolean isHandleOutOfBoundValues()
public FloatingPointFeature withHandleOutOfBoundValues(boolean handleOutOfBoundValues)
public FloatingPointFeature withHandleOutOfBoundValues(java.lang.Boolean handleOutOfBoundValues)
public void setAddExactValue(boolean addExactValue)
public boolean isAddExactValue()
public FloatingPointFeature withAddExactValue(boolean addExactValue)
public FloatingPointFeature withAddExactValue(java.lang.Boolean addExactValue)
public void setTruncateTrailingZeros(boolean truncateTrailingZeros)
public boolean isTruncateTrailingZeros()
public FloatingPointFeature withTruncateTrailingZeros(boolean truncateTrailingZeros)
public FloatingPointFeature withTruncateTrailingZeros(java.lang.Boolean truncateTrailingZeros)
public FloatingPointFeature makeCopy()
makeCopy
in class ValuedFeature
public static FloatingPointFeature readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class ValuedFeature
javax.xml.bind.JAXBException
java.io.IOException
public static FloatingPointFeature fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class ValuedFeature
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class ValuedFeature
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.