Пример #1
0
 /**
  * Adds the change order count fields to the current total change order count fields. Serves as
  * the accumulator for the total of all change orders in an artifact identifier.
  *
  * @param tco total change order, fields incremented by change order values
  * @param coc change order count to add to total
  */
 private void addToTotalChangeOrder(TotalChangeOrders tco, ChangeOrderCount coc) {
   if (coc == null) return;
   tco.setBrokenLines(tco.getBrokenLines() + coc.getBrokenLines());
   tco.setFixedLines(tco.getFixedLines() + coc.getFixedLines());
   tco.setRepairEffort(tco.getRepairEffort() + coc.getRepairEffort());
   tco.setValue(tco.getValue() + coc.getValue());
 }
Пример #2
0
  /**
   *
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated NOT
   */
  public TotalChangeOrders basicGetTotalChangeOrders() {
    // -> do not perform proxy resolution
    if (totalChangeOrders == null)
      totalChangeOrders = ScoFactory.eINSTANCE.createTotalChangeOrders();
    totalChangeOrders.setBrokenLines(0);
    totalChangeOrders.setFixedLines(0);
    totalChangeOrders.setRepairEffort(0.0);
    totalChangeOrders.setValue(0);

    addToTotalChangeOrder(totalChangeOrders, getCriticalDefectChangeOrders());
    addToTotalChangeOrder(totalChangeOrders, getNormalDefectChangeOrders());
    addToTotalChangeOrder(totalChangeOrders, getImprovementChangeOrders());
    addToTotalChangeOrder(totalChangeOrders, getNewFeatureChangeOrders());

    return totalChangeOrders;
  }