public class Or extends RelationWithList
To be true, only one relation contained in the list must be true.
list
constraints, probabilityRelation
Constructor and Description |
---|
Or() |
Modifier and Type | Method and Description |
---|---|
boolean |
isTrue(java.util.Map<parsebionet.biodata.BioEntity,Constraint> simpleConstraints) |
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() |
addRelation, getInvolvedEntities, getList
createConstraints, isProbabilityRelation, setProbabilityRelation
public boolean isTrue(java.util.Map<parsebionet.biodata.BioEntity,Constraint> simpleConstraints)
protected void makeConstraints()
Relation
makeConstraints
in class Relation
public java.lang.Object runThrough(Bind b)
in this case, this class must be extended.
runThrough
in class Relation
b
- The bind to get the data from.