Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
bfc19774
Commit
bfc19774
authored
May 21, 2026
by
Luna Riegel
Browse files
Fix: Add topology checks table to config assembly
parent
5c91d943
Changes
2
Show whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/check/ValidationConfiguration.java
View file @
bfc19774
...
@@ -91,12 +91,10 @@ public class ValidationConfiguration implements Serializable {
...
@@ -91,12 +91,10 @@ public class ValidationConfiguration implements Serializable {
ValidationConfiguration
config
=
new
ValidationConfiguration
();
ValidationConfiguration
config
=
new
ValidationConfiguration
();
config
.
requirements
=
new
HashMap
<>();
config
.
requirements
=
new
HashMap
<>();
for
(
CheckPrototype
c
:
Checks
.
getCheckPrototypes
())
{
for
(
CheckPrototype
c
:
Checks
.
getCheckPrototypes
())
{
if
(
c
.
getType
()
==
RequirementType
.
TOPOLOGY
){
continue
;
}
for
(
Requirement
req
:
c
.
checksRequirements
())
{
for
(
Requirement
req
:
c
.
checksRequirements
())
{
RequirementConfiguration
reqConfig
=
new
RequirementConfiguration
();
RequirementConfiguration
reqConfig
=
new
RequirementConfiguration
();
reqConfig
.
setEnabled
(
true
);
//Topology checks are disabled in standard config
reqConfig
.
setEnabled
(
c
.
getType
()
!=
RequirementType
.
TOPOLOGY
);
for
(
DefaultParameter
param
:
req
.
getDefaultParameters
())
{
for
(
DefaultParameter
param
:
req
.
getDefaultParameters
())
{
reqConfig
.
getParameters
().
put
(
param
.
getName
(),
param
.
getValue
());
reqConfig
.
getParameters
().
put
(
param
.
getName
(),
param
.
getValue
());
}
}
...
...
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/CheckDialog.java
View file @
bfc19774
...
@@ -532,6 +532,7 @@ public class CheckDialog {
...
@@ -532,6 +532,7 @@ public class CheckDialog {
private
boolean
collectCheckConfiguration
(
ValidationConfiguration
config
)
{
private
boolean
collectCheckConfiguration
(
ValidationConfiguration
config
)
{
collectCheckInformationFromTree
(
config
,
geometricTable
);
collectCheckInformationFromTree
(
config
,
geometricTable
);
collectCheckInformationFromTree
(
config
,
semanticTable
);
collectCheckInformationFromTree
(
config
,
semanticTable
);
collectCheckInformationFromTree
(
config
,
topologyTable
);
config
.
setSchematronFilePathInGlobalParameters
(
schematronField
.
getText
());
config
.
setSchematronFilePathInGlobalParameters
(
schematronField
.
getText
());
config
.
setMinVertexDistanceInGlobalParameters
(
config
.
setMinVertexDistanceInGlobalParameters
(
Double
.
parseDouble
(
globalParametersTable
.
getItems
().
get
(
1
).
getValue
()));
Double
.
parseDouble
(
globalParametersTable
.
getItems
().
get
(
1
).
getValue
()));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment