Package

org.tresamigos.smv

panel

Permalink

package panel

Visibility
  1. Public
  2. All

Type Members

  1. case class Day(year: Int, month: Int, day: Int) extends PartialTime with Product with Serializable

    Permalink

    Day PartialTime - smvTime form: D20120123 - timeType: "day" - timeIndex: Number of days from 19700101 - timeLabel form: 2012-01-23

  2. case class Month(year: Int, month: Int) extends PartialTime with Product with Serializable

    Permalink

    Month PartialTime - smvTime form: M201201 - timeType: "month" - timeIndex: Number of months from 19700101 - timeLabel form: 2012-01

  3. abstract class PartialTime extends Ordered[PartialTime] with Serializable

    Permalink

    PartialTime is a "gross" time concept.

    PartialTime is a "gross" time concept. It's closer to a "bussiness" concept than scientific or engineering concept. We currently have Quarter, Month, and Day

    A PartialTime represented in DF as a String column, and typically named as smvTime with values such as "Q201301", "M201312", "D20130423".

    A PartialTime can also represented as timeType + timeIndex, e.g. "M201512" => (timeType = "month", timeIndex = 551) Where timeIndex is an integere which count from 1970-01-01.

    A PartialTime also has a timeLabel which is a human readable string

  4. case class Quarter(year: Int, quarter: Int) extends PartialTime with Product with Serializable

    Permalink

    Quarter PartialTime - smvTime form: Q201201 - timeType: "quarter" - timeIndex: Number of quarters from 19700101 - timeLabel form: 2012-Q1

  5. case class TimePanel(start: PartialTime, end: PartialTime) extends Serializable with Product

    Permalink

    TimePanel is a consecutive range of PartialTimes It has a "start" PartialTime and "end" PartialTime, both are inclusive.

    TimePanel is a consecutive range of PartialTimes It has a "start" PartialTime and "end" PartialTime, both are inclusive. "start" and "end" have to have the same timeType

  6. class Week extends PartialTime

    Permalink

    Week PartialTime

    Week PartialTime

    User can specify custom "startOn" day for a week, for example

    val w = new Week(2012, 2, 1, "Sunday")

    As a PartialTime, Week has the following attributes

    For default start day as Monday: - smvTime form: W20120227 - timeType: "week" - timeIndex: week number from 1970-01-01, with week-0 always be the week 1970-1-1 is in - timeLabel form: "Week of 2012-02-27"

    For custom start day:a Week(2012, 3, 4, "Sunday") - smvTime form: W(7)20120304 - "(7)" here denotes the start day is a Sunday - timeType: "week_start_on_Sunday"

Value Members

  1. object PartialTime extends Serializable

    Permalink
  2. object Week extends Serializable

    Permalink

Ungrouped