sonification.dataimport.visbards_resourcetoolkit.repository.resource
Class DefaultReadConfiguration

java.lang.Object
  extended by sonification.dataimport.visbards_resourcetoolkit.repository.resource.DefaultReadConfiguration
All Implemented Interfaces:
ReadConfiguration

public class DefaultReadConfiguration
extends java.lang.Object
implements ReadConfiguration

This class contains information about how to populate a particular repository.


Constructor Summary
DefaultReadConfiguration(int d, Range timerange)
           
 
Method Summary
 void addListener(ReadConfigurationListener listener)
          Registers a listener.
 java.lang.Object clone()
          A new copy of this resource configuration
 boolean equals(java.lang.Object obj)
           
 java.util.ArrayList getColumns()
          Returns columsn to be loaded
 int getDecimation()
          Returns the decimation index.
 Range getTimeRange()
          Returns the time range to populate from file.
 boolean hasColumn(Column col)
          Returns true if this column is present in the config
 void removeListener(ReadConfigurationListener listener)
          Unregisters a listener.
 void setColumn(Column col, boolean load)
          Changes the wheather or not a particular column is present in the config
 void setDecimation(int d)
          Sets the modality of points to read
 void setTimeRange(Range rng)
          Change the time range to read from this resource
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultReadConfiguration

public DefaultReadConfiguration(int d,
                                Range timerange)
Method Detail

getTimeRange

public Range getTimeRange()
Returns the time range to populate from file.

Specified by:
getTimeRange in interface ReadConfiguration

setTimeRange

public void setTimeRange(Range rng)
Description copied from interface: ReadConfiguration
Change the time range to read from this resource

Specified by:
setTimeRange in interface ReadConfiguration

getDecimation

public int getDecimation()
Returns the decimation index.

Specified by:
getDecimation in interface ReadConfiguration

setDecimation

public void setDecimation(int d)
Description copied from interface: ReadConfiguration
Sets the modality of points to read

Specified by:
setDecimation in interface ReadConfiguration

hasColumn

public boolean hasColumn(Column col)
Description copied from interface: ReadConfiguration
Returns true if this column is present in the config

Specified by:
hasColumn in interface ReadConfiguration

setColumn

public void setColumn(Column col,
                      boolean load)
Description copied from interface: ReadConfiguration
Changes the wheather or not a particular column is present in the config

Specified by:
setColumn in interface ReadConfiguration

getColumns

public java.util.ArrayList getColumns()
Returns columsn to be loaded

Specified by:
getColumns in interface ReadConfiguration

clone

public java.lang.Object clone()
Description copied from interface: ReadConfiguration
A new copy of this resource configuration

Specified by:
clone in interface ReadConfiguration
Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

addListener

public void addListener(ReadConfigurationListener listener)
Registers a listener.

Specified by:
addListener in interface ReadConfiguration

removeListener

public void removeListener(ReadConfigurationListener listener)
Unregisters a listener.

Specified by:
removeListener in interface ReadConfiguration