org.universAAL.middleware.owl.supply
Class AbsLocation
java.lang.Object
org.universAAL.middleware.rdf.Resource
org.universAAL.middleware.rdf.FinalizedResource
org.universAAL.middleware.owl.ManagedIndividual
org.universAAL.middleware.owl.ComparableIndividual
org.universAAL.middleware.owl.supply.AbsLocation
- All Implemented Interfaces:
- Comparable
- Direct Known Subclasses:
- Location
public abstract class AbsLocation
- extends ComparableIndividual
A very abstract representation of locations just at a level needed by the
middleware. It is considered as crucial that in the realization of the
brokerage mechanisms, location is used as one of the non-functional
parameters for selecting a server or a client, e.g. being placed in a
location or having the smallest distance to a location.
By defining Location as a subclass of
ComparableIndividual
we are implicitly
defining a transitional property 'is in' with the following semantic:
- loc1 < loc2 ⇒ loc1 is in
loc2
- loc1 > loc2 ⇒ loc2 is in
loc1
- loc1 = loc2 ⇒ both of the above are true
However, it should be clear that not all locations are comparable with each
other; this implies that 'is in' defines just a partial order between
locations.
- Author:
- mtazari - Saied
Tazari, Carsten Stockloew
Field Summary |
static String |
MY_URI
The URI of the ontology class. |
Fields inherited from class org.universAAL.middleware.rdf.Resource |
ANON_URI_PREFIX, blockAddingTypes, isXMLLiteral, ns_delim_index, PROP_RDF_FIRST, PROP_RDF_REST, PROP_RDF_TYPE, PROP_RDFS_COMMENT, PROP_RDFS_LABEL, PROP_SERIALIZATION_FULL, PROP_SERIALIZATION_OPTIONAL, PROP_SERIALIZATION_REDUCED, PROP_SERIALIZATION_UNDEFINED, PROP_uAAL_INVOLVED_HUMAN_USER, props, RDF_EMPTY_LIST, RDF_NAMESPACE, RDFS_NAMESPACE, TYPE_RDF_LIST, TYPE_RDFS_CLASS, uAAL_NAMESPACE_PREFIX, uAAL_SERVICE_NAMESPACE, uAAL_VOCABULARY_NAMESPACE, uri |
Constructor Summary |
protected |
AbsLocation()
Constructor just for usage by de-serializers. |
protected |
AbsLocation(String uri)
Create an abstract location. |
Method Summary |
String |
getClassURI()
Get the class URI for this ManagedIndividual. |
abstract float |
getDistanceTo(AbsLocation other)
Returns the distance (meters) between the current location and the
argument location. |
Methods inherited from class org.universAAL.middleware.owl.ComparableIndividual |
compareTo, equal, getClassMaximum, getClassMaximum, getClassMinimum, getClassMinimum, getMaximum, getMinimum, getNext, getPrevious, greater, greaterEqual, less, lessEqual, ord |
Methods inherited from class org.universAAL.middleware.owl.ManagedIndividual |
checkCompatibility, checkMembership, copy, deepCopy, getClassRestrictionsOnProperty, getInstance, getNonAbstractSuperClasses, getNonabstractSuperClasses, getOntClassInfo, getPropSerializationType, getTypeURI, isRegisteredClassURI, isWellFormed, setProperty, setPropertyPathFromOffset, toManagedIndividual |
Methods inherited from class org.universAAL.middleware.rdf.FinalizedResource |
addType, getLocalName, getNamespace, getProperty, getPropertyURIs, getType, getTypes, getURI, hasQualifiedName, isAnon, numberOfProperties |
Methods inherited from class org.universAAL.middleware.rdf.Resource |
addMultiLangProp, asList, asList, asRDFList, changeProperty, equals, generateAnonURI, getDefaultLang, getFilename, getMultiLangProp, getOrConstructLabel, getResource, getResourceComment, getResourceLabel, getStaticFieldValue, hashCode, hasProperty, isAnon, isBlockingAddingTypes, isClosedCollection, isQualifiedName, literal, representsQualifiedURI, serializesAsXMLLiteral, setPropertyPath, setPropertyPath, setResourceComment, setResourceLabel, toString, toStringRecursive, toStringRecursive, unliteral |
MY_URI
public static final String MY_URI
- The URI of the ontology class.
- See Also:
- Constant Field Values
AbsLocation
protected AbsLocation(String uri)
- Create an abstract location.
- Parameters:
uri
- URI of the location.
AbsLocation
protected AbsLocation()
- Constructor just for usage by de-serializers. Do not use this constructor
within applications as it may lead to incomplete instances that cause
exceptions.
getClassURI
public String getClassURI()
- Description copied from class:
ManagedIndividual
- Get the class URI for this ManagedIndividual. All non-abstract subclasses
MUST overwrite this method!
- Overrides:
getClassURI
in class ComparableIndividual
- Returns:
- The class URI.
- See Also:
ManagedIndividual.getClassURI()
getDistanceTo
public abstract float getDistanceTo(AbsLocation other)
- Returns the distance (meters) between the current location and the
argument location.
Copyright © 2014 universAAL Consortium. All Rights Reserved.