parameters: (self, decision_list)
docstring: Solves line according to decision list
docstring_summary: Solves line according to decision list
docstring_tokens: Solves line according to decision list
function: def solve(self, decision_list):
      """Solves line according to decision list
      """
      simulation_tool = self.getPortalObject().portal_simulation
      solveMovement = simulation_tool.solveMovement
      # accept + split
      for decision in [q for q in decision_list if q.decision != 'adopt']:
        if decision.decision == 'accept':
          # accepting - in case of passed DeliverySolver use it, otherwise
          # simply copy values to simulation
          if not decision.delivery_solver_name:
            self._distributePropertyToSimulation(decision)
          solveMovement(self, decision.delivery_solver_name,
              decision.target_solver_name, divergence_list = [decision.divergence])
        elif decision.decision == 'split':
          solveMovement(self, decision.delivery_solver_name,
              decision.target_solver_name, **decision.split_kw)
        else: # aka - do nothing
          pass
      # adopt
      adopt_decision_list = [q for q in decision_list \
                             if q.decision == 'adopt']
      if adopt_decision_list:
        self._updatePropertyFromSimulation(adopt_decision_list)
function_tokens: def solve ( self , decision_list ) : simulation_tool = self . getPortalObject ( ) . portal_simulation solveMovement = simulation_tool . solveMovement # accept + split for decision in [ q for q in decision_list if q . decision != 'adopt' ] : if decision . decision == 'accept' : # accepting - in case of passed DeliverySolver use it, otherwise # simply copy values to simulation if not decision . delivery_solver_name : self . _distributePropertyToSimulation ( decision ) solveMovement ( self , decision . delivery_solver_name , decision . target_solver_name , divergence_list = [ decision . divergence ] ) elif decision . decision == 'split' : solveMovement ( self , decision . delivery_solver_name , decision . target_solver_name , * * decision . split_kw ) else : # aka - do nothing pass # adopt adopt_decision_list = [ q for q in decision_list if q . decision == 'adopt' ] if adopt_decision_list : self . _updatePropertyFromSimulation ( adopt_decision_list )