public class RelationToConstant extends RelationToThreshold
This is useful to distinguish between different ways to threshold a range of numbers e.g.
>= 7
or < 5
.
The threshold
will always form the second-operand in the relation.
Constructor and Description |
---|
RelationToConstant() |
RelationToConstant(RelationBean relation,
double threshold) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
RelationBean |
getRelation()
The relation to the threshold, where the threshold forms the second operand.
|
double |
getThreshold()
The constant threshold.
|
int |
hashCode() |
DoubleBiPredicate |
relation()
The relation to the threshold.
|
void |
setRelation(RelationBean relation)
The relation to the threshold, where the threshold forms the second operand.
|
void |
setThreshold(double threshold)
The constant threshold.
|
double |
threshold()
The threshold-value.
|
String |
toString()
By default, we use
AnchorBean.describeBean() as the string representation of the bean. |
String |
uniqueName()
A string describing this class and all its parameterization.
|
asPredicateDouble, asPredicateInt
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
public RelationToConstant()
public RelationToConstant(RelationBean relation, double threshold)
public double threshold()
RelationToThreshold
threshold
in class RelationToThreshold
public DoubleBiPredicate relation()
RelationToThreshold
relation
in class RelationToThreshold
public String toString()
AnchorBean
AnchorBean.describeBean()
as the string representation of the bean.toString
in class AnchorBean<RelationToThreshold>
public String uniqueName()
GenerateUniqueParameterization
It must be guaranteed to be unique for a given set of parameters.
public boolean equals(Object o)
equals
in interface GenerateUniqueParameterization
equals
in class Object
protected boolean canEqual(Object other)
public int hashCode()
hashCode
in interface GenerateUniqueParameterization
hashCode
in class Object
public RelationBean getRelation()
public void setRelation(RelationBean relation)
public double getThreshold()
public void setThreshold(double threshold)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.