code: public float ENgetpatternvalue( int index, int period ) throws EpanetException {
          float[] value = new float[1];
          int errcode = epanet.ENgetpatternvalue(index, period, value);
          checkError(errcode);
  
          return value[0];
      }
docs: Retrieves the multiplier factor for a specific time period in a time pattern.
  
  @param index time pattern index.
  @param period period within time pattern.
  @return multiplier factor for the period.
  @throws EpanetException