public abstract class RouteDetailHandler extends CotDetailHandler
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_subName |
Modifier | Constructor and Description |
---|---|
protected |
RouteDetailHandler(java.lang.String subName) |
Modifier and Type | Method and Description |
---|---|
boolean |
isSupported(MapItem item,
CotEvent event,
CotDetail detail)
Check if this handler supports this item
Used to filter out certain types from being processed by a handler
|
boolean |
toCotDetail(MapItem item,
CotEvent event,
CotDetail detail)
Convert map item metadata to a CoT detail
|
protected abstract CotDetail |
toCotDetail(Route route)
Create route detail element (under "__routeInfo")
|
CommsMapComponent.ImportResult |
toItemMetadata(MapItem item,
CotEvent event,
CotDetail detail)
Convert CoT event detail to map item metadata
|
protected abstract CommsMapComponent.ImportResult |
toRouteMetadata(Route route,
CotDetail subNode)
Convert sub-detail node to route metadata
|
getDetailNames, getMapItem, getPoint, parseDouble, parseInt
public boolean isSupported(MapItem item, CotEvent event, CotDetail detail)
CotDetailHandler
isSupported
in class CotDetailHandler
item
- Map itemevent
- CoT Eventdetail
- Associated CoT detailpublic boolean toCotDetail(MapItem item, CotEvent event, CotDetail detail)
CotDetailHandler
toCotDetail
in class CotDetailHandler
item
- Map item to readevent
- Item's associated CoT eventdetail
- The CoT event root detail (add to this)public CommsMapComponent.ImportResult toItemMetadata(MapItem item, CotEvent event, CotDetail detail)
CotDetailHandler
toItemMetadata
in class CotDetailHandler
item
- Map itemevent
- Item's associated CoT eventdetail
- The detail associated with this handler (read from this)CommsMapComponent.ImportResult.SUCCESS
if handled successfully
CommsMapComponent.ImportResult.FAILURE
if handled but failed
CommsMapComponent.ImportResult.IGNORE
if not handled or N/A
CommsMapComponent.ImportResult.DEFERRED
if we should try again laterprotected abstract CotDetail toCotDetail(Route route)
route
- Routeprotected abstract CommsMapComponent.ImportResult toRouteMetadata(Route route, CotDetail subNode)
route
- RoutesubNode
- The sub-detail node (same name as passed into ctor)