Public Member Functions
org.ros.node.parameter.ParameterTree Interface Reference
Inheritance diagram for org.ros.node.parameter.ParameterTree:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void addParameterListener (GraphName name, ParameterListener listener)
void addParameterListener (String name, ParameterListener listener)
void delete (GraphName name)
void delete (String name)
boolean getBoolean (GraphName name)
boolean getBoolean (String name)
boolean getBoolean (GraphName name, boolean defaultValue)
boolean getBoolean (String name, boolean defaultValue)
double getDouble (GraphName name)
double getDouble (String name)
double getDouble (GraphName name, double defaultValue)
double getDouble (String name, double defaultValue)
int getInteger (GraphName name)
int getInteger (String name)
int getInteger (GraphName name, int defaultValue)
int getInteger (String name, int defaultValue)
List<?> getList (GraphName name)
List<?> getList (String name)
List<?> getList (GraphName name, List<?> defaultValue)
List<?> getList (String name, List<?> defaultValue)
Map<?,?> getMap (GraphName name)
Map<?,?> getMap (String name)
Map<?,?> getMap (GraphName name, Map<?,?> defaultValue)
Map<?,?> getMap (String name, Map<?,?> defaultValue)
Collection< GraphNamegetNames ()
String getString (GraphName name)
String getString (String name)
String getString (GraphName name, String defaultValue)
String getString (String name, String defaultValue)
boolean has (GraphName name)
boolean has (String name)
GraphName search (GraphName name)
GraphName search (String name)
void set (GraphName name, boolean value)
void set (String name, boolean value)
void set (GraphName name, int value)
void set (String name, int value)
void set (GraphName name, double value)
void set (String name, double value)
void set (GraphName name, String value)
void set (String name, String value)
void set (GraphName name, List<?> value)
void set (String name, List<?> value)
void set (GraphName name, Map<?,?> value)
void set (String name, Map<?,?> value)

Detailed Description

Provides access to a ParameterServer.

A parameter server is a shared, multi-variate dictionary that is accessible via network APIs. Nodes use this server to store and retrieve parameters at runtime. As it is not designed for high-performance, it is best used for static, non-binary data such as configuration parameters. It is meant to be globally viewable so that tools can easily inspect the configuration state of the system and modify if necessary.

See also:
Parameter server documentation
Author:
damonkohler@google.com (Damon Kohler)

Definition at line 44 of file ParameterTree.java.


Member Function Documentation

Subscribes to changes to the specified parameter.

Parameters:
namethe parameter name to subscribe to
listenera ParameterListener that will be called when the subscribed parameter changes

Implemented in org.ros.node.AnonymousParmeterTree, and org.ros.internal.node.parameter.DefaultParameterTree.

Deletes a specified parameter.

Parameters:
namethe parameter name

Implemented in org.ros.node.AnonymousParmeterTree, and org.ros.internal.node.parameter.DefaultParameterTree.

Parameters:
namethe parameter name
Returns:
the parameter value
Exceptions:
ParameterNotFoundExceptionif the parameter is not found
ParameterClassCastExceptionif the parameter is not the expected type

Implemented in org.ros.internal.node.parameter.DefaultParameterTree, and org.ros.node.AnonymousParmeterTree.

boolean org.ros.node.parameter.ParameterTree.getBoolean ( GraphName  name,
boolean  defaultValue 
)
Parameters:
namethe parameter name
defaultValuethe default value
Returns:
the parameter value or the default value if the parameter does not exist
Exceptions:
ParameterClassCastExceptionif the parameter exists and is not the expected type

Implemented in org.ros.internal.node.parameter.DefaultParameterTree, and org.ros.node.AnonymousParmeterTree.

boolean org.ros.node.parameter.ParameterTree.getBoolean ( String  name,
boolean  defaultValue 
)
Parameters:
namethe parameter name
Returns:
the parameter value
Exceptions:
ParameterNotFoundExceptionif the parameter is not found
ParameterClassCastExceptionif the parameter is not the expected type

Implemented in org.ros.internal.node.parameter.DefaultParameterTree, and org.ros.node.AnonymousParmeterTree.

double org.ros.node.parameter.ParameterTree.getDouble ( GraphName  name,
double  defaultValue 
)
Parameters:
namethe parameter name
defaultValuethe default value
Returns:
the parameter value or the default value if the parameter does not exist
Exceptions:
ParameterClassCastExceptionif the parameter exists and is not the expected type

Implemented in org.ros.internal.node.parameter.DefaultParameterTree, and org.ros.node.AnonymousParmeterTree.

double org.ros.node.parameter.ParameterTree.getDouble ( String  name,
double  defaultValue 
)
Parameters:
namethe parameter name
Returns:
the parameter value
Exceptions:
ParameterNotFoundExceptionif the parameter is not found
ParameterClassCastExceptionif the parameter is not the expected type

Implemented in org.ros.internal.node.parameter.DefaultParameterTree, and org.ros.node.AnonymousParmeterTree.

int org.ros.node.parameter.ParameterTree.getInteger ( GraphName  name,
int  defaultValue 
)
Parameters:
namethe parameter name
defaultValuethe default value
Returns:
the parameter value or the default value if the parameter does not exist
Exceptions:
ParameterClassCastExceptionif the parameter exists and is not the expected type

Implemented in org.ros.internal.node.parameter.DefaultParameterTree, and org.ros.node.AnonymousParmeterTree.

int org.ros.node.parameter.ParameterTree.getInteger ( String  name,
int  defaultValue 
)
Parameters:
namethe parameter name
Returns:
the parameter value
Exceptions:
ParameterNotFoundExceptionif the parameter is not found
ParameterClassCastExceptionif the parameter is not the expected type

Implemented in org.ros.internal.node.parameter.DefaultParameterTree, and org.ros.node.AnonymousParmeterTree.

List<?> org.ros.node.parameter.ParameterTree.getList ( GraphName  name,
List<?>  defaultValue 
)
Parameters:
namethe parameter name
defaultValuethe default value
Returns:
the parameter value or the default value if the parameter does not exist
Exceptions:
ParameterClassCastExceptionif the parameter exists and is not the expected type

Implemented in org.ros.internal.node.parameter.DefaultParameterTree, and org.ros.node.AnonymousParmeterTree.

List<?> org.ros.node.parameter.ParameterTree.getList ( String  name,
List<?>  defaultValue 
)
See also:
#getList(GraphName, List)

Implemented in org.ros.internal.node.parameter.DefaultParameterTree, and org.ros.node.AnonymousParmeterTree.

Parameters:
namethe parameter name
Returns:
the parameter value
Exceptions:
ParameterNotFoundExceptionif the parameter is not found
ParameterClassCastExceptionif the parameter is not the expected type

Implemented in org.ros.internal.node.parameter.DefaultParameterTree, and org.ros.node.AnonymousParmeterTree.

Map<?, ?> org.ros.node.parameter.ParameterTree.getMap ( String  name)
Map<?, ?> org.ros.node.parameter.ParameterTree.getMap ( GraphName  name,
Map<?,?>  defaultValue 
)
Parameters:
namethe parameter name
defaultValuethe default value
Returns:
the parameter value or the default value if the parameter does not exist
Exceptions:
ParameterClassCastExceptionif the parameter exists and is not the expected type

Implemented in org.ros.internal.node.parameter.DefaultParameterTree, and org.ros.node.AnonymousParmeterTree.

Map<?, ?> org.ros.node.parameter.ParameterTree.getMap ( String  name,
Map<?,?>  defaultValue 
)
Returns:
all known parameter names

Implemented in org.ros.node.AnonymousParmeterTree, and org.ros.internal.node.parameter.DefaultParameterTree.

Parameters:
namethe parameter name
Returns:
the parameter value:w
Exceptions:
ParameterNotFoundExceptionif the parameter is not found
ParameterClassCastExceptionif the parameter is not the expected type

Implemented in org.ros.internal.node.parameter.DefaultParameterTree, and org.ros.node.AnonymousParmeterTree.

String org.ros.node.parameter.ParameterTree.getString ( GraphName  name,
String  defaultValue 
)
Parameters:
namethe parameter name
defaultValuethe default value
Returns:
the parameter value or the default value if the parameter does not exist
Exceptions:
ParameterClassCastExceptionif the parameter exists and is not the expected type

Implemented in org.ros.internal.node.parameter.DefaultParameterTree, and org.ros.node.AnonymousParmeterTree.

String org.ros.node.parameter.ParameterTree.getString ( String  name,
String  defaultValue 
)
Parameters:
namethe parameter name
Returns:
 true 
if a parameter with the given name exists,
 false 
otherwise

Implemented in org.ros.node.AnonymousParmeterTree, and org.ros.internal.node.parameter.DefaultParameterTree.

boolean org.ros.node.parameter.ParameterTree.has ( String  name)

Search for parameter key on the Parameter Server. Search starts in caller's namespace and proceeds upwards through parent namespaces until the ParameterServer finds a matching key.

Parameters:
namethe parameter name to search for
Returns:
the name of the found parameter or
 null 
if no matching parameter was found

Implemented in org.ros.node.AnonymousParmeterTree, and org.ros.internal.node.parameter.DefaultParameterTree.

void org.ros.node.parameter.ParameterTree.set ( GraphName  name,
boolean  value 
)
Parameters:
namethe parameter name
valuethe value that the parameter will be set to

Implemented in org.ros.node.AnonymousParmeterTree, and org.ros.internal.node.parameter.DefaultParameterTree.

void org.ros.node.parameter.ParameterTree.set ( String  name,
boolean  value 
)
void org.ros.node.parameter.ParameterTree.set ( GraphName  name,
int  value 
)
Parameters:
namethe parameter name
valuethe value that the parameter will be set to

Implemented in org.ros.node.AnonymousParmeterTree, and org.ros.internal.node.parameter.DefaultParameterTree.

void org.ros.node.parameter.ParameterTree.set ( String  name,
int  value 
)
void org.ros.node.parameter.ParameterTree.set ( GraphName  name,
double  value 
)
Parameters:
namethe parameter name
valuethe value that the parameter will be set to

Implemented in org.ros.node.AnonymousParmeterTree, and org.ros.internal.node.parameter.DefaultParameterTree.

void org.ros.node.parameter.ParameterTree.set ( String  name,
double  value 
)
void org.ros.node.parameter.ParameterTree.set ( GraphName  name,
String  value 
)
Parameters:
namethe parameter name
valuethe value that the parameter will be set to

Implemented in org.ros.node.AnonymousParmeterTree, and org.ros.internal.node.parameter.DefaultParameterTree.

void org.ros.node.parameter.ParameterTree.set ( String  name,
String  value 
)
void org.ros.node.parameter.ParameterTree.set ( GraphName  name,
List<?>  value 
)
Parameters:
namethe parameter name
valuethe value that the parameter will be set to

Implemented in org.ros.node.AnonymousParmeterTree, and org.ros.internal.node.parameter.DefaultParameterTree.

void org.ros.node.parameter.ParameterTree.set ( String  name,
List<?>  value 
)
void org.ros.node.parameter.ParameterTree.set ( GraphName  name,
Map<?,?>  value 
)
Parameters:
namethe parameter name
valuethe value that the parameter will be set to

Implemented in org.ros.node.AnonymousParmeterTree, and org.ros.internal.node.parameter.DefaultParameterTree.

void org.ros.node.parameter.ParameterTree.set ( String  name,
Map<?,?>  value 
)

The documentation for this interface was generated from the following file:


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