net.grelf.grip
Class Threshold

java.lang.Object
  extended by net.grelf.grip.Threshold

public class Threshold
extends java.lang.Object

Record to hold an array of threshold ranges plus a boolean to say whether tests against the thresholds are to be ANDed for all channels (as opposed to ORing them). ANDing is the default.


Field Summary
 boolean anding
          Whether results of comparing channels against threshold are to be AND-ed or OR-ed together.
 RangeInt[] th
          The threshold ranges, one per channel.
 
Constructor Summary
Threshold(int nBands)
          As initially constructed the threshold ranges are all 0..0 and anding is true.
 
Method Summary
 java.lang.String toString()
          Get a String representation of the Threshold
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

th

public RangeInt[] th
The threshold ranges, one per channel.


anding

public boolean anding
Whether results of comparing channels against threshold are to be AND-ed or OR-ed together.

Constructor Detail

Threshold

public Threshold(int nBands)
As initially constructed the threshold ranges are all 0..0 and anding is true.

Method Detail

toString

public java.lang.String toString()
Get a String representation of the Threshold

Overrides:
toString in class java.lang.Object