public class FloatingPointEntity extends ValuedEntity implements com.exalead.util.Checkable, java.io.Serializable
ValuedEntity.RightContexts, ValuedEntity.Units
SimpleEntity.LeftContexts, SimpleEntity.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 |
rightContext, rightContexts, unit, units
annotation, DEFAULT_MATCH_MODE, display, leftContext, leftContexts, matchMode, trigger, triggers
name
modifiedAt, modifiedBy
Constructor and Description |
---|
FloatingPointEntity() |
FloatingPointEntity(FloatingPointEntity o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this FloatingPointEntity.
|
static FloatingPointEntity |
fromString(java.lang.String s)
String representation of this FloatingPointEntity.
|
double |
getCoefficient()
The normalization coefficient used to multiply the matched value
|
double |
getMax()
Maximum value for a match
|
double |
getMin()
Minimum value for a match
|
int |
getPrecision()
The floating-point precision in output
|
double |
getStep()
If defined, normalizes the value to the nearest step
|
boolean |
isAddExactValue()
If true, adds the original value (before normalization) in an extra annotation TAG.exact
|
boolean |
isHandleOutOfBoundValues()
If false, ignores values lower than min or greater than max
|
boolean |
isTruncateTrailingZeros()
If true, removes the trailing zeros after point
|
FloatingPointEntity |
makeCopy()
Creates and returns a deep copy of this FloatingPointEntity.
|
static FloatingPointEntity |
readFrom(java.io.InputStream is)
Read this FloatingPointEntity from an XML fragment.
|
void |
setAddExactValue(boolean addExactValue)
If true, adds the original value (before normalization) in an extra annotation TAG.exact
|
void |
setCoefficient(double coefficient)
The normalization coefficient used to multiply the matched value
|
void |
setHandleOutOfBoundValues(boolean handleOutOfBoundValues)
If false, ignores values lower than min or greater than max
|
void |
setMax(double max)
Maximum value for a match
|
void |
setMin(double min)
Minimum value for a match
|
void |
setPrecision(int precision)
The floating-point precision in output
|
void |
setStep(double step)
If defined, normalizes the value to the nearest step
|
void |
setTruncateTrailingZeros(boolean truncateTrailingZeros)
If true, removes the trailing zeros after point
|
java.lang.String |
toString()
String representation of this FloatingPointEntity.
|
FloatingPointEntity |
withAddExactValue(boolean addExactValue) |
FloatingPointEntity |
withAddExactValue(java.lang.Boolean addExactValue) |
FloatingPointEntity |
withAnnotation(java.lang.String annotation) |
FloatingPointEntity |
withCoefficient(double coefficient) |
FloatingPointEntity |
withDisplay(java.lang.String display) |
FloatingPointEntity |
withHandleOutOfBoundValues(boolean handleOutOfBoundValues) |
FloatingPointEntity |
withHandleOutOfBoundValues(java.lang.Boolean handleOutOfBoundValues) |
FloatingPointEntity |
withLeftContext(java.lang.String leftContext) |
FloatingPointEntity |
withLeftContexts(java.util.Collection<exa.bee.StringValue> __values) |
FloatingPointEntity |
withLeftContexts(exa.bee.StringValue... __values)
Alias for triggers
|
FloatingPointEntity |
withMatchMode(java.lang.String matchMode) |
FloatingPointEntity |
withMax(double max) |
FloatingPointEntity |
withMin(double min) |
FloatingPointEntity |
withModifiedAt(java.lang.Long modifiedAt) |
FloatingPointEntity |
withModifiedBy(java.lang.String modifiedBy) |
FloatingPointEntity |
withName(java.lang.String name) |
FloatingPointEntity |
withPrecision(int precision) |
FloatingPointEntity |
withPrecision(java.lang.Integer precision) |
FloatingPointEntity |
withRightContext(java.lang.String rightContext) |
FloatingPointEntity |
withRightContexts(java.util.Collection<exa.bee.StringValue> __values) |
FloatingPointEntity |
withRightContexts(exa.bee.StringValue... __values)
Alias for units
|
FloatingPointEntity |
withStep(double step) |
FloatingPointEntity |
withTrigger(java.lang.String trigger) |
FloatingPointEntity |
withTriggers(java.util.Collection<exa.bee.StringValue> __values) |
FloatingPointEntity |
withTriggers(exa.bee.StringValue... __values)
An optional list of left contexts triggering the match
|
FloatingPointEntity |
withTruncateTrailingZeros(boolean truncateTrailingZeros) |
FloatingPointEntity |
withTruncateTrailingZeros(java.lang.Boolean truncateTrailingZeros) |
FloatingPointEntity |
withUnit(java.lang.String unit) |
FloatingPointEntity |
withUnits(java.util.Collection<exa.bee.StringValue> __values) |
FloatingPointEntity |
withUnits(exa.bee.StringValue... __values)
An optional list of conditions on right context
|
void |
writeTo(java.io.OutputStream os)
Write this FloatingPointEntity as an XML fragment
|
getRightContext, getRightContexts, getUnit, getUnits, setRightContext, setRightContexts, setUnit, setUnits, withRightContexts, withUnits
getAnnotation, getDisplay, getLeftContext, getLeftContexts, getMatchMode, getTrigger, getTriggers, setAnnotation, setDisplay, setLeftContext, setLeftContexts, setMatchMode, setTrigger, setTriggers, withLeftContexts, withTriggers
getName, setName
getModifiedAt, getModifiedBy, setModifiedAt, setModifiedBy
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 FloatingPointEntity()
public FloatingPointEntity(FloatingPointEntity o)
public FloatingPointEntity withUnit(java.lang.String unit)
withUnit
in class ValuedEntity
public FloatingPointEntity withUnits(exa.bee.StringValue... __values)
withUnits
in class ValuedEntity
public FloatingPointEntity withUnits(java.util.Collection<exa.bee.StringValue> __values)
withUnits
in class ValuedEntity
public FloatingPointEntity withRightContext(java.lang.String rightContext)
withRightContext
in class ValuedEntity
public FloatingPointEntity withRightContexts(exa.bee.StringValue... __values)
withRightContexts
in class ValuedEntity
public FloatingPointEntity withRightContexts(java.util.Collection<exa.bee.StringValue> __values)
withRightContexts
in class ValuedEntity
public FloatingPointEntity withTrigger(java.lang.String trigger)
withTrigger
in class ValuedEntity
public FloatingPointEntity withTriggers(exa.bee.StringValue... __values)
withTriggers
in class ValuedEntity
public FloatingPointEntity withTriggers(java.util.Collection<exa.bee.StringValue> __values)
withTriggers
in class ValuedEntity
public FloatingPointEntity withLeftContext(java.lang.String leftContext)
withLeftContext
in class ValuedEntity
public FloatingPointEntity withLeftContexts(exa.bee.StringValue... __values)
withLeftContexts
in class ValuedEntity
public FloatingPointEntity withLeftContexts(java.util.Collection<exa.bee.StringValue> __values)
withLeftContexts
in class ValuedEntity
public FloatingPointEntity withAnnotation(java.lang.String annotation)
withAnnotation
in class ValuedEntity
public FloatingPointEntity withDisplay(java.lang.String display)
withDisplay
in class ValuedEntity
public FloatingPointEntity withMatchMode(java.lang.String matchMode)
withMatchMode
in class ValuedEntity
public FloatingPointEntity withName(java.lang.String name)
withName
in class ValuedEntity
public FloatingPointEntity withModifiedBy(java.lang.String modifiedBy)
withModifiedBy
in class ValuedEntity
public FloatingPointEntity withModifiedAt(java.lang.Long modifiedAt)
withModifiedAt
in class ValuedEntity
public void setStep(double step)
public double getStep()
public FloatingPointEntity withStep(double step)
public void setMin(double min)
public double getMin()
public FloatingPointEntity withMin(double min)
public void setMax(double max)
public double getMax()
public FloatingPointEntity withMax(double max)
public void setCoefficient(double coefficient)
public double getCoefficient()
public FloatingPointEntity withCoefficient(double coefficient)
public void setPrecision(int precision)
public int getPrecision()
public FloatingPointEntity withPrecision(int precision)
public FloatingPointEntity withPrecision(java.lang.Integer precision)
public void setHandleOutOfBoundValues(boolean handleOutOfBoundValues)
public boolean isHandleOutOfBoundValues()
public FloatingPointEntity withHandleOutOfBoundValues(boolean handleOutOfBoundValues)
public FloatingPointEntity withHandleOutOfBoundValues(java.lang.Boolean handleOutOfBoundValues)
public void setAddExactValue(boolean addExactValue)
public boolean isAddExactValue()
public FloatingPointEntity withAddExactValue(boolean addExactValue)
public FloatingPointEntity withAddExactValue(java.lang.Boolean addExactValue)
public void setTruncateTrailingZeros(boolean truncateTrailingZeros)
public boolean isTruncateTrailingZeros()
public FloatingPointEntity withTruncateTrailingZeros(boolean truncateTrailingZeros)
public FloatingPointEntity withTruncateTrailingZeros(java.lang.Boolean truncateTrailingZeros)
public FloatingPointEntity makeCopy()
makeCopy
in class ValuedEntity
public static FloatingPointEntity 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 ValuedEntity
javax.xml.bind.JAXBException
java.io.IOException
public static FloatingPointEntity 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 ValuedEntity
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class ValuedEntity
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.