001/** 002 * Copyright 2016 Tampere University of Technology, Pori Department 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package service.tut.pori.apilta.sensors; 017 018/** 019 * definitions for sensor service 020 * 021 */ 022public final class Definitions { 023 /* sql columns */ 024 /** task identifier */ 025 protected static final String COLUMN_TASK_ID = "task_id"; 026 027 /* data groups */ 028 /** data group for retrieving data point details */ 029 public static final String DATA_GROUP_DATA_POINTS = "data_points"; 030 031 /* data point keys */ 032 /** data point key */ 033 public static final String DATA_POINT_KEY_FILE_GUID = "file/guid"; 034 /** data point key */ 035 public static final String DATA_POINT_KEY_FILE_DETAILS_URL = "file/details/url"; 036 037 /* methods */ 038 /** implemented by front end */ 039 public static final String METHOD_CREATE_FILE = "createFile"; 040 /** implemented by front end */ 041 public static final String METHOD_CREATE_TASK = "createTask"; 042 /** implemented by front end */ 043 public static final String METHOD_MODIFY_TASK = "modifyTask"; 044 /** implemented by front end */ 045 public static final String METHOD_GET_MEASUREMENTS = "getMeasurements"; 046 047 /* parameters */ 048 /** service method parameter declaration */ 049 public static final String PARAMETER_MEASUREMENT_ID = "measurement_id"; 050 051 /* services */ 052 /** service name declaration */ 053 public static final String SERVICE_SENSORS = "sensors"; 054 055 /* task types */ 056 /** task type for generic data collection */ 057 public static final String TASK_TYPE_DATA_COLLECT = "gather"; 058 059 /** 060 * 061 */ 062 private Definitions(){ 063 // nothing needed 064 } 065}