Package weka.attributeSelection
Class LFSMethods.LinkedList2
java.lang.Object
weka.core.FastVector
weka.attributeSelection.LFSMethods.LinkedList2
- All Implemented Interfaces:
Serializable
,Copyable
,RevisionHandler
- Enclosing class:
- LFSMethods
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class weka.core.FastVector
FastVector.FastVectorEnumeration
-
Constructor Summary
Constructors -
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 weka.core.FastVector
addElement, appendElements, capacity, contains, copy, copyElements, elementAt, elements, elements, firstElement, indexOf, insertElementAt, lastElement, removeAllElements, removeElementAt, setCapacity, setElementAt, size, swap, toArray, trimToSize
-
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:
gr
- the attribute set specificationmer
- the "merit" of this attribute set- Throws:
Exception
-
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Overrides:
getRevision
in classFastVector
- Returns:
- the revision
-