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

public class Geomap
extends Object
implements JSONEnabled

A geomap model: a collection of Geo Coordinate topics.

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


Field Summary
protected  DeepaMehtaService dms
           
protected  Topic geomapTopic
           
private  Logger logger
           
protected  Map<Long,TopicModel> topics
           
 
Constructor Summary
Geomap(long geomapId, DeepaMehtaService dms)
          Loads a topicmap from the DB.
 
Method Summary
private  void addTopic(TopicModel topic)
           
 boolean containsTopic(long topicId)
           
static ResultList<RelatedTopic> fetchGeomapTopics(long geomapId, DeepaMehtaService dms)
           
private static ResultList<RelatedTopic> fetchGeomapTopics(Topic geomapTopic, boolean fetchComposite)
           
 long getId()
           
private  void loadTopics()
           
 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

topics

protected Map<Long,TopicModel> topics

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()

fetchGeomapTopics

public static ResultList<RelatedTopic> fetchGeomapTopics(long geomapId,
                                                         DeepaMehtaService dms)

containsTopic

public boolean containsTopic(long topicId)

toJSON

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

toString

public String toString()
Overrides:
toString in class Object

loadTopics

private void loadTopics()

fetchGeomapTopics

private static ResultList<RelatedTopic> fetchGeomapTopics(Topic geomapTopic,
                                                          boolean fetchComposite)

addTopic

private void addTopic(TopicModel topic)


Copyright © 2013. All Rights Reserved.