|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object ConfigurableWorldModule AbstractModule
public abstract class AbstractModule
skeleton implementation for 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.
Field Summary |
---|
Fields inherited from class ConfigurableWorldModule |
---|
config |
Constructor Summary | |
---|---|
AbstractModule()
|
Method Summary | |
---|---|
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 . |
Methods inherited from class ConfigurableWorldModule |
---|
setConfiguration |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractModule()
Method Detail |
---|
public final void applyTo(MapData grid)
WorldModule
WorldObject
s to MapElement
s
protected 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)
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |