org.mbari.siam.moos.deployed
Class MOOSNodeConfigurator

java.lang.Object
  extended by org.mbari.siam.moos.deployed.MOOSNodeConfigurator
All Implemented Interfaces:
NodeConfigurator

public class MOOSNodeConfigurator
extends java.lang.Object
implements NodeConfigurator

MOOSNodeConfigurator encapsulates the configuration of hardware-dependent components for MOOS

Author:
Bob Herlien

Constructor Summary
MOOSNodeConfigurator()
           
 
Method Summary
 FilteredDeviceLogIF createDeviceLog(long nodeId, NodeProperties properties)
          Create the Node Log
 NetworkManager createNetworkManager(java.lang.String localHostName)
          Create the NetworkManager
 NodeProperties createNodeProperties(java.lang.String cfgFileName)
          Return NodeProperties appropriate to this configuration
 NodeService createNodeService(PortManager portManager, java.lang.String portalHost)
          Return a NodeService appropriate to this configuration
 PortManager createPortManager(NodeProperties nodeProps)
          Return a PortManager appropriate to this configuration
 SleepManager createSleepManager()
          Return the MOOS Sleep Manager
 WDTManager createWDTManager()
          Return the MOOS Watchdog Timer Manager
 java.lang.String getSiamHome()
          Return SIAM home directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MOOSNodeConfigurator

public MOOSNodeConfigurator()
Method Detail

createNodeService

public NodeService createNodeService(PortManager portManager,
                                     java.lang.String portalHost)
                              throws java.rmi.RemoteException,
                                     MissingPropertyException,
                                     InvalidPropertyException,
                                     java.io.IOException
Return a NodeService appropriate to this configuration

Specified by:
createNodeService in interface NodeConfigurator
Throws:
java.rmi.RemoteException
MissingPropertyException
InvalidPropertyException
java.io.IOException

getSiamHome

public java.lang.String getSiamHome()
                             throws MissingPropertyException
Return SIAM home directory.

Specified by:
getSiamHome in interface NodeConfigurator
Throws:
MissingPropertyException

createPortManager

public PortManager createPortManager(NodeProperties nodeProps)
                              throws MissingPropertyException,
                                     InvalidPropertyException
Return a PortManager appropriate to this configuration

Specified by:
createPortManager in interface NodeConfigurator
Throws:
MissingPropertyException
InvalidPropertyException

createNodeProperties

public NodeProperties createNodeProperties(java.lang.String cfgFileName)
                                    throws java.io.FileNotFoundException,
                                           MissingPropertyException,
                                           java.io.IOException
Return NodeProperties appropriate to this configuration

Specified by:
createNodeProperties in interface NodeConfigurator
Throws:
java.io.FileNotFoundException
MissingPropertyException
java.io.IOException

createDeviceLog

public FilteredDeviceLogIF createDeviceLog(long nodeId,
                                           NodeProperties properties)
                                    throws MissingPropertyException,
                                           InvalidPropertyException,
                                           java.io.IOException
Create the Node Log

Specified by:
createDeviceLog in interface NodeConfigurator
Throws:
MissingPropertyException
InvalidPropertyException
java.io.IOException

createNetworkManager

public NetworkManager createNetworkManager(java.lang.String localHostName)
                                    throws java.net.UnknownHostException,
                                           java.net.SocketException
Create the NetworkManager

Specified by:
createNetworkManager in interface NodeConfigurator
Throws:
java.net.UnknownHostException
java.net.SocketException

createSleepManager

public SleepManager createSleepManager()
Return the MOOS Sleep Manager

Specified by:
createSleepManager in interface NodeConfigurator

createWDTManager

public WDTManager createWDTManager()
Return the MOOS Watchdog Timer Manager

Specified by:
createWDTManager in interface NodeConfigurator


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.