code: public void ENaddpattern( String id ) throws EpanetException {
          int errcode = epanet.ENaddpattern(id);
          checkError(errcode);
      }
docs: Adds a new time pattern to the network.
  
  @param id ID label of pattern.
  @throws EpanetException