View Javadoc

1   /*
2        Copyright 2010-2014 AIT Austrian Institute of Technology GmbH
3   	 http://www.ait.ac.at
4        
5        See the NOTICE file distributed with this work for additional
6        information regarding copyright ownership
7   
8        Licensed under the Apache License, Version 2.0 (the "License");
9        you may not use this file except in compliance with the License.
10       You may obtain a copy of the License at
11  
12         http://www.apache.org/licenses/LICENSE-2.0
13  
14       Unless required by applicable law or agreed to in writing, software
15       distributed under the License is distributed on an "AS IS" BASIS,
16       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17       See the License for the specific language governing permissions and
18       limitations under the License.
19  */
20  
21  package org.universAAL.ontology.activityhub;
22  
23  import org.universAAL.middleware.owl.ManagedIndividual;
24  import org.universAAL.ontology.ActivityHubOntology;
25  
26  /**
27   * Intermediate concept. Base class for all SensorEvent classes.
28   * 
29   * @author Thomas Fuxreiter (foex@gmx.at)
30   */
31  public abstract class ActivityHubSensorEvent extends ManagedIndividual {
32  
33      public static final String MY_URI = ActivityHubOntology.NAMESPACE
34  	    + "ActivityHubSensorEvent";
35  
36      public ActivityHubSensorEvent() {
37  	super();
38      }
39  
40      public ActivityHubSensorEvent(String uri) {
41  	super(uri);
42      }
43  
44      /* MUST be defined! otherwise the URI of the parent class is returned */
45      public String getClassURI() {
46  	return MY_URI;
47      }
48  
49      /* following 2 methods SHOULD be overwritten */
50  
51      /*
52       * defines which part of this concept is serialized e.g. only parts of this
53       * concept should be passed
54       */
55      public int getPropSerializationType(String propURI) {
56  	/*
57  	 * set OPTIONAL if the properties can be ignored or the class has no
58  	 * property set FULL if there are properties here set to FULL for all
59  	 * deriving classes
60  	 */
61  	return PROP_SERIALIZATION_FULL;
62      }
63  
64      /* for testing return true */
65      /* variables could be checked here */
66      public boolean isWellFormed() {
67  	return true;
68      }
69  
70      // public abstract ActivityHubSensorEvent getEventByOrder(int order);
71  
72  }