insensa.connections
Class CDivision
java.lang.Object
insensa.connections.AbstractConnection
insensa.connections.CDivision
- All Implemented Interfaces:
- ConnectionFileChanger, FileObserver, java.lang.Runnable
public class CDivision
- extends AbstractConnection
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 |
Methods inherited from class insensa.connections.AbstractConnection |
addAttributeValue, addElement, check, getChildElement, getFileNameList, getId, getInfoDependencies, getOutputFile, getOutputFileName, getOutputFileSet, getRasterFileList, getSouceFileRelativePaths, getSourceFileList, getVariableList, isUsed, notifyDelete, run, setId, setOutputFile, setOutputFileName, setOutputFileSet, setSourceFileList, setUsed, setVariableList, setWorkerStatus, solveDependencies, solveDependencies, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
dividend
private CRasterFileInformation dividend
divisor
private CRasterFileInformation divisor
dummyValue
private float dummyValue
DIVISION
private static final java.lang.String DIVISION
- See Also:
- Constant Field Values
SET_NODATA
public static final int SET_NODATA
- See Also:
- Constant Field Values
SET_DUMMY
public static final int SET_DUMMY
- See Also:
- Constant Field Values
divByZeroOption
private int divByZeroOption
CDivision
public CDivision()
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()
getDivByZeroOption
public int getDivByZeroOption()
- Returns:
getDivisor
public CRasterFileInformation getDivisor()
- Returns:
getDummyValue
public float getDummyValue()
- 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)
setDivByZeroOption
public void setDivByZeroOption(int divByZeroOption)
- Parameters:
divByZeroOption
-
setDividend
public void setDividend(CRasterFileInformation dividend)
- Parameters:
dividend
-
setDivisor
public void setDivisor(CRasterFileInformation divisor)
- Parameters:
divisor
-
setDummyValue
public void setDummyValue(float dummyValue)
- Parameters:
dummyValue
-
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