ch.wsl.fireindices.app

SimpleApp4CSV

class SimpleApp4CSV extends AnyRef

Simple class (without user interface) which contains the methods to read data from a csv file, check it, calculate all possibles indices (calculable variable) and save a file with the results and a file with the logs

This can easily be used in a UI application to include the data processing logic.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SimpleApp4CSV
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SimpleApp4CSV()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. var DsDate: DataSerie

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def calculableReport: String

    return a String with a list of calculables variables

    return a String with a list of calculables variables

    returns

    String

  9. def calculate(settings: Parameters, report: StringBuffer = new StringBuffer, vars: Seq[Variable with Calculable] = null): File

    calculate all the possible variables & indices from inputs choice

    calculate all the possible variables & indices from inputs choice

    returns

    report of calculation (for logs)

  10. def calculateLambda(lambda: String): Double

    calculate the output of a MaxEnt model based on a lambda file string

    calculate the output of a MaxEnt model based on a lambda file string

    lambda

    > string with the content of a lambda file

    returns

    MaxEnt model output

  11. def calculatedReport: String

    return a string with the already calculated variables

    return a string with the already calculated variables

    returns

    String

  12. def check(report: StringBuffer = new StringBuffer): Boolean

    perform a check on the input variables and return a report

    perform a check on the input variables and return a report

    returns

    report check

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def complete(settings: Parameters, report: StringBuffer = new StringBuffer, vars: Seq[Serie with Calculable] = null, printOnlyLast: Boolean = true): File

    complete all the possible variables & indices from inputs choice

    complete all the possible variables & indices from inputs choice

    returns

    report of calculation (for logs)

  15. def completedReport: String

    return a string with the variables where only the last value has to be calculated

    return a string with the variables where only the last value has to be calculated

    returns

    String

  16. def dangerScale[T](frequencyThresholds: List[Double], areaThresholds: List[Double], daysThresholds: List[Double], values: Map[T, Double], fires: Map[T, (Int, Double)]): DangerScale[T]

    calculate the output of a MaxEnt model based on a lambda file string

    calculate the output of a MaxEnt model based on a lambda file string

    returns

    MaxEnt model output

  17. var dateColumnExists: Boolean

  18. var dc: DataCollection

  19. var dcAliens: LinkedHashMap[String, StringDataSerie]

  20. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. var headers: MutableList[String]

  26. def headersReport(colNumber: Int): String

    return a report with the headers recognized for the calculation

    return a report with the headers recognized for the calculation

    colNumber

    number of headers contained

    returns

    the headers report string

  27. var inputFile: File

  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  32. var nullDateList: List[Double]

  33. var otherHeaders: MutableList[String]

  34. def printLog(log: String): Unit

    print log file of the reading, check, calculation routines

    print log file of the reading, check, calculation routines

    log

    a String containing all logs

    returns

    Unit

  35. def readData(inputFile: File, settings: Parameters, dateSTART: Option[String] = Some("10000101"), dateEND: Option[String] = Some("30000101"), dtformat: String = "yyyyMMdd"): String

    read all the recognized data from the input file

    read all the recognized data from the input file

    inputFile

    the input file

    settings

    Parameters > the parameters (to check if all data are needed)

    dateSTART

    a string with first date of needed data

    dateEND

    a string with last date of needed data

    dtformat

    String for SimpleDateFormat to parse the dates

    returns

    a string with a report of the reading routine (for logs)

  36. def readHeaders(inputFile: File, report: StringBuffer = new StringBuffer): Boolean

    Reads the header of a file and returns -true if date column is found and all other column recognised -false if not all column have been recognised

    Reads the header of a file and returns -true if date column is found and all other column recognised -false if not all column have been recognised

    inputFile

    the input file

    returns

    the headers String

  37. def replace(settings: Parameters, nr2replace: Int, varsToSkeep: Seq[Serie] = null, report: StringBuffer = new StringBuffer, printOnlyLast: Boolean = true): File

    replace the already calculated values with freshly calculated (with complete) (to be used for few cases, since it is slow beacuse it internally uses complete)

    replace the already calculated values with freshly calculated (with complete) (to be used for few cases, since it is slow beacuse it internally uses complete)

    returns

    report of calculation (for logs)

  38. def replaceNulls(vars: Seq[Serie]): Unit

    replace null values with zero for the given series

    replace null values with zero for the given series

    vars

    > series to replace

  39. var stillToCalculate: Seq[Variable]

  40. var stillToCalculatePars: Seq[Variable]

  41. var stillToComplete: Seq[Variable]

  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  43. def toString(): String

    Definition Classes
    AnyRef → Any
  44. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped