Ńň
Ě ĆWc           @   sE   d  d k  l Z d  d k Z d d d     YZ d   Z d   Z d S(   i˙˙˙˙(   t
   ParametresNt   Agent_EVc           B   s#   e  Z d    Z d   Z d   Z RS(   c         C   s1   | |  _  | |  _ | |  _ | |  _ d |  _ d  S(   Ni    (   t   casht   prct_invest_emploit   salairet   prixt   biens(   t   selfR   R   R   R   (    (    s(   /home/kaufmanl/SIMU/Migrants1/agentev.pyt   __init__   s
    				c         C   s7   d } | d j o  | i  | } |  i | 7_ n | S(   Ni    (   t   aR   (   R   t
   parametrest   total_heurest
   production(    (    s(   /home/kaufmanl/SIMU/Migrants1/agentev.pyt   convertir_heures_biens   s
    c         C   s:   | d j o# | | } | | | | i  } n d  } | S(   Ni    (   t   gammat   None(   R   t	   beneficesR   t   prix_precedentR
   R   t   prix_propose(    (    s(   /home/kaufmanl/SIMU/Migrants1/agentev.pyt   proposer_prix   s
    
(   t   __name__t
   __module__R   R   R   (    (    (    s(   /home/kaufmanl/SIMU/Migrants1/agentev.pyR      s   		c         C   sF   g  } x9 t  d t |  i   D] } t |   } | i |  q W| S(   Ni    (   t   ranget   intt   nb_agents_EVR   t   append(   R
   t   liste_agents_EVR	   t   agent_EV(    (    s(   /home/kaufmanl/SIMU/Migrants1/agentev.pyt   obtenir_liste_agents_EV$   s     c         C   s+   g  } x |  D] } | i  | i  q W| S(   N(   R   R   (   R   t   liste_cash_agents_EVt   j(    (    s(   /home/kaufmanl/SIMU/Migrants1/agentev.pyt   obtenir_liste_cash_agents_EV,   s
     (    (   R
   R    t   randomR   R   R   (    (    (    s(   /home/kaufmanl/SIMU/Migrants1/agentev.pyt   <module>   s   	