edu.jhu.ece.iacl.jist.pipeline.parameter
Interface ObjectCollection<T>

Type Parameters:
T - Data type
All Known Implementing Classes:
ParamCollection, ParamFileCollection, ParamNumberCollection, ParamSurfaceCollection, ParamSurfaceLocationCollection, ParamVolumeCollection, ParamWeightedVolumeCollection

public interface ObjectCollection<T>

A data collection is a parameter that contains a collection of parameters.

Author:
Blake Lucas

Method Summary
 void add(T val)
          Add item to collection.
 void clear()
          Remove all values from collection.
 T getValue(int i)
          Get value at specified index.
 void set(int i, T val)
          Set item value in list
 void setCollection(int index, ObjectCollection<T> src)
          Set item value in list to the first element of the colleciton.
 int size()
          Returns size of collection.
 

Method Detail

set

void set(int i,
         T val)
Set item value in list

Parameters:
i - the index
val - the val

setCollection

void setCollection(int index,
                   ObjectCollection<T> src)
Set item value in list to the first element of the colleciton. Safely adds all remaining elements

Parameters:
i - the index
val - the val

add

void add(T val)
Add item to collection.

Parameters:
val - the val

clear

void clear()
Remove all values from collection.


getValue

T getValue(int i)
Get value at specified index.

Parameters:
i - index
Returns:
value

size

int size()
Returns size of collection.

Returns:
size