def _set_payoff(self, payoff):
if self._selected_action is None:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if self._closed:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT>self._payoff = float(payoff)<EOL>
Setter method for the payoff property.