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
68e915d0
Commit
68e915d0
authored
Mar 11, 2026
by
Luna Riegel
Browse files
Refactor: Restructure class
parent
c42d600d
Changes
2
Show whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/datastructure/AbstractTunnel.java
View file @
68e915d0
...
@@ -27,7 +27,6 @@ public abstract class AbstractTunnel extends CityObject implements ConstructionO
...
@@ -27,7 +27,6 @@ public abstract class AbstractTunnel extends CityObject implements ConstructionO
private
final
List
<
Installation
>
tunnelInstallations
=
new
ArrayList
<>(
2
);
private
final
List
<
Installation
>
tunnelInstallations
=
new
ArrayList
<>(
2
);
private
final
List
<
BoundarySurface
>
boundarySurfaceList
=
new
ArrayList
<>();
private
final
List
<
BoundarySurface
>
boundarySurfaceList
=
new
ArrayList
<>();
private
final
List
<
TunnelHollow
>
tunnelHollows
=
new
ArrayList
<>();
private
final
List
<
TunnelHollow
>
tunnelHollows
=
new
ArrayList
<>();
private
final
List
<
TunnelPart
>
tunnelParts
=
new
ArrayList
<>();
private
final
List
<
TunnelFurniture
>
tunnelFurnitureList
=
new
ArrayList
<>();
private
final
List
<
TunnelFurniture
>
tunnelFurnitureList
=
new
ArrayList
<>();
private
final
List
<
TunnelConstructiveElement
>
tunnelConstructiveElements
=
new
ArrayList
<>();
private
final
List
<
TunnelConstructiveElement
>
tunnelConstructiveElements
=
new
ArrayList
<>();
private
org
.
citygml4j
.
core
.
model
.
tunnel
.
AbstractTunnel
at
;
private
org
.
citygml4j
.
core
.
model
.
tunnel
.
AbstractTunnel
at
;
...
@@ -164,9 +163,6 @@ public abstract class AbstractTunnel extends CityObject implements ConstructionO
...
@@ -164,9 +163,6 @@ public abstract class AbstractTunnel extends CityObject implements ConstructionO
for
(
TunnelConstructiveElement
te
:
tunnelConstructiveElements
)
{
for
(
TunnelConstructiveElement
te
:
tunnelConstructiveElements
)
{
te
.
accept
(
c
);
te
.
accept
(
c
);
}
}
for
(
TunnelPart
tp
:
tunnelParts
)
{
tp
.
accept
(
c
);
}
}
}
...
@@ -199,10 +195,6 @@ public abstract class AbstractTunnel extends CityObject implements ConstructionO
...
@@ -199,10 +195,6 @@ public abstract class AbstractTunnel extends CityObject implements ConstructionO
te
.
setParent
(
this
);
te
.
setParent
(
this
);
}
}
public
void
addTunnelPart
(
TunnelPart
tunnelPart
)
{
tunnelParts
.
add
(
tunnelPart
);
}
public
void
setGmlObject
(
org
.
citygml4j
.
core
.
model
.
tunnel
.
AbstractTunnel
at
)
{
public
void
setGmlObject
(
org
.
citygml4j
.
core
.
model
.
tunnel
.
AbstractTunnel
at
)
{
this
.
at
=
at
;
this
.
at
=
at
;
}
}
...
@@ -221,10 +213,6 @@ public abstract class AbstractTunnel extends CityObject implements ConstructionO
...
@@ -221,10 +213,6 @@ public abstract class AbstractTunnel extends CityObject implements ConstructionO
return
tunnelFurnitureList
;
return
tunnelFurnitureList
;
}
}
public
List
<
TunnelPart
>
getTunnelParts
()
{
return
tunnelParts
;
}
@Override
@Override
public
List
<
TunnelConstructiveElement
>
getConstructiveElements
()
{
public
List
<
TunnelConstructiveElement
>
getConstructiveElements
()
{
return
tunnelConstructiveElements
;
return
tunnelConstructiveElements
;
...
...
CityDoctorParent/CityDoctorModel/src/test/java/de/hft/stuttgart/citydoctor2/datastructure/AbstractTunnelTest.java
View file @
68e915d0
...
@@ -44,11 +44,11 @@ public class AbstractTunnelTest {
...
@@ -44,11 +44,11 @@ public class AbstractTunnelTest {
BoundarySurface
mockBoundarySurface
=
mock
(
BoundarySurface
.
class
);
BoundarySurface
mockBoundarySurface
=
mock
(
BoundarySurface
.
class
);
Geometry
mockGeometry
=
mock
(
Geometry
.
class
);
Geometry
mockGeometry
=
mock
(
Geometry
.
class
);
at
.
add
Tunnel
Installation
(
mockInstallation
);
at
.
addInstallation
(
mockInstallation
);
at
.
add
TunnelHollow
(
mockTunnelHollow
);
at
.
add
Room
(
mockTunnelHollow
);
at
.
add
Tunnel
Furniture
(
mockTunnelFurniture
);
at
.
addFurniture
(
mockTunnelFurniture
);
at
.
addTunnelPart
(
mockTunnelPart
);
at
.
addTunnelPart
(
mockTunnelPart
);
at
.
add
Tunnel
ConstructiveElement
(
mockTunnelConstructiveElement
);
at
.
addConstructiveElement
(
mockTunnelConstructiveElement
);
at
.
addBoundarySurface
(
mockBoundarySurface
);
at
.
addBoundarySurface
(
mockBoundarySurface
);
at
.
addGeometry
(
mockGeometry
);
at
.
addGeometry
(
mockGeometry
);
...
...
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