Package weka.attributeSelection
Class BestFirst.LinkedList2
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<BestFirst.Link2>
,Collection<BestFirst.Link2>
,List<BestFirst.Link2>
,RandomAccess
- Enclosing class:
- BestFirst
Class for handling a linked list. Used in best first search. Extends the
Vector class.
- Author:
- Mark Hall (mhall@cs.waikato.ac.nz)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adds an element (Link) to the list.getLinkAt
(int index) returns the element (Link) at a specific index from the list.Returns the revision string.void
removeLinkAt
(int index) removes an element (Link) at a specific index from the list.Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Constructor Details
-
LinkedList2
public LinkedList2(int sz)
-
-
Method Details
-
removeLinkAt
removes an element (Link) at a specific index from the list.- Parameters:
index
- the index of the element to be removed.- Throws:
Exception
-
getLinkAt
returns the element (Link) at a specific index from the list.- Parameters:
index
- the index of the element to be returned.- Throws:
Exception
-
addToList
adds an element (Link) to the list.- Parameters:
data
- the attribute set specificationmer
- the "merit" of this attribute set- Throws:
Exception
-
getRevision
Returns the revision string.- Returns:
- the revision
-