sonification.dataimport.visbards_resourcetoolkit.repository.resource
Class ColumnBase

java.lang.Object
  extended by sonification.dataimport.visbards_resourcetoolkit.repository.resource.ColumnBase
All Implemented Interfaces:
Column
Direct Known Subclasses:
ColumnASCII, ColumnCdf, ColumnCombined, ColumnCombinedTime

public class ColumnBase
extends java.lang.Object
implements Column

Describes a column which holds data in a resource.


Field Summary
protected  boolean fAvaliable
           
protected  boolean fDouble
           
protected  boolean fScalar
           
protected  org.gjt.fredgc.unit.Unit fUnit
           
 
Constructor Summary
ColumnBase(java.lang.String name, boolean scalar, boolean dbl, org.gjt.fredgc.unit.Unit unit)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Make sure that the equals method is consistant with the hascode method.
 java.lang.String getName()
          Returns the name of this column.
 org.gjt.fredgc.unit.Unit getUnit()
          Returns the units of this column
 int hashCode()
          Make sure that this method is consistant with the equals method.
 boolean isDouble()
          Returns true if this column stores doubles, false if floats
 boolean isScalar()
          Returns true if this column stores scalars
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

fScalar

protected boolean fScalar

fDouble

protected boolean fDouble

fAvaliable

protected boolean fAvaliable

fUnit

protected org.gjt.fredgc.unit.Unit fUnit
Constructor Detail

ColumnBase

public ColumnBase(java.lang.String name,
                  boolean scalar,
                  boolean dbl,
                  org.gjt.fredgc.unit.Unit unit)
Method Detail

isScalar

public boolean isScalar()
Returns true if this column stores scalars

Specified by:
isScalar in interface Column

isDouble

public boolean isDouble()
Returns true if this column stores doubles, false if floats

Specified by:
isDouble in interface Column

getName

public java.lang.String getName()
Returns the name of this column. (Resource specific)

Specified by:
getName in interface Column

getUnit

public org.gjt.fredgc.unit.Unit getUnit()
Returns the units of this column

Specified by:
getUnit in interface Column

equals

public boolean equals(java.lang.Object obj)
Make sure that the equals method is consistant with the hascode method.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Make sure that this method is consistant with the equals method. This method is needed for objects of this type to serve as keys in a hashmap.

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object