ch.wsl.fireindices.metadata

StringDataSerie

class StringDataSerie extends AnyRef

Implementation of a class holding data series (time series), with a definition (variable). Time is defined by the start date (in millisec.) and the interval (timestep also in millisec.). It ahs several methods to get the date serie, slice the data and to check the data for missing values or outliers (according to the variable definition).

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

Instance Constructors

  1. new StringDataSerie(name: String, dates: List[Long], values: List[String])

    DataSerie Constructor

    DataSerie Constructor

    name

    Serie[T] > Name of the variable

    dates

    List[Long] > list of dates range of variable data

    values

    list of variable values

    returns

    DataSerie

  2. new StringDataSerie(name: String, start: Long, interval: Long, values: List[String])

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. val NotAvailableInput: String

  7. def apply(index: Int): String

    Returns a specific data from the DataSerie at given index

    Returns a specific data from the DataSerie at given index

    index

    the given index

    returns

    T

  8. def apply(indices: List[Int]): List[String]

    Returns a part of the DataSerie of given indices

    Returns a part of the DataSerie of given indices

    indices

    List[Int] > given indices

    returns

    List[T] >

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  15. def getDate(index: Int): Long

    Returns the date (in millisec) of a specific data index

    Returns the date (in millisec) of a specific data index

    index

    the given index

    returns

    the date in millisec

  16. def getDates: List[Long]

    Gets the list of dates of the DataSerie

    Gets the list of dates of the DataSerie

    returns

    List[Long] > list of dates (millisec)

  17. def getIndex(date: Long): Int

    Gets the index at given date

    Gets the index at given date

    date

    date in millisec

    returns

    the index

  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. def insertOneRow(v: String): Unit

    Inserts a new value at the beginning of the DataSerie

    Inserts a new value at the beginning of the DataSerie

    v

    T > the new value to insert

    returns

    List[T]

  20. var interval: Long

  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. def last(nr: Int = 1): List[String]

    Returns the last data from the DataSerie

    Returns the last data from the DataSerie

    nr

    number of data to be returned

    returns

    List[T]

  23. def lastDs(nr: Int = 1): StringDataSerie

    Returns a new DataSerie with only the indicated last values

    Returns a new DataSerie with only the indicated last values

    nr

    number of data to be returned

    returns

    List[T]

  24. def length: Int

    number of values in the DataSerie

    number of values in the DataSerie

    returns

    Int

  25. val name: String

  26. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  29. def prev: String

    Returns the before-last data from the DataSerie

    Returns the before-last data from the DataSerie

    returns

    T

  30. def readField(results: ResultSet, field: String): Unit

    Reads and inserts a value of a specific field in the DataSerie

    Reads and inserts a value of a specific field in the DataSerie

    results

    ResultSet > the ResultSet containing all fields and value

    field

    the header of the fiel to read

    returns

    List[T]

  31. def slice(dateStart: Long, dateEnd: Long): List[String]

    Slices a portion of the DataSerie

    Slices a portion of the DataSerie

    dateStart

    date from where to slice

    dateEnd

    date until where to slice

    returns

    portion of the DataSerie

  32. def slice(from: Int, until: Int): List[String]

    Slices a portion of the DataSerie

    Slices a portion of the DataSerie

    from

    index from where to slice (0-based)

    until

    index until where to slice (not included)

    returns

    portion of the DataSerie

  33. def sliceData(dateFormat: String, condition: String): List[String]

    Slices a DataSerie on a given Date

    Slices a DataSerie on a given Date

    dateFormat

    format of the date

    condition

    the given date from where to slice

    returns

    List[T]

  34. var start: Long

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

    Definition Classes
    AnyRef
  36. def toString(): String

    Definition Classes
    AnyRef → Any
  37. def uniques[A](in: List[A]): List[A]

    Returns a list as consecutive unique values (identical consecutive values are reduced to 1 value).

    Returns a list as consecutive unique values (identical consecutive values are reduced to 1 value).

    in

    input list

    returns

    output list

  38. var values: List[String]

  39. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped