org.universAAL.support.utils.context.low
Class Provider
java.lang.Object
org.universAAL.middleware.rdf.Resource
org.universAAL.middleware.rdf.FinalizedResource
org.universAAL.middleware.owl.ManagedIndividual
org.universAAL.middleware.context.owl.ContextProvider
org.universAAL.support.utils.context.low.Provider
public class Provider
- extends ContextProvider
Class that can be used to create a Context Provider descriptor with the most
commonly used types of simple Context Event Patterns. The provided
constructors allow to automatically give the Provider the typical
restrictions over the basic mandatory triple of the provided context events:
the subject, the predicate and the object, with the possibility of leaving
them blank (no restriction) by using null. Because the class extends
ContextProvider it can be used as well in the native API, and the other way
around to use the native API to apply further restrictions over the
Provider.
- Author:
- alfiva
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 |
Provider(String uri)
Simple constructor to create a gauge Context Provider with no
restrictions on the provided events. |
Provider(String uri,
ContextProviderType type)
Simple constructor to create a Context Provider of a given type with no
restrictions on the provided events. |
Provider(String uri,
ContextProviderType type,
ContextEventPattern[] events)
Simple constructor to create a Context Provider of a given type with the
given restrictions on the provided events. |
Provider(String uri,
ContextProviderType type,
ManagedIndividual subj,
String predicate,
String objTypeURI)
Simple constructor to create a Context Provider of a given type with the
given restrictions on the subject, the predicate, and the object of the
provided events. |
Provider(String uri,
ContextProviderType type,
String subjTypeURI,
String predicate,
String objTypeURI)
Simple constructor to create a Context Provider of a given type with the
given restrictions on the subject, the predicate, and the object of the
provided events. |
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 |
Provider
public Provider(String uri)
- Simple constructor to create a gauge Context Provider with no
restrictions on the provided events. This means the provided events can
be of any type.
- Parameters:
uri
- The URI that identifies the Context Provider.
Provider
public Provider(String uri,
ContextProviderType type)
- Simple constructor to create a Context Provider of a given type with no
restrictions on the provided events. This means the provided events can
be of any type.
- Parameters:
uri
- The URI that identifies the Context Provider.type
- The type of Context Provider, one of Gauge, Controller or
Reasoner
Provider
public Provider(String uri,
ContextProviderType type,
ContextEventPattern[] events)
- Simple constructor to create a Context Provider of a given type with the
given restrictions on the provided events.
- Parameters:
uri
- The URI that identifies the Context Provider.type
- The type of Context Provider, one of Gauge, Controller or
Reasoner.events
- Array of Patterns describing the provided events, as normally
used in the native API.
Provider
public Provider(String uri,
ContextProviderType type,
String subjTypeURI,
String predicate,
String objTypeURI)
- Simple constructor to create a Context Provider of a given type with the
given restrictions on the subject, the predicate, and the object of the
provided events.
- Parameters:
uri
- The URI that identifies the Context Provider.type
- The type of Context Provider, one of Gauge, Controller or
ReasonersubjTypeURI
- The type URI that the provided events subject must have. Null
for any.predicate
- The exact predicate that the provided events must equal. Null
for any.objTypeURI
- The type URI that the provided events object must have. Null
for any.
Provider
public Provider(String uri,
ContextProviderType type,
ManagedIndividual subj,
String predicate,
String objTypeURI)
- Simple constructor to create a Context Provider of a given type with the
given restrictions on the subject, the predicate, and the object of the
provided events.
- Parameters:
uri
- The URI that identifies the Context Provider.type
- The type of Context Provider, one of Gauge, Controller or
Reasonersubj
- The exact instance that the provided events subject must
equal. Null for any.predicate
- The exact predicate that the provided events must equal. Null
for any.objTypeURI
- The type URI that the provided events object must have. Null
for any.
Copyright © 2014 universAAL Consortium. All Rights Reserved.