-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from jyrkioraskari/development
Performance: Added concurrency
- Loading branch information
Showing
11 changed files
with
465 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
725 changes: 377 additions & 348 deletions
725
IFCtoLBD/src/main/java/org/linkedbuildingdata/ifc2lbd/IFCtoLBDConverter.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
IFCtoLBD/src/main/java/org/linkedbuildingdata/ifc2lbd/tests/ProfilingTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.linkedbuildingdata.ifc2lbd.tests; | ||
|
||
public class ProfilingTests { | ||
|
||
public static void main(String[] args) { | ||
|
||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
IFCtoLBD_Geometry/src/main/java/de/rwth_aachen/dc/lbd/PerformanceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package de.rwth_aachen.dc.lbd; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
|
||
import org.bimserver.plugins.deserializers.DeserializeException; | ||
import org.bimserver.plugins.renderengine.RenderEngineException; | ||
|
||
public class PerformanceTest { | ||
|
||
public static void main(String[] args) { | ||
try { | ||
new IFCGeometry(new File("c:\\jo\\Duplex_A_20110907.ifc")); | ||
} catch (RenderEngineException | DeserializeException | IOException e) { | ||
e.printStackTrace(); | ||
} | ||
System.out.println("done"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package be.ugent; | ||
|
||
import java.io.IOException; | ||
import java.io.PrintStream; | ||
import java.util.Optional; | ||
|
||
public class PerformanceTest extends IfcSpfReader { | ||
|
||
private int i = 0; | ||
|
||
public Optional<String> convert_into_rdf(String ifcFile, String outputFile, String baseURI,boolean hasPerformanceBoost) throws IOException { | ||
i = 0; | ||
PrintStream orgSystemOut = System.out; | ||
PrintStream orgSystemError = System.err; | ||
|
||
|
||
System.out.println("ifcfile is: "+ifcFile); | ||
|
||
setup(ifcFile); | ||
convert(ifcFile, outputFile, baseURI,hasPerformanceBoost); | ||
return Optional.of(this.ontURI); | ||
} | ||
|
||
public Optional<String> getOntologyURI(String ifcFile) { | ||
try { | ||
setup(ifcFile); | ||
} catch (IOException e) { | ||
e.printStackTrace(); | ||
} | ||
return Optional.of(this.ontURI); | ||
} | ||
|
||
|
||
public static void main(String[] args) { | ||
PerformanceTest pt=new PerformanceTest(); | ||
try { | ||
pt.convert_into_rdf("c:\\jo\\Duplex_A_20110907.ifc", "c:\\jo\\out.ttl", "https://ba.se/",true); | ||
} catch (IOException e) { | ||
e.printStackTrace(); | ||
} | ||
|
||
System.out.println("done"); | ||
} | ||
} |