public class NumericalFeature 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 int |
DEFAULT_MAX |
static int |
DEFAULT_MIN |
static int |
DEFAULT_PRECISION |
static int |
DEFAULT_STEP |
static boolean |
DEFAULT_TRUNCATE_TRAILING_ZEROS |
boolean |
handleOutOfBoundValues |
int |
max |
int |
min |
int |
precision |
int |
step |
boolean |
truncateTrailingZeros |
unit, units
annotation, DEFAULT_LEVEL, display, level, trigger, triggers
Constructor and Description |
---|
NumericalFeature() |
NumericalFeature(NumericalFeature o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this NumericalFeature.
|
static NumericalFeature |
fromString(java.lang.String s)
String representation of this NumericalFeature.
|
double |
getCoefficient()
the coefficient used to multiply the extracted feature
|
int |
getMax()
the maximum value of the extracted feature
|
int |
getMin()
the minimum value of the extracted feature
|
int |
getPrecision()
the floating point precision in the display form
|
int |
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
|
NumericalFeature |
makeCopy()
Creates and returns a deep copy of this NumericalFeature.
|
static NumericalFeature |
readFrom(java.io.InputStream is)
Read this NumericalFeature 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(int max)
the maximum value of the extracted feature
|
void |
setMin(int min)
the minimum value of the extracted feature
|
void |
setPrecision(int precision)
the floating point precision in the display form
|
void |
setStep(int step)
the optional step used
|
void |
setTruncateTrailingZeros(boolean truncateTrailingZeros)
remove the trailing zeros after comma
|
java.lang.String |
toString()
String representation of this NumericalFeature.
|
NumericalFeature |
withAddExactValue(boolean addExactValue) |
NumericalFeature |
withAddExactValue(java.lang.Boolean addExactValue) |
NumericalFeature |
withAnnotation(java.lang.String annotation) |
NumericalFeature |
withCoefficient(double coefficient) |
NumericalFeature |
withDisplay(java.lang.String display) |
NumericalFeature |
withHandleOutOfBoundValues(boolean handleOutOfBoundValues) |
NumericalFeature |
withHandleOutOfBoundValues(java.lang.Boolean handleOutOfBoundValues) |
NumericalFeature |
withLevel(java.lang.String level) |
NumericalFeature |
withMax(int max) |
NumericalFeature |
withMax(java.lang.Integer max) |
NumericalFeature |
withMin(int min) |
NumericalFeature |
withMin(java.lang.Integer min) |
NumericalFeature |
withPrecision(int precision) |
NumericalFeature |
withPrecision(java.lang.Integer precision) |
NumericalFeature |
withStep(int step) |
NumericalFeature |
withStep(java.lang.Integer step) |
NumericalFeature |
withTrigger(java.lang.String trigger) |
NumericalFeature |
withTriggers(java.util.Collection<exa.bee.StringValue> __values) |
NumericalFeature |
withTriggers(exa.bee.StringValue... __values) |
NumericalFeature |
withTruncateTrailingZeros(boolean truncateTrailingZeros) |
NumericalFeature |
withTruncateTrailingZeros(java.lang.Boolean truncateTrailingZeros) |
NumericalFeature |
withUnit(java.lang.String unit) |
NumericalFeature |
withUnits(java.util.Collection<exa.bee.StringValue> __values) |
NumericalFeature |
withUnits(exa.bee.StringValue... __values) |
void |
writeTo(java.io.OutputStream os)
Write this NumericalFeature as an XML fragment
|
getUnit, getUnits, setUnit, setUnits, withUnits
getAnnotation, getDisplay, getLevel, getTrigger, getTriggers, setAnnotation, setDisplay, setLevel, setTrigger, setTriggers, withTriggers
public int step
public static final int DEFAULT_STEP
public int min
public static final int DEFAULT_MIN
public int max
public static final int 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 NumericalFeature()
public NumericalFeature(NumericalFeature o)
public NumericalFeature withUnit(java.lang.String unit)
withUnit
in class ValuedFeature
public NumericalFeature withUnits(exa.bee.StringValue... __values)
withUnits
in class ValuedFeature
public NumericalFeature withUnits(java.util.Collection<exa.bee.StringValue> __values)
withUnits
in class ValuedFeature
public NumericalFeature withTrigger(java.lang.String trigger)
withTrigger
in class ValuedFeature
public NumericalFeature withTriggers(exa.bee.StringValue... __values)
withTriggers
in class ValuedFeature
public NumericalFeature withTriggers(java.util.Collection<exa.bee.StringValue> __values)
withTriggers
in class ValuedFeature
public NumericalFeature withAnnotation(java.lang.String annotation)
withAnnotation
in class ValuedFeature
public NumericalFeature withDisplay(java.lang.String display)
withDisplay
in class ValuedFeature
public NumericalFeature withLevel(java.lang.String level)
withLevel
in class ValuedFeature
public void setStep(int step)
public int getStep()
public NumericalFeature withStep(int step)
public NumericalFeature withStep(java.lang.Integer step)
public void setMin(int min)
public int getMin()
public NumericalFeature withMin(int min)
public NumericalFeature withMin(java.lang.Integer min)
public void setMax(int max)
public int getMax()
public NumericalFeature withMax(int max)
public NumericalFeature withMax(java.lang.Integer max)
public void setCoefficient(double coefficient)
public double getCoefficient()
public NumericalFeature withCoefficient(double coefficient)
public void setPrecision(int precision)
public int getPrecision()
public NumericalFeature withPrecision(int precision)
public NumericalFeature withPrecision(java.lang.Integer precision)
public void setHandleOutOfBoundValues(boolean handleOutOfBoundValues)
public boolean isHandleOutOfBoundValues()
public NumericalFeature withHandleOutOfBoundValues(boolean handleOutOfBoundValues)
public NumericalFeature withHandleOutOfBoundValues(java.lang.Boolean handleOutOfBoundValues)
public void setAddExactValue(boolean addExactValue)
public boolean isAddExactValue()
public NumericalFeature withAddExactValue(boolean addExactValue)
public NumericalFeature withAddExactValue(java.lang.Boolean addExactValue)
public void setTruncateTrailingZeros(boolean truncateTrailingZeros)
public boolean isTruncateTrailingZeros()
public NumericalFeature withTruncateTrailingZeros(boolean truncateTrailingZeros)
public NumericalFeature withTruncateTrailingZeros(java.lang.Boolean truncateTrailingZeros)
public NumericalFeature makeCopy()
makeCopy
in class ValuedFeature
public static NumericalFeature 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 NumericalFeature 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.