org.jmlspecs.samples.misc
Class LessThanN
java.lang.Object
org.jmlspecs.samples.misc.LinearSearch
org.jmlspecs.samples.misc.SingleSolution
org.jmlspecs.samples.misc.LessThanN
- public class LessThanN
- extends SingleSolution
A search problem which is to find the first number strictly less
than n (and greater than 0).
- Author:
- Gary T. Leavens
|
Constructor Summary |
LessThanN(int n)
Initialize this search problem. |
LessThanN
public LessThanN(int n)
- Initialize this search problem.
f
public boolean f(int j)
- Description copied from class:
LinearSearch
- The function that describes what is being sought.
className
protected String className()
- Description copied from class:
SingleSolution
- A hook method for defining toString.
JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.