View Javadoc

1   /*
2   	Copyright 2008-2014 ITACA-TSB, http://www.tsb.upv.es
3   	Instituto Tecnologico de Aplicaciones de Comunicacion 
4   	Avanzadas - Grupo Tecnologias para la Salud y el 
5   	Bienestar (TSB)
6   	
7   	See the NOTICE file distributed with this work for additional 
8   	information regarding copyright ownership
9   	
10  	Licensed under the Apache License, Version 2.0 (the "License");
11  	you may not use this file except in compliance with the License.
12  	You may obtain a copy of the License at
13  	
14  	  http://www.apache.org/licenses/LICENSE-2.0
15  	
16  	Unless required by applicable law or agreed to in writing, software
17  	distributed under the License is distributed on an "AS IS" BASIS,
18  	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  	See the License for the specific language governing permissions and
20  	limitations under the License.
21   */
22  package org.universAAL.ontology.device;
23  
24  public abstract class Sensor extends ValueDevice {
25      public static final String MY_URI = DeviceOntology.NAMESPACE + "Sensor";
26  
27      public static final String PROP_MEASURED_VALUE = DeviceOntology.NAMESPACE + "measuredValue";
28      
29      public Sensor() {
30  	super();
31      }
32  
33      public Sensor(String uri) {
34  	super(uri);
35      }
36  
37      public String getClassURI() {
38  	return MY_URI;
39      }
40  
41      public int getPropSerializationType(String arg0) {
42  	return PROP_SERIALIZATION_FULL;
43      }
44  
45      public boolean isWellFormed() {
46  	return true;
47      }
48  }