Skip to content

A java implementation of an OpenBimRL engine for executing rule checking on IFC models.

License

Notifications You must be signed in to change notification settings

RUB-Informatik-im-Bauwesen/OpenBimRL-Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenBimRL Engine

Current Version: 2022.11.1
Publication Date: 01.11.2022
Updated Date: 01.11.2022
Autors: Marcel Stepien, André Vonthron
E-Mail: marcel.stepien@ruhr-uni-bochum.de


This is a implementation of an engine for the OpenBimRL api. The framework includes functions for OpenBimRL parsing, execution and generating results. This project also containes a set of already predefined functions that can be used in OpenBimRL documents for defining precalculations and in extension perform rule checking.

Getting started

Requirements

Note: This engine is currently incorporating the Apstex IFC Framework and Viewer into the parsing and interpretation of the building model context. As a requirement, these has to be included in or replaced for this project to work.

Dependencies:

More dependencies are provided in the pom.xml and automatically included via maven.

Minimum Example

An example execution of this engine is provided in RunExample.java and can be used to perform rule checking out of the box. Results will be printed in the terminal. However, for a more simplistic approach this code provides an example:

File modelFile = Kernel.getApplicationController().openLoadFileDialog("IFC Model File", null);
IfcLoadManager.getInstance().loadFile(modelFile);

File ruleFile = Kernel.getApplicationController().openLoadFileDialog("OpenBimRL File", null);
ArrayList<File> openBimRLFiles = new ArrayList<File>();
openBimRLFiles.add(ruleFile);

new OpenBimRLReader(openBimRLFiles);

for(AbstractRuleDefinition ruleDef : RuleBase.getInstance().getRules()) {
	ruleDef.check(
		Kernel.getApplicationModelRoot().getNode(0)
	);
}

About

A java implementation of an OpenBimRL engine for executing rule checking on IFC models.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages