Ignore:
Timestamp:
06/03/16 15:55:22 (8 years ago)
Author:
sherbold
Message:
  • result storage now considers first classifier in file when checking if a result is available
Location:
trunk/CrossPare/src/de/ugoe/cs/cpdp/eval
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrossPare/src/de/ugoe/cs/cpdp/eval/IResultStorage.java

    r98 r121  
    4343     * @param productName 
    4444     *            name of the product 
     45     * @param classifierName 
     46     *            name of the first classifier in the configuration 
    4547     * @return number of contained resultsfor the given product and experiment 
    4648     */ 
    47     public int containsResult(String experimentName, String productName); 
     49    public int containsResult(String experimentName, String productName, String classifierName); 
    4850} 
  • trunk/CrossPare/src/de/ugoe/cs/cpdp/eval/MySQLResultStorage.java

    r98 r121  
    162162     */ 
    163163    @Override 
    164     public int containsResult(String experimentName, String productName) { 
     164    public int containsResult(String experimentName, String productName, String classifierName) { 
    165165        String sql = "SELECT COUNT(*) as cnt FROM crosspare.results WHERE configurationName=\'" + 
    166             experimentName + "\' AND productName=\'" + productName + "\';"; 
     166            experimentName + "\' AND productName=\'" + productName + "\' AND classifier=\'" + classifierName + "\';"; 
    167167        Statement stmt; 
    168168        try { 
Note: See TracChangeset for help on using the changeset viewer.