public class ArrayFront extends Object implements Front
| Modifier and Type | Field and Description |
|---|---|
protected int |
numberOfPoints |
protected Point[] |
points |
| Constructor and Description |
|---|
ArrayFront()
Constructor
|
ArrayFront(Front front)
Copy Constructor
|
ArrayFront(int numberOfPoints,
int dimensions)
Constructor
|
ArrayFront(List<? extends Solution<?>> solutionList)
Constructor
|
ArrayFront(String fileName)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
createInputStream(String fileName) |
boolean |
equals(Object o) |
int |
getNumberOfPoints() |
Point |
getPoint(int index) |
int |
getPointDimensions() |
int |
hashCode() |
void |
setPoint(int index,
Point point) |
void |
sort(Comparator<Point> comparator) |
protected Point[] points
protected int numberOfPoints
public ArrayFront()
public ArrayFront(Front front)
public ArrayFront(int numberOfPoints,
int dimensions)
public ArrayFront(String fileName) throws FileNotFoundException
fileName - FileNotFoundExceptionpublic InputStream createInputStream(String fileName) throws FileNotFoundException
FileNotFoundExceptionpublic int getNumberOfPoints()
getNumberOfPoints in interface Frontpublic int getPointDimensions()
getPointDimensions in interface Frontpublic void sort(Comparator<Point> comparator)
Copyright © 2015. All rights reserved.