|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SpatialQuery
This interface defines methods to query spatial relations between known objects. Currently the qualitative information are returned.
Method Summary | |
---|---|
java.util.Vector |
findObjectsInRelation(java.util.Vector relationNames,
java.lang.String subjectObjectID,
float maxDistance)
This method returns a vector of the IDs of objects being in the specified relation to the subject object, but in the specified maximum distance. |
java.util.Vector |
findObjectsInRelationReferencedBy(java.util.Vector relationNames,
java.lang.String subjectObjectID,
java.lang.String referenceObjectID,
float maxDistance)
This method returns objects being in the specified relations to the subject object in regards to the referenced object, but in the specified maximum distance. |
java.util.Vector |
findSpatialRelationsBetween(java.lang.String subjectObjectID,
java.lang.String relatedObjectID)
This method returns spatial relations between two objects from the perspective of the first subject object. |
java.util.Vector |
findSpatialRelationsReferencedBy(java.lang.String subjectObjectID,
java.net.URI relatedObjectID,
java.lang.String referencedObjectID)
This method returns spatial relations between two objects from the perspective of the first subject object in regards to the reference object. |
boolean |
testSpatialRelationBetween(java.net.URI relationName,
java.lang.String subjectObjectID,
java.lang.String relatedObjectID)
This method tests the given spatial relation between two objects from the perspective of the subject object. |
boolean |
testSpatialRelationsReferencedBy(java.net.URI relationName,
java.lang.String relatedObjectID,
java.lang.String subjectObjectID,
java.lang.String referencedObjectID)
This method test spatial relation between two objects from the perspective of the subject object in regards to the referenced object. |
Method Detail |
---|
java.util.Vector findSpatialRelationsBetween(java.lang.String subjectObjectID, java.lang.String relatedObjectID) throws NotRegisteredException
subjectObjectID
- - id of the subject objectrelatedObjectID
- - id of the related object
NotRegisteredException
- when the objects are not registered in spatial databaseboolean testSpatialRelationBetween(java.net.URI relationName, java.lang.String subjectObjectID, java.lang.String relatedObjectID) throws NotRegisteredException, UnknownConceptException
relationName
- - URI in the OWL ontology file to the relation definition to be tested, for instance: inside, on-the-left, etc.subjectObjectID
- - id of the subject objectrelatedObjectID
- - id of the related object
NotRegisteredException
- when the objects are not registered in spatial database
UnknownConceptException
- when the spatial relation is unknownjava.util.Vector findObjectsInRelation(java.util.Vector relationNames, java.lang.String subjectObjectID, float maxDistance) throws NotRegisteredException, UnknownConceptException
relationNames
- - URIs in the OWL ontology file(s) to the relation definition, for instance left, down, etc.subjectObjectID
- - id of the subject objectmaxDistance
- - meximum distance of the search
NotRegisteredException
- when the subject is not registered in the spatial database
UnknownConceptException
- when the spatial relation is unknownjava.util.Vector findSpatialRelationsReferencedBy(java.lang.String subjectObjectID, java.net.URI relatedObjectID, java.lang.String referencedObjectID) throws NotRegisteredException
subjectObjectID
- - id of the subject objectrelatedObjectID
- - id of the related objectreferencedObjectID
- - id of the reference object
NotRegisteredException
- when the objects are not registered in the spatial databaseboolean testSpatialRelationsReferencedBy(java.net.URI relationName, java.lang.String relatedObjectID, java.lang.String subjectObjectID, java.lang.String referencedObjectID) throws NotRegisteredException, UnknownConceptException
relationName
- - URI in the OWL ontology file to the relation definition to be tested, for instance further-left, less-down, etc.relatedObjectID
- - id of the related objectsubjectObjectID
- - id of the subject objectreferencedObjectID
- - id of the referenced object
NotRegisteredException
- when the objects are not registered in spatial database
UnknownConceptException
- when the spatial relation is unknownjava.util.Vector findObjectsInRelationReferencedBy(java.util.Vector relationNames, java.lang.String subjectObjectID, java.lang.String referenceObjectID, float maxDistance) throws NotRegisteredException, UnknownConceptException
relationNames
- - URIs in the OWL ontology file(s) to the relation definition, for instance further-left, less-down, etc.subjectObjectID
- - id of the subject objectreferencedObjectID
- - id of the reference objectmaxDistance
- - maximum distance of the search
NotRegisteredException
- when the objects are not registered in spatial database
UnknownConceptException
- when the spatial relation is unknown
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |