|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinsensa.inforeader.AbstractInfoReader
insensa.inforeader.CQuantileBreaksValues
public class CQuantileBreaksValues
Creates Quantile Breaks for a raster based dataset There are 9 possible Calculation methods for Breaks based on the article from XXXXX. Default is 8; If a breaks has the same Value as the last Breaks, this breaks shifts right. If this shift is not possible, an Exception will be thrown
| Field Summary | |
|---|---|
java.util.List<InfoReader> |
iReaderList
|
java.util.List<InfoReader> |
iReaderListDep
|
private int |
numOfClasses
|
private java.lang.String |
precisionString
|
static java.lang.String |
QUANTILE_BREAKS_VALUES
|
private java.util.List<ClassificationRange> |
rangeList
|
private static long |
serialVersionUID
|
private int |
type
|
| Fields inherited from class insensa.inforeader.AbstractInfoReader |
|---|
dependencer, processStatus, read, targetFile, workerStatus |
| Constructor Summary | |
|---|---|
CQuantileBreaksValues()
|
|
| Method Summary | |
|---|---|
private java.lang.Float[] |
getBreakValues(CCountValues countValues,
int numOfClasses)
|
java.util.List<java.lang.String> |
getDependencies()
Returns a list with names of InfoReaders that have to be executed before this InfoReader can be executed. |
org.jdom.Element |
getInfoElement()
|
java.lang.String |
getInfoName()
|
java.util.Vector<java.util.Vector<java.lang.String>> |
getInfos()
|
private java.lang.Float |
getNearestData(java.lang.Float data,
java.util.TreeMap<java.lang.Float,java.lang.Integer> dataMap)
|
private java.lang.Float |
getNthData(java.util.Map<java.lang.Float,java.lang.Integer> dataMap,
int index)
|
int |
getNumOfClasses()
|
java.util.List<ClassificationRange> |
getRangeList()
|
int |
getType()
|
void |
readInfos(CRasterFileInformation file)
This method will try to receive all informations from dependent InfoReader You can get InfoReader with file.getInfoReader(nameOfInfoReader); |
void |
setInfos(org.jdom.Element eInfo)
Restore saved data |
void |
setNumOfClasses(int numOfClasses)
|
void |
setTargetFile(CRasterFileInformation targetFile)
determines the target file for this InfoReader. |
void |
setType(int type)
|
void |
setUnread()
Set InfoReader to unread to execute it again |
java.lang.String |
toString()
Note Can be used to determine the human readable text for this InfoReader . |
| Methods inherited from class insensa.inforeader.AbstractInfoReader |
|---|
getErrorMassage, getPrecisionString, getTargetFile, getVariableList, isRead, run, setDependencyChecker, setVariableList, setWorkerStatus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
public static final java.lang.String QUANTILE_BREAKS_VALUES
private java.lang.String precisionString
private int numOfClasses
private int type
private java.util.List<ClassificationRange> rangeList
public java.util.List<InfoReader> iReaderList
public java.util.List<InfoReader> iReaderListDep
| Constructor Detail |
|---|
public CQuantileBreaksValues()
| Method Detail |
|---|
private java.lang.Float[] getBreakValues(CCountValues countValues,
int numOfClasses)
throws java.io.IOException
countValues - numOfClasses -
java.io.IOExceptionpublic java.util.List<java.lang.String> getDependencies()
AbstractInfoReaderAbstractInfoReader should override this
method if dependencies are necessary. Example: List<String> depList = super.getDependencies(); depList.add("countValues");depList.add("equalBreaksValues");return depList;
getDependencies in interface InfoReadergetDependencies in class AbstractInfoReaderAbstractInfoReader.getDependencies()public org.jdom.Element getInfoElement()
getInfoElement in interface InfoReadergetInfoElement in class AbstractInfoReaderAbstractInfoReader.getInfoElement()public java.lang.String getInfoName()
getInfoName in interface InfoReaderInfoReader.getInfoName()public java.util.Vector<java.util.Vector<java.lang.String>> getInfos()
getInfos in interface InfoReaderInfoReader.getInfos()
private java.lang.Float getNearestData(java.lang.Float data,
java.util.TreeMap<java.lang.Float,java.lang.Integer> dataMap)
data - dataMap -
private java.lang.Float getNthData(java.util.Map<java.lang.Float,java.lang.Integer> dataMap,
int index)
dataMap - index -
public int getNumOfClasses()
getNumOfClasses in interface BreaksValuesBreaksValues.getNumOfClasses()public java.util.List<ClassificationRange> getRangeList()
getRangeList in interface BreaksValuesBreaksValues.getRangeList()public int getType()
public void readInfos(CRasterFileInformation file)
throws java.io.FileNotFoundException,
java.io.IOException
InfoReader
readInfos in interface InfoReaderfile - File that holds this InfoReader
java.io.FileNotFoundException
java.io.IOExceptionInfoReader.readInfos(insensa.CRasterFileInformation)
public void setInfos(org.jdom.Element eInfo)
throws java.io.IOException
InfoReader
setInfos in interface InfoReaderjava.io.IOExceptionInfoReader.setInfos(org.jdom.Element)public void setNumOfClasses(int numOfClasses)
setNumOfClasses in interface BreaksValuesBreaksValues.setNumOfClasses(int)public void setTargetFile(CRasterFileInformation targetFile)
InfoReader
setTargetFile in interface InfoReadersetTargetFile in class AbstractInfoReadertargetFile - Target file of type CRasterFileInformation for
this InfoReaderAbstractInfoReader.setTargetFile(insensa.CRasterFileInformation)public void setType(int type)
type - public void setUnread()
InfoReader
setUnread in interface InfoReadersetUnread in class AbstractInfoReaderAbstractInfoReader.setUnread()public java.lang.String toString()
AbstractInfoReader
toString in class AbstractInfoReaderString that returns
InfoReader.getInfoName() with the fist
letter in upper caseAbstractInfoReader.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||