-í
¸B±Oc       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  } ^ t i i d |  i ƒ _ x\ |  i D_ ]N }
 ` |
 t |	 t j o0 a | i
 |
 t |
 t |
 t |
 t f ƒ n q]Wd | i | | | ƒ } g xV |  i Dg ]H }
 h |
 t |	 t j o* j | |
 t <m | |
 t d |
 t <n q×Wp |	 t } n+ s | i |	 t |	 t |	 t | | ƒ } u | oÂ v | |	 t j o | |	 t j oj w | |	 t <x | |	 t  <y | |	 t <z | | 7} { |  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 valids   JSR %si   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   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
   
	‡