2 * Description: provide the location information of a point
4 * @ Author Create/Modi Note
5 * Xiaofeng Xie Mar 1, 2003
6 * Xiaofeng Xie May 11, 2004
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * Please acknowledge the author(s) if you use this code in any way.
21 package net
.adaptivebox
.space
;
23 public class BasicPoint
implements Cloneable
, ILocationEngine
{
24 //store the location information in the search space (S)
25 private double[] location
;
27 public BasicPoint(int dim
) {
28 location
= new double[dim
];
31 public double[] getLocation() {
35 public void importLocation(double[] pointLoc
) {
36 System
.arraycopy(pointLoc
, 0, location
, 0, pointLoc
.length
);
39 public void importLocation(ILocationEngine point
) {
40 importLocation(point
.getLocation());