fi.jyu.phys.grain.sort.gates
Class GrainGate1D

java.lang.Object
  extended by fi.jyu.phys.grain.sort.gates.GrainGate1D

public class GrainGate1D
extends java.lang.Object

A simple 1-dimensional gate object

Author:
pajura

Constructor Summary
GrainGate1D(double lower, double upper)
          Creates a new instance of GrainGate1D
 
Method Summary
 boolean passes(double value)
          Test the input value against this gate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrainGate1D

public GrainGate1D(double lower,
                   double upper)
Creates a new instance of GrainGate1D

Parameters:
lower - Lower edge of the gate (inclusive)
upper - Upper edge of the gate (inclusive)
Method Detail

passes

public boolean passes(double value)
Test the input value against this gate

Parameters:
value - Value to be tested
Returns:
True if value lies inside the gate, otherwise false