REInterface.java
Go to the documentation of this file.
00001 /* \file REInterface.java
00002  * \brief Interface definition for the RoboEarth DB
00003  *
00004  * The interface definition for interacting with the RoboEarth DB. It provides 
00005  * means to download/upload/update/delete/query action recipes, object models 
00006  * and environments.
00007  * 
00008  * This file is part of the RoboEarth ROS re_comm_core package.
00009  * 
00010  * It was originally created for <a href="http://www.roboearth.org/">RoboEarth</a>.
00011  * The research leading to these results has received funding from the 
00012  * European Union Seventh Framework Programme FP7/2007-2013 
00013  * under grant agreement no248942 RoboEarth.
00014  *
00015  * Copyright (C) 2010 by 
00016  * <a href=" mailto:perzylo@cs.tum.edu">Alexander Perzylo</a>
00017  * Technische Universitaet Muenchen
00018  * 
00019  * Redistribution and use in source and binary forms, with or without
00020  * modification, are permitted provided that the following conditions are met:
00021  * 
00022  *    <UL>
00023  *     <LI> Redistributions of source code must retain the above copyright
00024  *       notice, this list of conditions and the following disclaimer.
00025  *     <LI> Redistributions in binary form must reproduce the above copyright
00026  *       notice, this list of conditions and the following disclaimer in the
00027  *       documentation and/or other materials provided with the distribution.
00028  *     <LI> Neither the name of Willow Garage, Inc. nor the names of its
00029  *       contributors may be used to endorse or promote products derived from
00030  *       this software without specific prior written permission.
00031  *    </UL>
00032  * 
00033  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00034  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00035  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00036  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
00037  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
00038  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
00039  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00040  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00041  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
00042  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00043  * POSSIBILITY OF SUCH DAMAGE.
00044  *
00045  * \author Alexander Perzylo
00046  * \version 1.0
00047  * \date 2010
00048  * \image html http://www.roboearth.org/sites/default/files/RoboEarth.org_logo.gif
00049  * \image latex http://www.roboearth.org/sites/default/files/RoboEarth.org_logo.gif
00050  */
00051 package roboearth.wp5.conn;
00052 
00053 import java.io.File;
00054 import java.util.ArrayList;
00055 
00056 import org.semanticweb.owlapi.model.OWLOntology;
00057 
00058 public interface REInterface {
00059 
00066         public String requestActionRecipe(String uid);
00067 
00082         public String requestEnvironment(String uid, ArrayList<String> outFilenames, 
00083                         ArrayList<String> outFileURLs);
00084 
00099         public String requestObject(String uid, ArrayList<String> outFilenames, 
00100                         ArrayList<String> outFileURLs);
00101         
00108         public String requestRobot(String uid);
00109         
00119         public File requestObjectBinaryFile(String objectUID, String filename, String targetPath);
00120 
00129         public byte[] requestObjectBinaryFile(String objectUID, String filename);
00130         
00140         public File requestEnvironmentBinaryFile(String envUID, String filename, String targetPath);
00141         
00150         public byte[] requestEnvironmentBinaryFile(String envUID, String filename);
00151         
00165         public boolean submitActionRecipe(OWLOntology actionRecipe,
00166                         String cls, String id, String description);     
00167         
00179         public boolean submitActionRecipe(String actionRecipe,
00180                         String cls, String id, String description);
00181 
00194         public boolean submitEnvironment(OWLOntology env, String cls, String id,
00195                         String description);
00196 
00197         @Deprecated
00198         public boolean submitEnvironment(OWLOntology env, String cls, String id, 
00199                         String description, ArrayList<File> binaryFiles);
00200         
00201         @Deprecated
00202         public boolean submitEnvironment(OWLOntology env, String cls, String id, 
00203                         String description, ArrayList<byte[]> binaryData, 
00204                         ArrayList<String> filenames);
00205         
00216         public boolean submitEnvironment(String env, String cls, String id,
00217                         String description);
00218 
00219         public boolean submitEnvironment(String env, String cls, String id, 
00220                         String description, ArrayList<File> binaryFiles);
00221         
00222         public boolean submitEnvironment(String env, String cls, String id, 
00223                         String description, ArrayList<byte[]> binaryData, 
00224                         ArrayList<String> filenames);
00225 
00239         public boolean submitObject(OWLOntology objectOwl, String cls, String id, 
00240                         String description);
00241         
00252         public boolean submitObject(String objectOwl, String cls, String id, 
00253                         String description);
00254 
00271         public boolean submitObject(OWLOntology objectOwl, String cls, String id, 
00272                         String description, ArrayList<File> binaryFiles);
00273         
00287         public boolean submitObject(String objectOwl, String cls, String id, 
00288                         String description, ArrayList<File> binaryFiles);
00289 
00308         public boolean submitObject(OWLOntology objectOwl, String cls, String id, 
00309                         String description, ArrayList<byte[]> binaryData, 
00310                         ArrayList<String> filenames);
00311         
00327         public boolean submitObject(String objectOwl, String cls, String id, 
00328                         String description, ArrayList<byte[]> binaryData, 
00329                         ArrayList<String> filenames);
00330         
00342         public boolean submitObjectBinaryFile(String uid, File file);
00343 
00357         public boolean submitObjectBinaryFile(String uid, byte[] data, String filename);
00358         
00359         public boolean submitEnvironmentBinaryFile(String uid, File file);
00360         
00361         public boolean submitEnvironmentBinaryFile(String uid, byte[] data, String filename);
00362         
00370         public boolean deleteActionRecipe(String uid);
00371 
00379         public boolean deleteEnvironment(String uid);
00380 
00390         public boolean deleteObject(String uid);
00391 
00402         public boolean deleteObjectBinaryFile(String uid, String filename);
00403         
00414         public boolean deleteEnvironmentBinaryFile(String uid, String filename);
00415         
00424         public String[] searchActionRecipes(String searchID, ArrayList<String> outUIDs);
00425         
00442         public String[] searchEnvironments(String searchID, ArrayList<String> outUIDs, 
00443                         ArrayList<ArrayList<String>> outFilenames, 
00444                         ArrayList<ArrayList<String>> outFileURLs);
00445         
00463         public String[] searchObjects(String searchID, ArrayList<String> outUIDs, 
00464                         ArrayList<ArrayList<String>> outFilenames, 
00465                         ArrayList<ArrayList<String>> outFileURLs);
00466         
00474         public String queryActionRecipeDB(String seRQLquery);
00475 
00483         public String queryEnvironmentDB(String seRQLquery);
00484         
00492         public String queryObjectDB(String seRQLquery);
00493 
00507         public boolean updateActionRecipe(String uid, OWLOntology actionRecipe, String description);
00508 
00520         public boolean updateActionRecipe(String uid, String actionRecipe, String description);
00521 
00534         public boolean updateEnvironment(String uid, OWLOntology env, String description);
00535 
00546         public boolean updateEnvironment(String uid, String env, String description);
00547 
00561         public boolean updateObject(String uid, OWLOntology objectOwl, String description);
00562 
00573         public boolean updateObject(String uid, String objectOwl, String description);
00574         
00583         public boolean updateObjectBinaryFile(String uid, File file);
00584         
00596         public boolean updateObjectBinaryFile(String uid, byte[] data, String filename);
00597         
00606         public boolean updateEnvironmentBinaryFile(String uid, File file);
00607         
00619         public boolean updateEnvironmentBinaryFile(String uid, byte[] data, String filename);
00620 
00621         
00622         public ArrayList<byte[]> request2dMap(String envUid, OWLOntology srdl, String baseScannerLink, String simpleMapNameWithoutExt);
00623         public ArrayList<byte[]> requestProjected2dMap(String envUid, double minZ, double maxZ, String simpleMapNameWithoutExt);
00624 
00625 }


re_comm_core
Author(s): Alexander Perzylo
autogenerated on Sun Jan 5 2014 11:29:33