Predicate
Use extensions of this class in Conditions to evaluate objects. The Predicate evaluation function returns true or false, and all classes that implement Predicate must define this function. Each Condition has one Predicate, which evaluates a single object, but the object itself can contain other objects or point to other objects, and the Predicate can base its evaluation on these objects. The Predicate does not carry over any information from one evaluation to the next. Do not use it to alter any objects or properties in its evaluation code.
Example:
physicsContinuumCondition.setPredicate(new Predicate<PhysicsContinuum>() {
@Override
public boolean evaluate(PhysicsContinuum continuum) {
if (continuum != null &&
continuum.getReferenceValues()
.has(ReferencePressure.class) != null) {
return true;
}
return false;
}
});
Online API:
For coding specifics, see the Simcenter STAR-CCM+ Help menu:
and its subclasses.