com.gmail.thejcwk.semantics.topicmaps
Class TopicMap

java.lang.Object
  extended by com.gmail.thejcwk.semantics.topicmaps.TopicMap
Direct Known Subclasses:
LinguisticTopicMap

public class TopicMap
extends java.lang.Object

Encapsulates a topic map.

Author:
Jan Kroeze

Constructor Summary
TopicMap()
           
 
Method Summary
 void addOccurrence(Occurrence anOccurrence)
          Add an occurrence to the map.
 void addRelationship(Relationship aRelationship)
          Add a relationship to the map.
 void addTopic(Topic aTopic)
          Add a Topic to the map.
 java.util.ArrayList<Occurrence> getOccurrences()
           
 java.util.ArrayList<Relationship> getRelationships()
           
 Topic getTopic(Topic equalTopic)
          Return a Topic that has been added to this map that is equal to t.
 java.util.ArrayList<Topic> getTopics()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicMap

public TopicMap()
Method Detail

addTopic

public void addTopic(Topic aTopic)
Add a Topic to the map.

Parameters:
aTopic - The Topic to be added. This must be unique, or it will not be added.

addOccurrence

public void addOccurrence(Occurrence anOccurrence)
Add an occurrence to the map.

Parameters:
anOccurrence - The Occurrence to be added. Must be unique otherwise it will not be added.

addRelationship

public void addRelationship(Relationship aRelationship)
Add a relationship to the map.

Parameters:
aRelationship - The relationship to be added. If this is not unqiue it will not be added.

getOccurrences

public java.util.ArrayList<Occurrence> getOccurrences()

getRelationships

public java.util.ArrayList<Relationship> getRelationships()

getTopic

public Topic getTopic(Topic equalTopic)
Return a Topic that has been added to this map that is equal to t.

Returns:
The Topic found, or null if there is no such Topic.

getTopics

public java.util.ArrayList<Topic> getTopics()