ParameterTree.java
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2011 Google Inc.
00003  * 
00004  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
00005  * use this file except in compliance with the License. You may obtain a copy of
00006  * the License at
00007  * 
00008  * http://www.apache.org/licenses/LICENSE-2.0
00009  * 
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00012  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
00013  * License for the specific language governing permissions and limitations under
00014  * the License.
00015  */
00016 
00017 package org.ros.node.parameter;
00018 
00019 import org.ros.exception.ParameterClassCastException;
00020 import org.ros.exception.ParameterNotFoundException;
00021 import org.ros.internal.node.server.ParameterServer;
00022 import org.ros.namespace.GraphName;
00023 
00024 import java.util.Collection;
00025 import java.util.List;
00026 import java.util.Map;
00027 
00044 public interface ParameterTree {
00045 
00055   boolean getBoolean(GraphName name);
00056 
00060   boolean getBoolean(String name);
00061 
00072   boolean getBoolean(GraphName name, boolean defaultValue);
00073 
00077   boolean getBoolean(String name, boolean defaultValue);
00078 
00088   int getInteger(GraphName name);
00089 
00093   int getInteger(String name);
00094 
00105   int getInteger(GraphName name, int defaultValue);
00106 
00110   int getInteger(String name, int defaultValue);
00111 
00121   double getDouble(GraphName name);
00122 
00126   double getDouble(String name);
00127 
00138   double getDouble(GraphName name, double defaultValue);
00139 
00143   double getDouble(String name, double defaultValue);
00144 
00155   String getString(GraphName name);
00156 
00160   String getString(String name);
00161 
00172   String getString(GraphName name, String defaultValue);
00173 
00177   String getString(String name, String defaultValue);
00178 
00188   List<?> getList(GraphName name);
00189 
00193   List<?> getList(String name);
00194 
00205   List<?> getList(GraphName name, List<?> defaultValue);
00206 
00210   List<?> getList(String name, List<?> defaultValue);
00211 
00221   Map<?, ?> getMap(GraphName name);
00222 
00226   Map<?, ?> getMap(String name);
00227 
00238   Map<?, ?> getMap(GraphName name, Map<?, ?> defaultValue);
00239 
00243   Map<?, ?> getMap(String name, Map<?, ?> defaultValue);
00244 
00251   void set(GraphName name, boolean value);
00252 
00256   void set(String name, boolean value);
00257 
00264   void set(GraphName name, int value);
00265 
00269   void set(String name, int value);
00270 
00277   void set(GraphName name, double value);
00278 
00282   void set(String name, double value);
00283 
00290   void set(GraphName name, String value);
00291 
00295   void set(String name, String value);
00296 
00303   void set(GraphName name, List<?> value);
00304 
00308   void set(String name, List<?> value);
00309 
00316   void set(GraphName name, Map<?, ?> value);
00317 
00321   void set(String name, Map<?, ?> value);
00322 
00329   boolean has(GraphName name);
00330 
00334   boolean has(String name);
00335 
00342   void delete(GraphName name);
00343 
00347   void delete(String name);
00348 
00359   GraphName search(GraphName name);
00360 
00364   GraphName search(String name);
00365 
00369   Collection<GraphName> getNames();
00370 
00380   void addParameterListener(GraphName name, ParameterListener listener);
00381 
00385   void addParameterListener(String name, ParameterListener listener);
00386 }


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:49