예제 #1
0
 /**
  * Set Measure Actual
  *
  * @param MeasureActual actual
  */
 @Override
 public void setMeasureActual(BigDecimal MeasureActual) {
   if (MeasureActual == null) return;
   super.setMeasureActual(MeasureActual);
   setDateLastRun(new Timestamp(System.currentTimeMillis()));
   setGoalPerformance();
 } //	setMeasureActual
예제 #2
0
 /** Calculate Performance Goal as multiplier */
 public void setGoalPerformance() {
   BigDecimal MeasureTarget = getMeasureTarget();
   BigDecimal MeasureActual = getMeasureActual();
   BigDecimal GoalPerformance = Env.ZERO;
   if (MeasureTarget.signum() != 0)
     GoalPerformance = MeasureActual.divide(MeasureTarget, 6, BigDecimal.ROUND_HALF_UP);
   super.setGoalPerformance(GoalPerformance);
 } //	setGoalPerformance