     weak var dataCtrl:PVRDataController! /* Link to Data Controller
                                           * NOTE: Will Terminate executable if Missing
                                          */
+    var setting:[String:NSCoding] /*Link to settings in App Delegate*/
     var dataViewCtrl:PVRDataController /*Link to Data View Data controller */
     var dataView:PVRDataView /*Link to Data View */
 
+    //Status
+    var sch_date:NSDate /*Date Schedule was generated*/
+    var sch_affinity:Bool /*Whether Duration Afinity is followed */
+
     //Data
-    var scheduleDuration:[PVRDuration] /* Schedulable Duration sorted by date until Last Task Date*/
-
+    var schedule:[PVRDuration:[PVRTask]] /* Generated Schedule */
+
+
+    //Data
     //Methods
     /*
      * init(datactrl:PVRDataController)

        }
    }

}


import UIKit

/*
 * public enum PVRSchedulerError:Error
 * - Describles the errors that may occur when using PVRScheduler
*/
public enum PVRSchedulerError:Error
{
    case DurationOverflow /* Schedulable duration is insufficent to schedule all tasks*/
}


