org.osm2world.core.world.modules.common
public abstract class AbstractModule extends ConfigurableWorldModule
WorldModule
s.
Subclasses need to be able to create WorldObject
s
for each MapElement
in isolation.
This can make parallel application of the module possible.config
Constructor and Description |
---|
AbstractModule() |
Modifier and Type | Method and Description |
---|---|
void |
applyTo(MapData grid)
adds
WorldObject s to MapElement s |
protected void |
applyToArea(MapArea area)
create
WorldObject s for a MapArea . |
protected void |
applyToElement(MapElement element)
create
WorldObject s for a MapElement . |
protected void |
applyToNode(MapNode node)
create
WorldObject s for a MapNode . |
protected void |
applyToWaySegment(MapWaySegment segment)
create
WorldObject s for a MapWaySegment . |
setConfiguration
public final void applyTo(MapData grid)
WorldModule
WorldObject
s to MapElement
sprotected void applyToElement(MapElement element)
WorldObject
s for a MapElement
.
Can be overwritten by subclasses.
The default implementation does not create any objects.protected void applyToNode(MapNode node)
WorldObject
s for a MapNode
.
Can be overwritten by subclasses.
The default implementation calls applyToElement(MapElement)
.protected void applyToWaySegment(MapWaySegment segment)
WorldObject
s for a MapWaySegment
.
Can be overwritten by subclasses.
The default implementation calls applyToElement(MapElement)
.protected void applyToArea(MapArea area)
WorldObject
s for a MapArea
.
Can be overwritten by subclasses.
The default implementation calls applyToElement(MapElement)
.