public class BestFirst.LinkedList2 extends FastVector
Constructor and Description |
---|
BestFirst.LinkedList2(int sz) |
Modifier and Type | Method and Description |
---|---|
void |
addToList(Object[] data,
double mer)
adds an element (Link) to the list.
|
BestFirst.Link2 |
getLinkAt(int index)
returns the element (Link) at a specific index from the list.
|
String |
getRevision()
Returns the revision string.
|
void |
removeLinkAt(int index)
removes an element (Link) at a specific index from the list.
|
addElement, appendElements, copy, copyElements, elementAt, elements, elements, firstElement, insertElementAt, lastElement, removeAllElements, removeElementAt, setCapacity, setElementAt, swap
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
containsAll, equals, hashCode
public void removeLinkAt(int index) throws Exception
index
- the index of the element to be removed.Exception
public BestFirst.Link2 getLinkAt(int index) throws Exception
index
- the index of the element to be returned.Exception
public void addToList(Object[] data, double mer) throws Exception
data
- the attribute set specificationmer
- the "merit" of this attribute setException
public String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class FastVector
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.