-í
a¸§Ec       sW      d  k  Z   d k T e a  d e f d „  ƒ  YZ  d „  Z ’ d „  Z d  S(   N(   s   *s   UnderHeuristicc      s5    	 d „  Z   d „  Z   d „  Z D d „  Z RS(   Nc    s   	 
 t  i |  | ƒ d  S(   N(   s	   Heuristics   __init__s   selfs   config(   s   selfs   config(    (    s   underPriority_v1.pys   __init__	 s   c    s–     |  i | ƒ  | |  _  |  i | ƒ  | |  _  |  i | | ƒ }  | | j  o  |  i	 | | | ƒ } n  | |  i |  i f Sd  S(   N(   s   selfs   sortPriorityDisplays   srcLists   _srcLists   runLists   _runLists   _growBySteppings   curDurations   durations   _growByAddingProductss   dynPlist(   s   selfs   curDurations   srcLists   runLists   durations   dynPlist(    (    s   underPriority_v1.pys   grow s   c    s8    ! x$! | | j  o" d } # d } $ xß |  i D$ ]Ñ } & | t | t | t	 j o | t o  ( | d j o ) | t
 } n , | t
 | j o - Pn 0 | | j o 1 Pn 4 | t c | t 7<7 | | t 7} : d } ; |  i |  i d ƒ n q8 W> | d j o ? Pn q	 WA | Sd  S(   Ni    iÿÿÿÿi   s   runlist during grow():(   s   curDurations   durations   adjusteds   curPris   selfs   _runLists   pes   CUR_POSs   STEP_POSs   MAX_POSs   PRI_POSs   debug(   s   selfs   curDurations   durations   adjusteds   curPris   pe(    (    s   underPriority_v1.pys   _growByStepping  s(    		 	+	c    s`  D E xLE | | j  o;F d } G g  } H xû|  i DH ]í}	 I | p |  i |	 t |  i	 ƒ o J | i
 |	 ƒ K q8 n M | i |	 t ƒ } N | t j o% O t i i d |	 t ƒ P q8 n R | i ƒ  o% S t i i d |	 t ƒ T q8 n V |	 t o	X |	 t o Z |	 t } nç ] g  } ^ xY t D^ ]N }
 _ |
 t |	 t j o0 ` | i
 |
 t |
 t |
 t |
 t f ƒ n q@Wc | i | | | ƒ } f xS t Df ]H }
 g |
 t |	 t j o* i | |
 t <l | |
 t d |
 t <n q·Wo |	 t } n+ r | i  |	 t |	 t |	 t | | ƒ } t | oÂ u | |	 t j o | |	 t j oj v | |	 t <w | |	 t! <x | |	 t <y | | 7} z |  i	 i
 |	 ƒ { |  i" |  i	 d ƒ | d } n0 ~ t i i d | |	 t |	 t |	 t f ƒ n  t i i d |	 t ƒ q8 W„ | |  _ ‡ | d j o ˆ Pn q	 WŠ | Sd  S(   Ni    s   unable to load product '%s's   product '%s' is not validi   s   runlist during grow():s;   invalid desired duration(%d) max(%d) min(%d) - product '%s's$   zero desired duration - product '%s'(#   s   curDurations   durations   adjusteds
   newSrcLists   selfs   _srcLists   pes   isExclusiveInLists   EXCL_POSs   _runLists   appends   dynPlists
   getProducts
   PRODNM_POSs   prods   Nones	   twccommons   Logs   infos   isValids
   PRODPG_POSs   PROD_POSs   DES_POSs   prodDurations   tmpLists   srcLists   entrys   OPT_POSs   MAX_POSs   MIN_POSs   getDesiredPageDurationss   pagess   getDesiredDurations   CUR_POSs   debug(   s   selfs   curDurations   durations   dynPlists   adjusteds   tmpLists   prodDurations   pagess
   newSrcLists   pes   entrys   prod(    (    s   underPriority_v1.pys   _growByAddingProductsD s^    		 	$


	
 	4
 	!*
%3(   s   __init__s   grows   _growBySteppings   _growByAddingProducts(    (    (    s   underPriority_v1.pys   UnderHeuristic s   $c    s    Ž  t  |  ƒ a d  S(   N(   s   UnderHeuristics   configs
   _heuristic(   s   config(    (    s   underPriority_v1.pys   init s   c      s   ’ “ ” t  Sd  S(   N(   s
   _heuristic(    (    (    s   underPriority_v1.pys	   heuristic’ s   (   s	   twccommons   domestic.Heuristics   Nones
   _heuristics	   Heuristics   UnderHeuristics   inits	   heuristic(   s	   twccommons	   heuristics   UnderHeuristics   init(    (    s   underPriority_v1.pys   ? s
   
	†