public class Geomap extends Object implements Iterable<TopicModel>, JSONEnabled
Features: - load from DB (by constructor). - Serialization to JSON.
Modifier and Type | Field and Description |
---|---|
protected DeepaMehtaService |
dms |
protected Map<Long,TopicModel> |
geoCoords |
protected Topic |
geomapTopic |
private Logger |
logger |
Constructor and Description |
---|
Geomap(long geomapId,
DeepaMehtaService dms)
Loads a topicmap from the DB.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsTopic(long geoCoordId) |
private void |
fetchGeoCoordinates() |
private ResultList<RelatedTopic> |
fetchGeoCoordinates(Topic geomapTopic) |
long |
getId() |
Iterator<TopicModel> |
iterator() |
org.codehaus.jettison.json.JSONObject |
toJSON() |
String |
toString() |
protected Topic geomapTopic
protected Map<Long,TopicModel> geoCoords
protected DeepaMehtaService dms
public Geomap(long geomapId, DeepaMehtaService dms)
public long getId()
public boolean containsTopic(long geoCoordId)
public org.codehaus.jettison.json.JSONObject toJSON()
toJSON
in interface JSONEnabled
public Iterator<TopicModel> iterator()
iterator
in interface Iterable<TopicModel>
private void fetchGeoCoordinates()
private ResultList<RelatedTopic> fetchGeoCoordinates(Topic geomapTopic)
Copyright © 2015. All Rights Reserved.