public abstract class GeoExtensionBuilderBase<T extends OsmObject<?>> extends java.lang.Object implements PostProcessor
OsmObject
s als
GraphExtension
zu schreiben. Und zwar direkt in den Graphen und/oder
isoliert als eigene VarBean
-Datei.Props
werden unterstuetzt. Defaults in Klammern:
EXTENSION_CLAZZ
hart-kodiert.
ZoneUtils
-Raster fuer Suche (1).
Die eigentliche Abdeckung obliegt der jeweiligen Implementation
von zoneIdsOf(OsmObject, byte)
und dem darin enthaltenen
Aufruf zu z.B. ZoneUtils.expandZone(int, int, int)
.
Dictionary
erzeugen (false)postp.X.
geprefixt werden, wobei X durch
die Id des Postprozessors ersetzt werden muss.BndExtensionBuilder
,
BndExtensionBuilderDb
,
PoiExtensionBuilder2po
,
PoiExtensionBuilderDb
Modifier and Type | Field and Description |
---|---|
static int |
COMPAT_VERSION |
static byte |
EXTENSION_CLAZZ |
protected byte |
EXTENSION_ID |
static byte |
EXTENSION_ID_DEFAULT |
protected Log |
log |
Constructor and Description |
---|
GeoExtensionBuilderBase() |
Modifier and Type | Method and Description |
---|---|
protected VarString[] |
associateNames(T osmObject)
Liefert die assozierten Namen fuer das interne
Dictionary . |
protected abstract java.lang.Class<? extends Var<?>> |
forExtensionClass() |
protected abstract java.lang.Iterable<T> |
getSource() |
void |
run(Config config,
int index)
Startet den Lauf.
|
protected abstract int[] |
zoneIdsOf(T osmObject,
byte zoneSize) |
public static final int COMPAT_VERSION
public static final byte EXTENSION_CLAZZ
public static final byte EXTENSION_ID_DEFAULT
protected Log log
protected byte EXTENSION_ID
protected abstract java.lang.Iterable<T> getSource()
protected abstract int[] zoneIdsOf(T osmObject, byte zoneSize)
protected abstract java.lang.Class<? extends Var<?>> forExtensionClass()
protected VarString[] associateNames(T osmObject)
Dictionary
.
Die Basis-Implementation in GeoExtensionBuilderBase
greift
lediglich OsmObject.getName()
ab und nutzt dabei optional '|'
als Trenner, fuer den Fall dass mehr als ein Name im Dictionary
zugeordnet werden soll.
OsmObject
s ermittelt,
so dass OsmObject.getCustom()
auch temporaer verwendet und
hier am Ende wieder auf NULL zurueckgestellt werden kann.public void run(Config config, int index) throws java.lang.Exception
PostProcessor
run
in interface PostProcessor
config
- Config
Aktuelle Konfigurationindex
- Ordinal-Index bei mehreren Postprozessoren innerhalb der Config.java.lang.Exception
- x