-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial commit * Change file schema * Added indirectly * consider RuleState error class inheritance * Fixes * WiP IF rule change * Added contain Then * Added some test files + fixes * Remove unnecessary changes * Remove unnecessary changes --------- Co-authored-by: Geert Hesselink <[email protected]> Co-authored-by: Thomas Krijnen <[email protected]>
- Loading branch information
1 parent
2cf1295
commit 05329ef
Showing
9 changed files
with
4,229 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@implementer-agreement | ||
@ALB | ||
Feature: ALB004 - Alignment in spatial structure | ||
The rule verifies, that each IfcAlignment must be related to IfcProject using the IfcRelAggregates relationship - either directly or indirectly. The indirect case is when a child alignment is aggregated to a parent alignment. | ||
In this case, only the parent alignment shall be related to the project. Additionally instances of IfcAlignment must not be related to spatial entities using the IfcRelContainedInSpatialStructure relationship. | ||
|
||
Scenario: Agreement on each IfcAlignment being aggregated to IfcProject and not contained in IfcSpatialElement | ||
|
||
Given A file with Schema Identifier "IFC4X3_TC1" or "IFC4X3_ADD1" or "IFC4X3" | ||
And An IfcAlignment | ||
Then Each IfcAlignment must be aggregated to IfcProject directly or indirectly | ||
Then Each IfcAlignment must not be contained in IfcSpatialElement directly or indirectly |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
| File name | Expected result | Error log | Description | | ||
|----------------------------------------------------------------|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| pass-alb004-correct-alignment-behaviour-directly-aggregated | success | n.a. | 27=IfcAlignment aggregated directly to #1=IfcProject via #815=IfcRelAggregates | | ||
| pass-alb004-correct-alignment-behaviour-in directly-aggregated | success | n.a. | 27=IfcAlignment aggregated directly to #816=IfcBuilding via #815=IfcRelAggregates. #816=IfcBuilding aggregated directly to #1=IfcProject via #817=IfcRelAggregates | | ||
| fail-alb004-not-aggregated-to-ifcproject | fail | The instance #27=IfcAlignment('3TcFoHol92d8ZdNIHJpM21',#3,'Track alignment','','Railway track alignment',#519,#522,.USERDEFINED.) is not directly or indirectly aggregated to IfcProject | There is no IfcRelAggregates relation between #27=IfcAlignment and #1=IFCPROJECT | | ||
| fail-alb004-aggregated-to-ifcperson | fail | The instance #27=IfcAlignment('3TcFoHol92d8ZdNIHJpM21',#3,'Track alignment','','Railway track alignment',#519,#522,.USERDEFINED.) is not directly or indirectly aggregated to IfcProject | 27=IfcAlignment aggregated directly to #4=IfcPerson via #815=IfcRelAggregates instead to #1=IfcProject | | ||
| fail-alb004-contained-in-spatial-entity | fail | The instance #27=IfcAlignment('3TcFoHol92d8ZdNIHJpM21',#3,'Track alignment','','Railway track alignment',#519,#522,.USERDEFINED.) is directly or indirectly contained in IfcSpatialElement | #27=IfcAlignment is contained in #15=IfcRailway with ##19=IfcRelContainedInSpatialStructure relationship | |
Oops, something went wrong.