def configure(self, currentsequence): logger.debug(u"{} Configure".format(self.joueur)) self._currentsequence = currentsequence self.periods.clear() yield (self.remote.callRemote("configure", get_module_attributes(pms), self._currentsequence)) self.joueur.info(u"Ok")
def configure(self): logger.debug(u"{} Configure".format(self.joueur)) self.GA_dynamic_type = pms.DYNAMIC_TYPE self.GA_treatment = pms.TREATMENT self.GA_trial = pms.PARTIE_ESSAI yield (self.remote.callRemote("configure", get_module_attributes(pms), self)) self.joueur.info(u"Ok")
def configure(self): logger.debug(u"{} Configure".format(self.joueur)) self.DYNCPR_dynamic_type = pms.DYNAMIC_TYPE self.DYNCPR_treatment = pms.TREATMENT self.DYNCPR_trial = pms.PARTIE_ESSAI # we send self because some methods are called remotely # we send also the group composition yield (self.remote.callRemote("configure", get_module_attributes(pms), self, self.joueur.group.players_uid)) self.joueur.info(u"Ok")
def configure(self): logger.debug(u"{} Configure".format(self.joueur)) self.CO_dynamic_type = pms.DYNAMIC_TYPE self.CO_treatment = pms.TREATMENT self.CO_trial = pms.PARTIE_ESSAI self.current_resource = pms.RESOURCE_INITIAL_STOCK # we send self because some methods are called remotely # we send also the group composition yield (self.remote.callRemote("configure", get_module_attributes(pms), self)) self.joueur.info(u"Ok")
def configure(self): """ permet de configure la partie (traitement ...) :param args: :return: """ self._histo_vars = [] self._histo = [] logger.debug(u"{} Configure".format(self.joueur)) # ici mettre en place la configuration yield (self.remote.callRemote("configure", get_module_attributes(pms)))
def configure(self, current_sequence): """ On envoie aussi cet instance car le remote a besoin d'envoyer des offres et d'informer des offres qu'il accepte :return: """ logger.debug(u"{} Configure".format(self.joueur)) self._current_sequence = current_sequence yield (self.remote.callRemote("configure", get_module_attributes(pms), self)) self.joueur.info(u"Ok")
def _configure(self): screen_conf = DConfigure(self.le2mserv.gestionnaire_graphique.screen) if screen_conf.exec_(): pms_list = [None, "Dynamic CPR parameters"] for k, v in get_module_attributes(pms).items(): if k in ["DYNAMIC_TYPE", "NOMBRE_PERIODES", "PARTIE_ESSAI"]: pms_list.append("{}: {}".format(k, v)) continuous_time_duration = timedelta_to_time( pms.CONTINUOUS_TIME_DURATION) pms_list.append("CONTINUOUS_TIME_DURATION: {}".format( continuous_time_duration.strftime("%H:%M:%S"))) self.le2mserv.gestionnaire_graphique.infoserv(pms_list)
def configure(self, tcserver, currentsequence): """ Allow to make changes in the part parameters :param tcserver: :param currentsequence: :return: """ logger.debug(u"{} Configure".format(self.joueur)) self._tcserver = tcserver self._currentsequence = currentsequence self.sequences[self._currentsequence] = {} yield (self.remote.callRemote("configure", self, get_module_attributes(pms))) self.joueur.info(u"Ok")
def configure(self): logger.debug(u"{} Configure".format(self.joueur)) self.AD_treatment = pms.TREATMENTS[pms.TREATMENT]["code"] self.AD_trial = pms.PARTIE_ESSAI # set the initial income depending on the position in the group self.AD_endowment_pile, self.AD_endowment_face = \ pms.TREATMENTS[pms.TREATMENT]["endowment"][ self.joueur.group.get_place_of_player(self)] self.AD_aversion = pms.TREATMENTS[pms.TREATMENT]["aversion"][ self.joueur.group.get_place_of_player(self)] self.AD_income = yield ( self.remote.callRemote("configure", get_module_attributes(pms), self, (self.AD_endowment_pile, self.AD_endowment_face), self.AD_aversion)) self.joueur.info(u"Ok")
def configure(self, *args): logger.debug(u"{} Configure".format(self.joueur)) yield (self.remote.callRemote("configure", get_module_attributes(pms)))
def configure(self): logger.debug(u"{} Configure".format(self.joueur)) yield (self.remote.callRemote("configure", get_module_attributes(pms), self)) self.joueur.info(u"Ok")
def configure(self, currentsequence): logger.debug(u"{} Configure".format(self.joueur)) self._currentsequence = currentsequence yield (self.remote.callRemote("configure", get_module_attributes(pms), self._currentsequence)) self.joueur.info(u"Ok")