public class UniqueProbability extends Unique
Modifier and Type | Field and Description |
---|---|
private And |
transformation |
constraints, probabilityRelation
Constructor and Description |
---|
UniqueProbability(parsebionet.biodata.BioEntity entity,
double probability) |
Modifier and Type | Method and Description |
---|---|
And |
getTransformation() |
protected void |
makeConstraints()
Creates the constraints corresponding to the relation.
|
java.lang.Object |
runThrough(Bind b)
Only used when interaction are in the solver.
|
java.lang.String |
toString() |
void |
transform(double min,
double max,
RelationFactory factory,
OperationFactory opFactory)
Transforms the relation into an AND interaction with two constraints.
|
getEntity, getInvolvedEntities, isTrue
createConstraints, isProbabilityRelation, setProbabilityRelation
private And transformation
public UniqueProbability(parsebionet.biodata.BioEntity entity, double probability)
public void transform(double min, double max, RelationFactory factory, OperationFactory opFactory)
min
- Lower bound.max
- Upper bound.factory
- Relation factory.opFactory
- Operation factory.public java.lang.Object runThrough(Bind b)
Unique
in this case, this class must be extended.
runThrough
in class Unique
b
- The bind to get the data from.protected void makeConstraints()
Relation
makeConstraints
in class Unique
public And getTransformation()