Skip to content

Commit

Permalink
Comments and clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkioraskari committed Oct 2, 2024
1 parent d21ff0b commit def5028
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ public class ConversionThread implements Callable<Integer> {
final private IFCtoLBDConverter converter;
final private Set<String> selected_types;
final private Set<String> selected_psets ;
//final private String ifc_filename;
//final private String uriBase;
//final private String target_file;
//final private int props_level;

final private boolean hasBuildingElements;
final private boolean hasBuildingProperties;

Expand All @@ -65,16 +62,12 @@ public class ConversionThread implements Callable<Integer> {
final boolean hasIfc_based_elements;
final boolean hasInterfaces;

//TODO Check this
public ConversionThread(IFCtoLBDConverter converter,Set<String> selected_types,Set<String> selected_psets, @SuppressWarnings("unused") String ifc_filename, @SuppressWarnings("unused") String uriBase, @SuppressWarnings("unused") String target_file,int props_level,boolean hasBuildingElements, boolean hasSeparateBuildingElementsModel, boolean hasBuildingProperties,boolean hasSeparatePropertiesModel,boolean hasPropertiesBlankNodes, boolean hasGeolocation,boolean hasGeometry,boolean exportIfcOWL,boolean hasUnits,boolean hasPerformanceBoost,boolean hasBoundingBoxWKT,boolean hasHierarchicalNaming,boolean hasIfc_based_elements,boolean hasInterfaces) {
super();
this.converter=converter;
this.selected_types=selected_types;
this.selected_psets=selected_psets;
//this.ifc_filename = ifc_filename;
//this.uriBase = uriBase;
//this.target_file = target_file;
//this.props_level=props_level;

this.hasBuildingElements=hasBuildingElements;
this.hasBuildingProperties=hasBuildingProperties;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,26 @@
import javafx.stage.FileChooser;
import javafx.stage.Stage;

/*
Main Components
- Event Handling: Uses Google Guava's EventBus for handling application events.
- File Handling: Uses FileChooser for selecting IFC and target RDF files.
- Conversion Process
-- Reads IFC files.
-- Converts them to RDF format.
Methods
- initialize(): Initializes the UI components and sets up event handlers.
- selectIFCFile(): Handles the selection of IFC files.
- selectTargetFile(): Handles the selection of target RDF files.
- convertIFCToRDF(): Initiates the conversion process.
- readInIFC(): Reads the IFC file and prepares for conversion.
- handle_notification(), handleEvent(): Methods to handle various events and update the UI accordingly.
*/

public class IFCtoLBDController implements Initializable, FxInterface {
private Preferences prefs = Preferences.userNodeForPackage(IFCtoLBDController.class);

Expand Down

0 comments on commit def5028

Please sign in to comment.