extension/src/main/java/org/justinnk/masonssa/extension/ssa/OptimizedDirectMethod.java
/**
   * Update the sum of rates with the actions new rate.
   *
   * @param action The action to account for.
   */
Update the sum of rates with the actions new rate.
@param action The action to account for.
Update the sum of rates with the actions new rate . @param action The action to account for .
public void updateRateSum(Action action) {
    /* If the actions old rate is in the sum, subtract it. */
    removeFromRateSum(action);
    /* In any case, add the new rate of the action, if applicable. */
    if (action.evaluateCondition()) {
      double rate = action.calculateRate();
      this.rateSum += rate;
    }
  }
public void updateRateSum ( Action action ) { /* If the actions old rate is in the sum, subtract it. */ removeFromRateSum ( action ) ; /* In any case, add the new rate of the action, if applicable. */ if ( action . evaluateCondition ( ) ) { double rate = action . calculateRate ( ) ; this . rateSum += rate ; } }
Update the sum of rates with the actions new rate.
Update the sum of rates with the actions new rate .