org.universAAL.middleware.context.owl
Class ContextProviderType

Package class diagram package ContextProviderType
java.lang.Object
  extended by org.universAAL.middleware.rdf.Resource
      extended by org.universAAL.middleware.rdf.FinalizedResource
          extended by org.universAAL.middleware.owl.ManagedIndividual
              extended by org.universAAL.middleware.context.owl.ContextProviderType

public class ContextProviderType
extends ManagedIndividual

An enumeration for indicating the type of a context provider, which may be a controller, a gauge, or a reasoner. A controller is a context provider that has the control over some context element and hence can report about changes in its/their state(s) or answer queries about that. A gauge is a sensor wrapper; sensors measure real things, such as weight, temperature, the angle to a satellite, etc. A reasoner uses different sources (including other context providers) and infers the state of a context element using different methods, such as aggregation, statistical analysis, and logical deduction, to name a few.

Author:
mtazari - Saied Tazari

Field Summary
static ContextProviderType controller
          The type of a controller as an instance of this class.
static int CONTROLLER
          The ordering number for controllers, needed for the implementation of the enumeration.
static ContextProviderType gauge
          The type of a gauge as an instance of this class.
static int GAUGE
          The ordering number for gauges, needed for the implementation of the enumeration.
static String MY_URI
           
static ContextProviderType reasoner
          The type of a reasoner as an instance of this class.
static int REASONER
          The ordering number for reasoners, needed for the implementation of the enumeration.
 
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
 
Method Summary
 String getClassURI()
          Get the class URI for this ManagedIndividual.
 int getPropSerializationType(String propURI)
          The class has no property; any "imaginary" property can be ignored!
static ContextProviderType getProviderByOrder(int order)
           
 boolean isWellFormed()
          The internal instances created above are always well-formed.
 String name()
          Returns the local name used for constructing the URI of this instance.
 int ord()
          Returns the order of this instance that can be useful for switch-case statements.
 boolean setProperty(String propURI, Object o)
          The class has no property, so ignore the call!
static ContextProviderType valueOf(String name)
           
 
Methods inherited from class org.universAAL.middleware.owl.ManagedIndividual
checkCompatibility, checkMembership, copy, deepCopy, getClassRestrictionsOnProperty, getInstance, getNonAbstractSuperClasses, getNonabstractSuperClasses, getOntClassInfo, getTypeURI, isRegisteredClassURI, 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

MY_URI

public static final String MY_URI
See Also:
Constant Field Values

CONTROLLER

public static final int CONTROLLER
The ordering number for controllers, needed for the implementation of the enumeration.

See Also:
Constant Field Values

GAUGE

public static final int GAUGE
The ordering number for gauges, needed for the implementation of the enumeration.

See Also:
Constant Field Values

REASONER

public static final int REASONER
The ordering number for reasoners, needed for the implementation of the enumeration.

See Also:
Constant Field Values

controller

public static final ContextProviderType controller
The type of a controller as an instance of this class.


gauge

public static final ContextProviderType gauge
The type of a gauge as an instance of this class.


reasoner

public static final ContextProviderType reasoner
The type of a reasoner as an instance of this class.

Method Detail

getProviderByOrder

public static ContextProviderType getProviderByOrder(int order)

valueOf

public static final ContextProviderType valueOf(String name)

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 ManagedIndividual
Returns:
The class URI.

getPropSerializationType

public int getPropSerializationType(String propURI)
The class has no property; any "imaginary" property can be ignored!

Specified by:
getPropSerializationType in class ManagedIndividual
See Also:
ManagedIndividual.getPropSerializationType(String).

isWellFormed

public boolean isWellFormed()
The internal instances created above are always well-formed.

Overrides:
isWellFormed in class ManagedIndividual
See Also:
ManagedIndividual.isWellFormed().

name

public String name()
Returns the local name used for constructing the URI of this instance.


ord

public int ord()
Returns the order of this instance that can be useful for switch-case statements.


setProperty

public boolean setProperty(String propURI,
                           Object o)
The class has no property, so ignore the call!

Overrides:
setProperty in class ManagedIndividual
Returns:
true if the property changed as a result of the call
See Also:
ManagedIndividual.setProperty(String, Object).


Copyright © 2014 universAAL Consortium. All Rights Reserved.