/** * Generates a new filename for the given relation based on the current setup. * * @param inst the instances to create the filename for * @return the generated filename */ protected String createFilename(Instances inst) { String result; String name; name = inst.relationName(); if (getRelationFind().length() > 0) { name = name.replaceAll(getRelationFind(), getRelationReplace()); } result = getTestsetDir().getPath() + File.separator; result += getTestsetPrefix() + name + getTestsetSuffix(); // substitute the run number (and any other variables) // if specified try { result = m_env.substitute(result); } catch (Exception ex) { } return result; }
/** * Generates a new filename for the given relation based on the current setup. * * @param inst the instances to create the filename for * @return the generated filename */ protected String createFilename(Instances inst) { String result; String name; name = inst.relationName(); if (getRelationFind().length() > 0) { name = name.replaceAll(getRelationFind(), getRelationReplace()); } result = getTestsetDir().getPath() + File.separator; result += getTestsetPrefix() + name + getTestsetSuffix(); // substitute the run number (and any other variables) // if specified try { result = m_env.substitute(result); } catch (Exception ex) { } return result; }
result.add(getTestsetSuffix()); if (getRelationFind().length() > 0) { result.add("-find"); result.add(getRelationFind());
result.add(getTestsetSuffix()); if (getRelationFind().length() > 0) { result.add("-find"); result.add(getRelationFind());
if (getRelationFind().length() > 0) { result += " -find " + getRelationFind();
if (getRelationFind().length() > 0) { result += " -find " + getRelationFind();
if ((tmpStr.length() > 0) && (getRelationFind().length() > 0)) { setRelationReplace(tmpStr); } else {
if ((tmpStr.length() > 0) && (getRelationFind().length() > 0)) { setRelationReplace(tmpStr); } else {