adams.ml.requirement
Class ReqIntegerMinMax

java.lang.Object
  extended by adams.ml.requirement.ReqInteger
      extended by adams.ml.requirement.ReqIntegerMinMax
All Implemented Interfaces:
Requirement

public class ReqIntegerMinMax
extends ReqInteger

Author:
dale

Field Summary
 int m_max
           
 int m_min
           
 
Constructor Summary
ReqIntegerMinMax(int min, int max)
           
 
Method Summary
 String checkRequirement(BaseData bd)
          Checks if cell is ok.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_min

public int m_min

m_max

public int m_max
Constructor Detail

ReqIntegerMinMax

public ReqIntegerMinMax(int min,
                        int max)
Parameters:
min -
max -
Method Detail

checkRequirement

public String checkRequirement(BaseData bd)
Description copied from interface: Requirement
Checks if cell is ok. If ok, return null else return error String Sets cell if possible (i.e string representation of int->int

Specified by:
checkRequirement in interface Requirement
Overrides:
checkRequirement in class ReqInteger
Parameters:
bd - cell
Returns:
error string, or null


Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.