insensa.connections
Class CThresholdVolatility

java.lang.Object
  extended by insensa.connections.AbstractConnection
      extended by insensa.connections.CThresholdVolatility
All Implemented Interfaces:
ConnectionFileChanger, FileObserver, java.lang.Runnable

public class CThresholdVolatility
extends AbstractConnection


Field Summary
static java.lang.String NAME
           
private  float[] threshold1List
           
private  int threshold1Perc
           
private  float[] threshold2List
           
private  int threshold2Perc
           
 
Fields inherited from class insensa.connections.AbstractConnection
E_OUTPUT_NAME, E_OUTPUT_PATH, fileNameList, id, ID, OUTPUT_NAME, OUTPUT_SET, outputFile, outputFileName, outputFileSet, rasterFileList, separator, used, USED, workerStatus, XML_ELEMENT_FILE
 
Constructor Summary
CThresholdVolatility()
           
 
Method Summary
 org.jdom.Element getConnectionElement()
          Build a xml Element with the attributes id used fileset name output file name source files full name (absolute) output name output path (relative) .
 java.lang.String getConnectionName()
           
 AttributeTable getData()
           
 java.util.List<java.lang.String> getInfoDependencies()
           
 int getThreshold1Perc()
           
 int getThreshold2Perc()
           
 void setConnectionElement(org.jdom.Element eCon)
          WARNING:
In case that this Connection is unused, you have to set the sourceFileList before invoking this function

.
 void setThreshold1Perc(int threshold1Perc)
           
 void setThreshold2Perc(int threshold2Perc)
           
protected  void solveDependencies()
           
 void write()
           
private  void writeInFile(CRasterFileInformation file)
           
 
Methods inherited from class insensa.connections.AbstractConnection
addAttributeValue, addElement, check, getChildElement, getFileNameList, getId, getOutputFile, getOutputFileName, getOutputFileSet, getRasterFileList, getSouceFileRelativePaths, getSourceFileList, getVariableList, isUsed, notifyDelete, run, setId, setOutputFile, setOutputFileName, setOutputFileSet, setSourceFileList, setUsed, setVariableList, setWorkerStatus, solveDependencies, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

threshold1Perc

private int threshold1Perc

threshold2Perc

private int threshold2Perc

threshold1List

private float[] threshold1List

threshold2List

private float[] threshold2List

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

CThresholdVolatility

public CThresholdVolatility()
Method Detail

getConnectionElement

public org.jdom.Element getConnectionElement()
Description copied from class: AbstractConnection
Build a xml Element with the attributes

getConnectionName

public java.lang.String getConnectionName()
Returns:
See Also:
ConnectionFileChanger.getConnectionName()

getData

public AttributeTable getData()
Specified by:
getData in interface ConnectionFileChanger
Overrides:
getData in class AbstractConnection
Returns:
See Also:
AbstractConnection.getData()

getInfoDependencies

public java.util.List<java.lang.String> getInfoDependencies()
Specified by:
getInfoDependencies in interface ConnectionFileChanger
Overrides:
getInfoDependencies in class AbstractConnection
Returns:
See Also:
AbstractConnection.getInfoDependencies()

getThreshold1Perc

public int getThreshold1Perc()
Returns:

getThreshold2Perc

public int getThreshold2Perc()
Returns:

setConnectionElement

public void setConnectionElement(org.jdom.Element eCon)
                          throws java.io.IOException
Description copied from class: AbstractConnection
WARNING:
In case that this Connection is unused, you have to set the sourceFileList before invoking this function

.

Specified by:
setConnectionElement in interface ConnectionFileChanger
Overrides:
setConnectionElement in class AbstractConnection
Throws:
java.io.IOException
See Also:
AbstractConnection.setConnectionElement(org.jdom.Element)

setThreshold1Perc

public void setThreshold1Perc(int threshold1Perc)
Parameters:
threshold1Perc -

setThreshold2Perc

public void setThreshold2Perc(int threshold2Perc)
Parameters:
threshold2Perc -

solveDependencies

protected void solveDependencies()
                          throws java.io.IOException
Overrides:
solveDependencies in class AbstractConnection
Throws:
java.io.IOException
See Also:
AbstractConnection.solveDependencies()

write

public void write()
           throws java.io.IOException,
                  org.jdom.JDOMException,
                  CRasterFileException
Throws:
java.io.IOException
org.jdom.JDOMException
CRasterFileException
See Also:
ConnectionFileChanger.write()

writeInFile

private void writeInFile(CRasterFileInformation file)
                  throws java.io.IOException,
                         CRasterFileException
Parameters:
file -
Throws:
java.io.IOException
CRasterFileException