-í
V¸§Ec       s­      d  k  Z   d Z  d Z  d Z  d Z  d Z  d Z 	 d Z 
 d Z  d	 Z	  d
 Z
  d Z  d Z  d „  Z  d „  Z  d f  d „  ƒ  YZ d  S(   Ni    i   i   i   i   i   i   i   i   i	   i
   i   c    s"     t  i |  t | t ƒ Sd  S(   N(   s	   twccommons   compares   lst1s   DISP_POSs   lst2(   s   lst1s   lst2(    (    s   Heuristic.pys   displayOrder s   c    sT     t  i |  t | t ƒ }  | o  | Sn  t  i |  t | t ƒ Sd  S(   N(   s	   twccommons   compares   lst1s   PRI_POSs   lst2s   results   DISP_POS(   s   lst1s   lst2s   result(    (    s   Heuristic.pys   priorityDisplayOrder s   
s	   Heuristicc      st     d „  Z  $ d „  Z + d d „ Z 3 d „  Z 7 d „  Z ; d „  Z ? d „  Z C d	 „  Z G d
 „  Z RS(   Nc    s+     | |  _   g  |  _ ! g  |  _ d  S(   N(   s   configs   selfs   _configs   _srcLists   _runList(   s   selfs   config(    (    s   Heuristic.pys   __init__ s   c    sk   $ & t  i i d | t | t | t | t | t | t	 | t
 | t | t | t | t f ƒ d  S(   Ns,   %3d %3d %25s %4d %3d %3d %3d %3d %3d %3d %3d(   s	   twccommons   Logs   debugs   pes   DISP_POSs   PRI_POSs
   PRODNM_POSs
   PRODPG_POSs   CUR_POSs   DES_POSs   OPT_POSs   MAX_POSs   MIN_POSs   STEP_POSs   EXCL_POS(   s   selfs   pe(    (    s   Heuristic.pys   debugProdEntry$ s   s    c    sh   + , t  | ƒ o - t i i | ƒ n . t i i d ƒ / x! | D/ ] } 0 |  i | ƒ qG Wd  S(   NsB   DSP PRI          Product          Page CUR DES OPT MAX MIN STP EXC(	   s   lens   msgs	   twccommons   Logs   debugs   lists   pes   selfs   debugProdEntry(   s   selfs   lists   msgs   pe(    (    s   Heuristic.pys   debug+ s   
 	c    s   3 4 t  d ƒ ‚ d  S(   Ns   load heuristic not implemented(   s	   Exception(   s   selfs   srcLists   durations   dynamicPlaylist(    (    s   Heuristic.pys   load3 s   c    s   7 8 t  d ƒ ‚ d  S(   Ns   over heuristic not implemented(   s	   Exception(   s   selfs   curDurations   srcLists   runLists   durations   dynamicPlaylist(    (    s   Heuristic.pys   reduce7 s   c    s   ; < t  d ƒ ‚ d  S(   Ns   under heuristic not implemented(   s	   Exception(   s   selfs   curDurations   srcLists   runLists   durations   dynamicPlaylist(    (    s   Heuristic.pys   grow; s   c    s   ? @ | i t ƒ d  S(   N(   s   lists   sorts   displayOrder(   s   selfs   list(    (    s   Heuristic.pys   sortDisplay? s   c    s   C D | i t ƒ d  S(   N(   s   lists   sorts   priorityDisplayOrder(   s   selfs   list(    (    s   Heuristic.pys   sortPriorityDisplayC s   c    sa   G H d } I | o@ J x6 | DJ ]+ } K | t | j o L d } M Pn q  Wn O | Sd  S(   Ni    i   (   s   results	   exclusives   lists   pes   EXCL_POS(   s   selfs	   exclusives   lists   results   pe(    (    s   Heuristic.pys   isExclusiveInListG s   	

 		(	   s   __init__s   debugProdEntrys   debugs   loads   reduces   grows   sortDisplays   sortPriorityDisplays   isExclusiveInList(    (    (    s   Heuristic.pys	   Heuristic s   (   s	   twccommons   DISP_POSs   PRI_POSs
   PRODNM_POSs
   PRODPG_POSs   PROD_POSs   CUR_POSs   DES_POSs   OPT_POSs   MAX_POSs   MIN_POSs   STEP_POSs   EXCL_POSs   displayOrders   priorityDisplayOrders	   Heuristic(   s
   PRODPG_POSs   STEP_POSs   PRI_POSs   DISP_POSs   MIN_POSs	   Heuristics   CUR_POSs   EXCL_POSs   priorityDisplayOrders	   twccommons
   PRODNM_POSs   MAX_POSs   DES_POSs   PROD_POSs   displayOrders   OPT_POS(    (    s   Heuristic.pys   ? s   												