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
5e19ae60
Commit
5e19ae60
authored
Nov 03, 2025
by
Luna Riegel
Browse files
Refactor: Delete useless classes
parent
b248c718
Changes
3
Show whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/database/SubPartAdapter.java
deleted
100644 → 0
View file @
b248c718
package
de.hft.stuttgart.citydoctor2.database
;
import
de.hft.stuttgart.citydoctor2.datastructure.CityObject
;
import
de.hft.stuttgart.citydoctor2.datastructure.GmlId
;
/**
* Adapter class for Lists. All function calls on objects of this
* class get passed to their respective CityObjects.
*/
public
class
SubPartAdapter
{
// TODO: Remove CO extension and change model to stream and map objects to their respective classes
private
final
GmlId
featureId
;
private
final
GmlId
topLevelId
;
private
FeatureCache
cache
;
public
SubPartAdapter
(
CityObject
co
,
FeatureCache
cache
)
{
this
.
featureId
=
co
.
getGmlId
();
this
.
topLevelId
=
co
.
getTopLevelCityObject
().
getGmlId
();
this
.
cache
=
cache
;
}
public
boolean
isValidated
(){
return
cache
.
get
(
featureId
).
isValidated
();
}
public
GmlId
getFeatureId
()
{
return
featureId
;
}
public
GmlId
getTopLevelId
()
{
return
topLevelId
;
}
}
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/database/TopLevelCityObjectAdapter.java
deleted
100644 → 0
View file @
b248c718
package
de.hft.stuttgart.citydoctor2.database
;
import
de.hft.stuttgart.citydoctor2.datastructure.CityObject
;
import
de.hft.stuttgart.citydoctor2.datastructure.GmlId
;
public
class
TopLevelCityObjectAdapter
{
private
final
GmlId
featureId
;
private
FeatureCache
cache
;
public
TopLevelCityObjectAdapter
(
CityObject
co
,
FeatureCache
cache
)
{
this
.
featureId
=
co
.
getGmlId
();
this
.
cache
=
cache
;
}
public
boolean
isValidated
(){
return
cache
.
get
(
featureId
).
isValidated
();
}
}
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/check/StreamCityGmlConsumer.java
View file @
5e19ae60
...
@@ -134,7 +134,7 @@ public class StreamCityGmlConsumer implements CityGmlConsumer {
...
@@ -134,7 +134,7 @@ public class StreamCityGmlConsumer implements CityGmlConsumer {
pdfReporter
.
report
(
co
);
pdfReporter
.
report
(
co
);
}
}
// TODO: Update QualityADE to be compatible with CityGML 3.0
or deprecate it
, unhandled top-level feature types are just skipped for now
// TODO: Update QualityADE to be compatible with CityGML 3.0, unhandled top-level feature types are just skipped for now
if
(!(
co
instanceof
AbstractTunnel
||
co
instanceof
CityFurniture
||
co
instanceof
GenericCityObject
))
{
if
(!(
co
instanceof
AbstractTunnel
||
co
instanceof
CityFurniture
||
co
instanceof
GenericCityObject
))
{
// store quality ade datastructures in cityobject
// store quality ade datastructures in cityobject
QualityADEUtils
.
writeQualityAde
(
co
,
val
);
QualityADEUtils
.
writeQualityAde
(
co
,
val
);
...
...
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