org.ros.node
Class DefaultNodeFactory

java.lang.Object
  extended by org.ros.node.DefaultNodeFactory
All Implemented Interfaces:
NodeFactory

public class DefaultNodeFactory
extends java.lang.Object
implements NodeFactory

Constructs DefaultNodes.


Constructor Summary
DefaultNodeFactory(java.util.concurrent.ScheduledExecutorService scheduledExecutorService)
           
 
Method Summary
 Node newNode(NodeConfiguration nodeConfiguration)
          Build a new Node with the given NodeConfiguration.
 Node newNode(NodeConfiguration nodeConfiguration, java.util.Collection<NodeListener> listeners)
          Build a new Node with the given NodeConfiguration and NodeListeners.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNodeFactory

public DefaultNodeFactory(java.util.concurrent.ScheduledExecutorService scheduledExecutorService)
Method Detail

newNode

public Node newNode(NodeConfiguration nodeConfiguration,
                    java.util.Collection<NodeListener> listeners)
Description copied from interface: NodeFactory
Build a new Node with the given NodeConfiguration and NodeListeners.

Specified by:
newNode in interface NodeFactory
Parameters:
nodeConfiguration - the NodeConfiguration for the new Node
listeners - a collection of NodeListener instances which will be registered with the node (can be null)
Returns:
a new Node

newNode

public Node newNode(NodeConfiguration nodeConfiguration)
Description copied from interface: NodeFactory
Build a new Node with the given NodeConfiguration.

Specified by:
newNode in interface NodeFactory
Parameters:
nodeConfiguration - the NodeConfiguration for the new Node
Returns:
a new Node