org.universAAL.support.utils.context.low
Class Provider

Package class diagram package Provider
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.ContextProvider
                  extended by 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

Field Summary
 
Fields inherited from class org.universAAL.middleware.context.owl.ContextProvider
MY_URI, PROP_CONTEXT_PROVIDED_EVENTS, PROP_CONTEXT_PROVIDER_TYPE, PROP_CONTEXT_SOURCE
 
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
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.
 
Method Summary
 
Methods inherited from class org.universAAL.middleware.context.owl.ContextProvider
getClassURI, getContextSources, getPropSerializationType, getProvidedEvents, getProviderType, isWellFormed, setContextSources, setProperty, setProvidedEvents, setType
 
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
 

Constructor Detail

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 Reasoner
subjTypeURI - 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 Reasoner
subj - 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.