sub_arctic.lib
Class pred_not

java.lang.Object
  |
  +--sub_arctic.lib.pred_not

public class pred_not
extends java.lang.Object
implements interactor_pred

Interactor predicate class that does an NOT operation across the results of another interactor_pred objects it is composed out of.

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)

Field Summary
protected  interactor_pred _op1
          Component predicate.
 
Constructor Summary
pred_not(interactor_pred p1)
          Construct new predicate from another predicate
 
Method Summary
 interactor_pred op1()
          Component predicate.
 void set_op1(interactor_pred p)
          Set component predicate.
 boolean test(interactor obj, java.lang.Object parameters)
          Perform the predicate test by inverting the result of the component predicate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_op1

protected interactor_pred _op1
Component predicate.
Constructor Detail

pred_not

public pred_not(interactor_pred p1)
Construct new predicate from another predicate
Parameters:
interactor_pred - p the predicate we are to be built from.
Method Detail

op1

public interactor_pred op1()
Component predicate.
Returns:
interactor_pred the predicate we are built from.

set_op1

public void set_op1(interactor_pred p)
Set component predicate.
Parameters:
interactor_pred - p the predicate we are to be built from.

test

public boolean test(interactor obj,
                    java.lang.Object parameters)
Perform the predicate test by inverting the result of the component predicate.
Specified by:
test in interface interactor_pred
Parameters:
obj - the interactor the predicate is testing.
parameters - the additional parameters (of subclass specific type) to the component predicate.
Returns:
NOT of result from the component predicate.