edu.illinois.ncsa.versus.descriptor.impl
Class VectorFeature<E>

java.lang.Object
  extended by edu.illinois.ncsa.versus.descriptor.impl.VectorFeature<E>
All Implemented Interfaces:
Descriptor

public class VectorFeature<E>
extends java.lang.Object
implements Descriptor

A feature represented by a vector of objects E.

Author:
Luigi Marini

Field Summary
private  java.util.List<E> list
           
 
Constructor Summary
VectorFeature()
           
 
Method Summary
 void add(int index, E element)
          Add an element to the vector at a particular position.
 E get(int i)
          Get an element at a specific index.
 java.lang.String getName()
          Get the pretty name of this feature.
 java.lang.String getType()
          Get the unique type of this feature.
 int size()
          The size of the vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

private final java.util.List<E> list
Constructor Detail

VectorFeature

public VectorFeature()
Method Detail

add

public void add(int index,
                E element)
Add an element to the vector at a particular position.

Parameters:
index -
element -

getType

public java.lang.String getType()
Description copied from interface: Descriptor
Get the unique type of this feature.

Specified by:
getType in interface Descriptor
Returns:
a unique string

size

public int size()
The size of the vector.

Returns:
size

get

public E get(int i)
Get an element at a specific index.

Parameters:
i - index
Returns:
element

getName

public java.lang.String getName()
Description copied from interface: Descriptor
Get the pretty name of this feature.

Specified by:
getName in interface Descriptor
Returns:
pretty name