de.deepamehta.plugins.geomaps.model
Class Geomap

Show UML class diagram
java.lang.Object
  extended by de.deepamehta.plugins.geomaps.model.Geomap
All Implemented Interfaces:
JSONEnabled, Iterable<TopicModel>

public class Geomap
extends Object
implements Iterable<TopicModel>, JSONEnabled

A geomap model: a collection of Geo Coordinate topic models.

Features: - load from DB (by constructor). - Serialization to JSON.


Field Summary
protected  DeepaMehtaService dms
           
protected  Map<Long,TopicModel> geoCoords
           
protected  Topic geomapTopic
           
private  Logger logger
           
 
Constructor Summary
Geomap(long geomapId, DeepaMehtaService dms)
          Loads a topicmap from the DB.
 
Method Summary
 boolean containsTopic(long geoCoordId)
           
private  void fetchGeoCoordinates()
           
private  ResultList<RelatedTopic> fetchGeoCoordinates(Topic geomapTopic)
           
 long getId()
           
 Iterator<TopicModel> iterator()
           
 JSONObject toJSON()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

geomapTopic

protected Topic geomapTopic

geoCoords

protected Map<Long,TopicModel> geoCoords

dms

protected DeepaMehtaService dms

logger

private Logger logger
Constructor Detail

Geomap

public Geomap(long geomapId,
              DeepaMehtaService dms)
Loads a topicmap from the DB.

Method Detail

getId

public long getId()

containsTopic

public boolean containsTopic(long geoCoordId)

toJSON

public JSONObject toJSON()
Specified by:
toJSON in interface JSONEnabled

iterator

public Iterator<TopicModel> iterator()
Specified by:
iterator in interface Iterable<TopicModel>

toString

public String toString()
Overrides:
toString in class Object

fetchGeoCoordinates

private void fetchGeoCoordinates()

fetchGeoCoordinates

private ResultList<RelatedTopic> fetchGeoCoordinates(Topic geomapTopic)


Copyright © 2014. All Rights Reserved.