|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.middleware.rdf.Resource
org.universAAL.middleware.rdf.FinalizedResource
org.universAAL.middleware.owl.ManagedIndividual
org.universAAL.middleware.owl.ComparableIndividual
public abstract class ComparableIndividual
Represents the class of individuals that can be compared to other individuals
for finding out their (partial) order. The conventions described for the
class hierarchy rooted at
ManagedIndividual
; in particular, the
subclasses must override the following non-final static methods:
getMaximum()
and getMinimum()
.
Field Summary | |
---|---|
static String |
MY_URI
|
static int |
NON_COMPARABLE_INDIVIDUALS
To be used in the implementation of Comparable.compareTo(Object) , if the passed parameter
is not comparable with the current individual. |
Fields inherited from class org.universAAL.middleware.owl.ManagedIndividual |
---|
OWL_NAMESPACE, TYPE_OWL_INDIVIDUAL, TYPE_OWL_THING |
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 |
ComparableIndividual()
|
protected |
ComparableIndividual(String uri)
|
Method Summary | |
---|---|
abstract int |
compareTo(Object arg0)
Compare this object to the given object. |
boolean |
equal(Object other)
Determines if this object equals the given object. |
ComparableIndividual |
getClassMaximum()
|
static ComparableIndividual |
getClassMaximum(Class claz)
|
ComparableIndividual |
getClassMinimum()
|
static ComparableIndividual |
getClassMinimum(Class claz)
|
String |
getClassURI()
Get the class URI for this ManagedIndividual. |
static ComparableIndividual |
getMaximum()
Returns the "largest" instance in this class, if it exists. |
static ComparableIndividual |
getMinimum()
Returns the "smallest" instance in this class, if it exists. |
abstract ComparableIndividual |
getNext()
Get the next value according to the total order of this comparable individual. |
abstract ComparableIndividual |
getPrevious()
Get the previous value according to the total order of this comparable individual. |
boolean |
greater(Object other)
Determines if this object is greater than the given object. |
boolean |
greaterEqual(Object other)
Determines if this object is greater than or equals the given object. |
boolean |
less(Object other)
Determines if this object is smaller than the given object. |
boolean |
lessEqual(Object other)
Determines if this object is smaller than or equals the given object. |
abstract int |
ord()
If there is a total strict order between the class members, then it must return the "serial number" of this instance, otherwise Integer.MIN_VALUE must be returned. |
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NON_COMPARABLE_INDIVIDUALS
Comparable.compareTo(Object)
, if the passed parameter
is not comparable with the current individual.
public static final String MY_URI
Constructor Detail |
---|
protected ComparableIndividual()
protected ComparableIndividual(String uri)
Method Detail |
---|
public String getClassURI()
ManagedIndividual
getClassURI
in class ManagedIndividual
public static final ComparableIndividual getClassMaximum(Class claz)
public static final ComparableIndividual getClassMinimum(Class claz)
public static ComparableIndividual getMaximum()
public static ComparableIndividual getMinimum()
public abstract int compareTo(Object arg0)
compareTo
in interface Comparable
NON_COMPARABLE_INDIVIDUALS
if two
locations are not comparable.public final ComparableIndividual getClassMaximum()
public final ComparableIndividual getClassMinimum()
public abstract ComparableIndividual getNext()
public abstract ComparableIndividual getPrevious()
public final boolean equal(Object other)
public final boolean greater(Object other)
public final boolean greaterEqual(Object other)
public final boolean less(Object other)
public final boolean lessEqual(Object other)
public abstract int ord()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |