de.jwg.dbis.rdf.rdfs3.access.model
Class POI

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractSet
              |
              +--java.util.HashSet
                    |
                    +--de.jwg.dbis.rdf.rdfs3.access.model.Result
                          |
                          +--de.jwg.dbis.rdf.rdfs3.access.model.POI
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.io.Serializable, java.util.Set

public class POI
extends Result

Represents a Point Of Interest. Holds the direct hits, especially important for AND operators (merging two POIs).

Version:
1.7 beta
Author:
KarstenTolle
See Also:
Serialized Form

Constructor Summary
POI()
          Constructor for a Point Of Interest (POI).
 
Method Summary
 void addDirectHit(java.lang.Object o)
          Adds a direct hit to the POI.
 java.util.ArrayList getDirectHits()
           
 boolean intersection_test(POI al2)
           
 boolean isDirectHit(java.lang.Object o)
           
 int numberOfHits()
          The number of hits contained by this POI.
 java.lang.String toRDFXML()
          Generates an RDF/XML representation of this POI using the RDF-S3 Schema.
 POI union(POI poi)
          Adds all hits and direct hits of the input POI into this one and returns the result.
 
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

POI

public POI()
Constructor for a Point Of Interest (POI).

Method Detail

addDirectHit

public void addDirectHit(java.lang.Object o)
Adds a direct hit to the POI.

Parameters:
o - The direct hit.

getDirectHits

public java.util.ArrayList getDirectHits()
Returns:
The direct hits of this query.

isDirectHit

public boolean isDirectHit(java.lang.Object o)

toRDFXML

public java.lang.String toRDFXML()
Generates an RDF/XML representation of this POI using the RDF-S3 Schema.

Specified by:
toRDFXML in class Result
Returns:
An RDF/XML representation of the POI.

numberOfHits

public int numberOfHits()
The number of hits contained by this POI.

Specified by:
numberOfHits in class Result

union

public POI union(POI poi)
Adds all hits and direct hits of the input POI into this one and returns the result.


intersection_test

public boolean intersection_test(POI al2)
Returns:
True if there is an intersection between the two given POIs.