Geen omschrijving

StartExtractorDO.java 1007B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package graph;
  2. import java.util.Properties;
  3. import graph.extractor.ExtractorGraph;
  4. import graph.input.file.InputFolder;
  5. import graph.input.file.InputSTJ;
  6. import graph.output.database.DatabaseOutput;
  7. import graph.properties.ExtractorProperties;
  8. public class StartExtractorDO {
  9. public static void main(String[] args) {
  10. // TODO Auto-generated method stub
  11. /**Starts all properties*/
  12. Properties exctractorProperites = new ExtractorProperties();
  13. InputFolder folder = new InputFolder(exctractorProperites);
  14. /**Extractor**/
  15. ExtractorGraph exctractorGraph = new ExtractorGraph();
  16. /**Add the inputs*/
  17. exctractorGraph.addInput(new InputSTJ(folder));
  18. /***/
  19. /**Do the process on this part all the most CPU will be usage*/
  20. exctractorGraph.process();
  21. /**add the Output*/
  22. exctractorGraph.addOutPut(new DatabaseOutput());
  23. //exctractorGraph.addOutPut(new ScreenOutput());
  24. /******/
  25. /**Shows the result*/
  26. exctractorGraph.outPut();
  27. }
  28. }