anl.aida.data
Class AbstractDataset

java.lang.Object
  extended by anl.aida.data.AbstractDataset
All Implemented Interfaces:
Dataset

public abstract class AbstractDataset
extends java.lang.Object
implements Dataset

Abstract base class for datasets.


Field Summary
protected  java.lang.String alias
           
protected  java.util.Map<Variable,DataFrame> frames
           
protected  java.util.Map<java.lang.String,Variable> varsByName
           
 
Constructor Summary
AbstractDataset()
           
 
Method Summary
protected  void addVariable(Variable var)
           
 java.lang.String getAlias()
          Gets the alias of this dataset.
 Axes<CoordAxis> getAxes(Variable var)
          Gets the specified variable's dimensional axes.
 DataFrame getDataFrame(Variable var)
          Gets a DataFrame for the specified variable.
 Variable getVariable(java.lang.String name)
          Gets the named variable.
 java.util.List<Variable> getVariables()
          Gets the list of variables in this dataset.
 void setAlias(java.lang.String alias)
          Sets the alias of this Dataset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface anl.aida.data.Dataset
getName
 

Field Detail

alias

protected java.lang.String alias

varsByName

protected java.util.Map<java.lang.String,Variable> varsByName

frames

protected java.util.Map<Variable,DataFrame> frames
Constructor Detail

AbstractDataset

public AbstractDataset()
Method Detail

addVariable

protected void addVariable(Variable var)

getVariable

public Variable getVariable(java.lang.String name)
Gets the named variable.

Specified by:
getVariable in interface Dataset
Parameters:
name - the variables name
Returns:
the named variable.

getVariables

public java.util.List<Variable> getVariables()
Description copied from interface: Dataset
Gets the list of variables in this dataset.

Specified by:
getVariables in interface Dataset
Returns:
the list of variables in this dataset.

getAlias

public java.lang.String getAlias()
Description copied from interface: Dataset
Gets the alias of this dataset.

Specified by:
getAlias in interface Dataset
Returns:
the alias of this dataset

setAlias

public void setAlias(java.lang.String alias)
Description copied from interface: Dataset
Sets the alias of this Dataset.

Specified by:
setAlias in interface Dataset
Parameters:
alias - the new alias

getDataFrame

public DataFrame getDataFrame(Variable var)
Description copied from interface: Dataset
Gets a DataFrame for the specified variable.

Specified by:
getDataFrame in interface Dataset
Parameters:
var - the variable to get the DataFrame for
Returns:
a DataFrame for the specified variable.

getAxes

public Axes<CoordAxis> getAxes(Variable var)
Description copied from interface: Dataset
Gets the specified variable's dimensional axes.

Specified by:
getAxes in interface Dataset
Parameters:
var - the variable
Returns:
the specified variable's dimensional axes.