Skip to content

Data Model

Raphael Mack edited this page Oct 27, 2017 · 18 revisions

The data model consists of the following items

  • DirayActivities (not the Android UI-Activities, that's why we prefix the name with Diary)
    • name
    • id (_ID)
    • aliases (in case the name is not obvious and the same activity should be found by different names)
    • hierarchical structure (link to parent)
    • required conditions
    • activation conditions (with probability)
    • (?actions like set ringtone volume?)
  • Conditions (to autodetect activities)
    • name
    • id (_ID)
    • type (location, acceleration, WLAN, BT, time, calendar entries, NFC)
    • parameter (e.g. SSID for WLAN)
  • Diray
    • id (_ID)
    • Activity entry (start + stop time)
    • location (if configured)
    • Manual log (text/image linked to an activity and datetime)
  • Templates (planned, but nyi)
    • id (_ID)
    • Activities with Conditions, but they are not active
    • on adding of a new activity the templates shall be searched for a fitting template and the template conditions to be suggested but values to be filled.
Clone this wiki locally