sub_arctic.lib
Interface interactor_pred

All Known Implementing Classes:
nametag_sem_draw, pred_and, pred_or, pred_true, sem_draw_continue, backdrop_sem_draw, cgraph_sem_draw, rect_bound_overlap, pred_not, bounds_sem_draw_continue

public abstract interface interactor_pred

Interface representing an object that tests a predicate over an interactor object (with a set of subclass specific parameter values). This is used as part of the traverse_and_collect() traversal method described in base_interactor.

In addition to implementing a predicate, this class is also sometimes used to perform actions during a traversal. In that case the test() method is executed for its side effects in addition to its boolean selection result.

See Also:
base_interactor.traverse_and_collect(int, int, sub_arctic.lib.interactor_pred, sub_arctic.lib.interactor_pred, sub_arctic.lib.traversal_xform, java.lang.Object, sub_arctic.input.pick_collector)

Method Summary
 boolean test(interactor obj, java.lang.Object parameters)
          Perform the predicate test.
 

Method Detail

test

public boolean test(interactor obj,
                    java.lang.Object parameters)
Perform the predicate test.
Parameters:
obj - the interactor the predicate is testing.
parameters - the additional parameters (of subclass specific type) to the predicate.
Returns:
predicate result.