org.universAAL.middleware.service.owls.profile
Class NumberOfSamples

Package class diagram package NumberOfSamples
java.lang.Object
  extended by org.universAAL.middleware.rdf.Resource
      extended by org.universAAL.middleware.rdf.FinalizedResource
          extended by org.universAAL.middleware.service.owls.profile.ProfileParameter
              extended by org.universAAL.middleware.service.owls.profile.NumberOfSamples

public class NumberOfSamples
extends ProfileParameter

The superclass for profile parameters that deal with counting in statistical calculations, hence the restriction for the property 'sParameter' is not supported by this class but 'valueData' will be mandatory accepting a single 'xsd:nonNegativeInteger'. For the sake of well-formedness, serialization type of properties and setting property values, it relies on the default implementations provided by the superclasses.

Author:
mtazari - Saied Tazari

Field Summary
static String MY_URI
           
 
Fields inherited from class org.universAAL.middleware.service.owls.profile.ProfileParameter
PROP_OWLS_PROFILE_S_PARAMETER, PROP_OWLS_PROFILE_SERVICE_PARAMETER_NAME, PROP_uAAL_PARAMETER_VALUE_DATA
 
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
NumberOfSamples(int value)
           
NumberOfSamples(String uri, int value)
           
 
Method Summary
 int getNumberOfSamples()
          Returns the number of samples and -1 if an error occurs.
 boolean setProperty(String propURI, Object value)
          This method sets the property of with .
 
Methods inherited from class org.universAAL.middleware.service.owls.profile.ProfileParameter
getName, getPropSerializationType, getValue, isWellFormed
 
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, copy, deepCopy, equals, generateAnonURI, getDefaultLang, getFilename, getMultiLangProp, getOrConstructLabel, getResource, getResourceComment, getResourceLabel, getStaticFieldValue, hashCode, hasProperty, isAnon, isBlockingAddingTypes, isClosedCollection, isQualifiedName, literal, representsQualifiedURI, serializesAsXMLLiteral, setPropertyPath, setPropertyPath, setPropertyPathFromOffset, 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
Constructor Detail

NumberOfSamples

public NumberOfSamples(int value)

NumberOfSamples

public NumberOfSamples(String uri,
                       int value)
Method Detail

getNumberOfSamples

public int getNumberOfSamples()
Returns the number of samples and -1 if an error occurs.

Returns:
number of samples

setProperty

public boolean setProperty(String propURI,
                           Object value)
This method sets the property of with .

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


Copyright © 2014 universAAL Consortium. All Rights Reserved.