public double getRemainingQty(){ return remainingQty;
public double getRemainingQty(int currentBucket){ ConstantRateBlock block = getRateBlock(currentBucket); if(block != null) { return block.getRemainingQty(); } return 0.0d;
    public double getRemainingQty(){      return remainingQty;    }