LFSMethods.LinkedList2 (original) (raw)
java.lang.Object
- weka.core.FastVector
- weka.attributeSelection.LFSMethods.LinkedList2
All Implemented Interfaces:
java.io.Serializable, Copyable, RevisionHandler
Enclosing class:
LFSMethods
public class LFSMethods.LinkedList2
extends FastVector
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:
Serialized Form
Nested Class Summary
* ### Nested classes/interfaces inherited from class weka.core.[FastVector](../../weka/core/FastVector.html "class in weka.core") `[FastVector.FastVectorEnumeration](../../weka/core/FastVector.FastVectorEnumeration.html "class in weka.core")`
Constructor Summary
Constructors
Constructor and Description LinkedList2(int sz) Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type Method and Description void addToList(java.lang.Object[] data, double mer) adds an element (Link) to the list. LFSMethods.Link2 getLinkAt(int index) returns the element (Link) at a specific index from the list. java.lang.String getRevision() 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](../../weka/core/FastVector.html "class in weka.core") `[addElement](../../weka/core/FastVector.html#addElement-java.lang.Object-), [appendElements](../../weka/core/FastVector.html#appendElements-weka.core.FastVector-), [capacity](../../weka/core/FastVector.html#capacity--), [contains](../../weka/core/FastVector.html#contains-java.lang.Object-), [copy](../../weka/core/FastVector.html#copy--), [copyElements](../../weka/core/FastVector.html#copyElements--), [elementAt](../../weka/core/FastVector.html#elementAt-int-), [elements](../../weka/core/FastVector.html#elements--), [elements](../../weka/core/FastVector.html#elements-int-), [firstElement](../../weka/core/FastVector.html#firstElement--), [indexOf](../../weka/core/FastVector.html#indexOf-java.lang.Object-), [insertElementAt](../../weka/core/FastVector.html#insertElementAt-java.lang.Object-int-), [lastElement](../../weka/core/FastVector.html#lastElement--), [removeAllElements](../../weka/core/FastVector.html#removeAllElements--), [removeElementAt](../../weka/core/FastVector.html#removeElementAt-int-), [setCapacity](../../weka/core/FastVector.html#setCapacity-int-), [setElementAt](../../weka/core/FastVector.html#setElementAt-java.lang.Object-int-), [size](../../weka/core/FastVector.html#size--), [swap](../../weka/core/FastVector.html#swap-int-int-), [toArray](../../weka/core/FastVector.html#toArray--), [trimToSize](../../weka/core/FastVector.html#trimToSize--)` * ### Methods inherited from class java.lang.Object `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
Constructor Detail
* #### LinkedList2 public LinkedList2(int sz)
Method Detail
* #### removeLinkAt public void removeLinkAt(int index) throws java.lang.Exception removes an element (Link) at a specific index from the list. Parameters: `index` \- the index of the element to be removed. Throws: `java.lang.Exception` * #### getLinkAt public [LFSMethods.Link2](../../weka/attributeSelection/LFSMethods.Link2.html "class in weka.attributeSelection") getLinkAt(int index) throws java.lang.Exception returns the element (Link) at a specific index from the list. Parameters: `index` \- the index of the element to be returned. Throws: `java.lang.Exception` * #### addToList public void addToList(java.lang.Object[] data, double mer) throws java.lang.Exception adds an element (Link) to the list. Parameters: `gr` \- the attribute set specification `mer` \- the "merit" of this attribute set Throws: `java.lang.Exception` * #### getRevision public java.lang.String getRevision() Returns the revision string. Specified by: `[getRevision](../../weka/core/RevisionHandler.html#getRevision--)` in interface `[RevisionHandler](../../weka/core/RevisionHandler.html "interface in weka.core")` Overrides: `[getRevision](../../weka/core/FastVector.html#getRevision--)` in class `[FastVector](../../weka/core/FastVector.html "class in weka.core")` Returns: the revision