Skip to content

7 construction sequence generation #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mike1813
Copy link
Member

@mike1813 mike1813 commented Nov 5, 2024

Added code to calculate CP sequence numbers and output them to the NQ file as values for the core#hasPriority property of each CP.

There is no error checking as yet because that is done in the MS Access Domain Model editor DB - specifically there is a check that the (partial) sequence number can be found for every CP (i.e., the ConstructionPredecessor.csv and ConstructionSuccessor.csv data does not create any CP cycles).

I guess that may need to be added if we move away from using the DB, but that depends on what replaces it, so I decided not to spend time including those checks here.

- added a domain model feature flag for construction dependencies
- made construction sequence calculation depend on this being set
- restored the use of the old priorities if not set
@mike1813 mike1813 requested a review from scp93ch November 5, 2024 10:49
@mike1813 mike1813 linked an issue Nov 5, 2024 that may be closed by this pull request
2 tasks
Copy link

sonarqubecloud bot commented Nov 5, 2024

Copy link
Member

@scp93ch scp93ch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've read the code and it makes sense. I don't know why some lines in the new CSV files have the "fake" column as "true"? Perhaps that should be explained in the code?

It would be neater to use a set() for the set of predecessor URIs, but it's not worth changing.

I've not run the code but on the basis that you have and the tests you've done, I'm okay with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Construction sequence generation
2 participants