/** * Description: Contains a set of points. * * Author Create/Modi Note * Xiaofeng Xie Mar 7, 2003 * Xiaofeng Xie May 3, 2003 * Xiaofeng Xie May 11, 2004 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * Please acknowledge the author(s) if you use this code in any way. * * @version 1.1 * @Since MAOS1.0 */ package net.adaptivebox.knowledge; import net.adaptivebox.global.*; import net.adaptivebox.goodness.*; import net.adaptivebox.problem.*; public class Library { private final SearchPoint[] libPoints; private int gIndex = -1; public Library(int number, ProblemEncoder problemEncoder){ libPoints = new SearchPoint[number]; for (int i=0; ival==isMAX) { val = libPoints[i].getEncodeInfo()[0]; } } return val; } public int getVconThanNum(double allowedCons) { int num=0; for(int i=0; i