insensa.inforeader
Class CMedianValue

java.lang.Object
  extended by insensa.inforeader.AbstractInfoReader
      extended by insensa.inforeader.CMedianValue
All Implemented Interfaces:
InfoReader, java.io.Serializable, java.lang.Runnable

public class CMedianValue
extends AbstractInfoReader

See Also:
Serialized Form

Field Summary
private  int index1
           
private  int index2
           
private  double medianValue
           
private  int numOfValues
           
private static long serialVersionUID
           
 
Fields inherited from class insensa.inforeader.AbstractInfoReader
dependencer, processStatus, read, targetFile, workerStatus
 
Constructor Summary
CMedianValue()
           
 
Method Summary
 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.
 int getIndex1()
           
 int getIndex2()
           
 org.jdom.Element getInfoElement()
           
 java.lang.String getInfoName()
           
 java.util.Vector<java.util.Vector<java.lang.String>> getInfos()
           
 double getMedianValue()
           
private  java.lang.Float getNthCounter(java.util.Map<java.lang.Float,java.lang.Integer> cList, int index)
           
 int getNumOfValues()
           
 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
 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, setTargetFile, setUnread, setVariableList, setWorkerStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

numOfValues

private int numOfValues

medianValue

private double medianValue

index1

private int index1

index2

private int index2
Constructor Detail

CMedianValue

public CMedianValue()
Method Detail

getDependencies

public java.util.List<java.lang.String> getDependencies()
Description copied from class: AbstractInfoReader
Returns a list with names of InfoReaders that have to be executed before this InfoReader can be executed.

Implementations of class AbstractInfoReader should override this method if dependencies are necessary. Example:
List<String> depList = super.getDependencies();
depList.add("countValues");
depList.add("equalBreaksValues");
return depList;

Specified by:
getDependencies in interface InfoReader
Overrides:
getDependencies in class AbstractInfoReader
Returns:
List<String>List with named of InfoReaders(dependencies) for this InfoReader
See Also:
AbstractInfoReader.getDependencies()

getIndex1

public int getIndex1()
Returns:

getIndex2

public int getIndex2()
Returns:

getInfoElement

public org.jdom.Element getInfoElement()
Specified by:
getInfoElement in interface InfoReader
Overrides:
getInfoElement in class AbstractInfoReader
Returns:
See Also:
AbstractInfoReader.getInfoElement()

getInfoName

public java.lang.String getInfoName()
Returns:
The name of this InfoReader
See Also:
InfoReader.getInfoName()

getInfos

public java.util.Vector<java.util.Vector<java.lang.String>> getInfos()
Returns:
Information to Display in Data Table
See Also:
InfoReader.getInfos()

getMedianValue

public double getMedianValue()
Returns:

getNthCounter

private java.lang.Float getNthCounter(java.util.Map<java.lang.Float,java.lang.Integer> cList,
                                      int index)
Parameters:
cList -
index -
Returns:

getNumOfValues

public int getNumOfValues()
Returns:

readInfos

public void readInfos(CRasterFileInformation file)
               throws java.io.FileNotFoundException,
                      java.io.IOException
Description copied from interface: InfoReader
This method will try to receive all informations from dependent InfoReader You can get InfoReader with file.getInfoReader(nameOfInfoReader);

Parameters:
file - File that holds this InfoReader
Throws:
java.io.FileNotFoundException
java.io.IOException
See Also:
InfoReader.readInfos(insensa.CRasterFileInformation)

setInfos

public void setInfos(org.jdom.Element eInfo)
              throws java.io.IOException
Description copied from interface: InfoReader
Restore saved data

Throws:
java.io.IOException
See Also:
InfoReader.setInfos(org.jdom.Element)

toString

public java.lang.String toString()
Description copied from class: AbstractInfoReader
Note
Can be used to determine the human readable text for this InfoReader
.

Overrides:
toString in class AbstractInfoReader
Returns:
a String that returns InfoReader.getInfoName() with the fist letter in upper case
See Also:
AbstractInfoReader.toString()