class testproperties():
    
    def testProperties(self, workingdir, tablepath, identifierindex):
        from classes.getproperties import getproperties
        targets, properties, propertyurls = getproperties().getProperties(workingdir, tablepath)
                
               
        from classes.testbuilder import testbuilder
        testsdict = testbuilder.buildtests(propertyurls)
        
        
        from classes.evaluater import evaluater
        evalutionresults = evaluater().evaluater(testsdict, targets, identifierindex)
        
        
        
        
        """
        from sklearn.metrics import classification_report
        print classification_report(expected, predictions)
        """
        
        
        
        """
        from classes.resultpresenter import presentResults
        presentResults(evalutionresults)
        """






if  __name__ =='__main__':
    from optparse import OptionParser
    parser = OptionParser(usage=("%prog"))
    parser.add_option("--verbose", help="increase output verbosity", action="store_true")
    parser.add_option("-w", "--workingdir", dest='workingdir', default='../workingdir/1',  help="increase output verbosity")
    parser.add_option("-t", "--table", dest='table', default='/home/bas/Dropbox/Thesis/Implementation/Evaluation/Tables/table1.txt',  help="increase output verbosity")
    parser.add_option("-i", "--identifierindex", dest="identifierindex", default='Structure' , help="Name of main identifier index")
    
    inputoptions, args = parser.parse_args()   
    
    testproperties().testProperties(inputoptions.workingdir, inputoptions.table, inputoptions.identifierindex)