Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

org.nees.rbnb.DaqToRbnb Class Reference

A command line application; translate data from DAQ to RBNB. More...

Inheritance diagram for org.nees.rbnb.DaqToRbnb:

org.nees.rbnb.RBNBBase List of all members.

Public Member Functions

void printUsage ()
 Util function to dump usage onto stdout.

 DaqToRbnb ()
 Constructor, just parses arguments.

void setVariablesFromParameters ()
 Use the parameter table to set the actual variables for this RBNB application.

void startThread ()
void stopThread ()
boolean isRunning ()
 Return the state of the runnning code.

String[] getParameterNameArray ()
String[] getParameterTypeArray ()
Object[] getParameterDefaultArray ()
boolean start ()
 Start this instance.

boolean stop ()
 Stop this instance.


Static Public Member Functions

void main (String[] args)
 Implements both a command line application and a MCP source (see RBNBBase).


Protected Member Functions

boolean setInstanceArgs (String[] args) throws IllegalArgumentException
 function to parse the arguments (retuired by superclass)

void setParamterArrays ()

Package Attributes

boolean connected = false
Thread mainThread

Detailed Description

A command line application; translate data from DAQ to RBNB.

This command line application takes parameters for a DAQ server and an RBNB server, creates a connection of DAQ channel to RBNB channel and posts the data from DAQ to RBNB (Data Turbine). Currently, the mapping is created at startup and is assumed to bu unchanged (that is, DAQ channels can not be added or removed).

Definition at line 35 of file rbnb/DaqToRbnb.java.


Constructor & Destructor Documentation

org.nees.rbnb.DaqToRbnb.DaqToRbnb  ) 
 

Constructor, just parses arguments.

See also:
main

Definition at line 192 of file rbnb/DaqToRbnb.java.


Member Function Documentation

Object [] org.nees.rbnb.DaqToRbnb.getParameterDefaultArray  )  [virtual]
 

Returns:
the array of default valeus for this type of object

Implements org.nees.rbnb.RBNBBase.

Definition at line 572 of file rbnb/DaqToRbnb.java.

References org.nees.rbnb.DaqToRbnb.getParameterDefaultArray().

Referenced by org.nees.rbnb.DaqToRbnb.getParameterDefaultArray().

String [] org.nees.rbnb.DaqToRbnb.getParameterNameArray  )  [virtual]
 

Returns:
the array of parameter names for this type of object

Implements org.nees.rbnb.RBNBBase.

Definition at line 558 of file rbnb/DaqToRbnb.java.

References org.nees.rbnb.DaqToRbnb.getParameterNameArray().

Referenced by org.nees.rbnb.DaqToRbnb.getParameterNameArray().

String [] org.nees.rbnb.DaqToRbnb.getParameterTypeArray  )  [virtual]
 

Returns:
the array of parameter types for this type of object

Implements org.nees.rbnb.RBNBBase.

Definition at line 565 of file rbnb/DaqToRbnb.java.

References org.nees.rbnb.DaqToRbnb.getParameterTypeArray().

Referenced by org.nees.rbnb.DaqToRbnb.getParameterTypeArray().

boolean org.nees.rbnb.DaqToRbnb.isRunning  )  [virtual]
 

Return the state of the runnning code.

Returns:
true if any of the threads in this code are running

Implements org.nees.rbnb.RBNBBase.

Definition at line 550 of file rbnb/DaqToRbnb.java.

References org.nees.daq.DataThread.isRunning(), and org.nees.rbnb.DaqToRbnb.isRunning().

Referenced by org.nees.rbnb.DaqToRbnb.isRunning().

void org.nees.rbnb.DaqToRbnb.main String[]  args  )  [static]
 

Implements both a command line application and a MCP source (see RBNBBase).

The command line application for DaqToRbnb Usage is: -q DAQ Server Host Name defaults to localhost -c DAQ Control Port defaults to 55055 -d DAQ Data Port defaults to 55056 -s RBNB Server Host Name defaults to localhost -p RBNB Port Number defaults to 3333 -n RBNB Source Name defaults to FromDAQ -z RBNB cache size defaults to 100 -o time offset, floating point, hours to GMT defaults to the local time offset

Parameters:
args Command line
See also:
RBNBBase

Definition at line 95 of file rbnb/DaqToRbnb.java.

References org.nees.rbnb.DaqToRbnb.main().

Referenced by org.nees.rbnb.DaqToRbnb.main().

boolean org.nees.rbnb.DaqToRbnb.setInstanceArgs String[]  args  )  throws IllegalArgumentException [protected, virtual]
 

function to parse the arguments (retuired by superclass)

See also:
org.nees.rbnb.RBNBBase#setInstanceArgs(java.lang.String[])

Implements org.nees.rbnb.RBNBBase.

Definition at line 124 of file rbnb/DaqToRbnb.java.

References org.nees.rbnb.DaqToRbnb.setInstanceArgs().

Referenced by org.nees.rbnb.DaqToRbnb.setInstanceArgs().

void org.nees.rbnb.DaqToRbnb.setVariablesFromParameters  )  [virtual]
 

Use the parameter table to set the actual variables for this RBNB application.

Implements org.nees.rbnb.RBNBBase.

Definition at line 244 of file rbnb/DaqToRbnb.java.

References org.nees.rbnb.DaqToRbnb.setVariablesFromParameters().

Referenced by org.nees.rbnb.DaqToRbnb.setVariablesFromParameters().

boolean org.nees.rbnb.DaqToRbnb.start  )  [virtual]
 

Start this instance.

Returns:
true if start was sucessful

Implements org.nees.rbnb.RBNBBase.

Definition at line 579 of file rbnb/DaqToRbnb.java.

References org.nees.rbnb.DaqToRbnb.start().

Referenced by org.nees.rbnb.DaqToRbnb.start().

boolean org.nees.rbnb.DaqToRbnb.stop  )  [virtual]
 

Stop this instance.

Returns:
true if stop was sucessful

Implements org.nees.rbnb.RBNBBase.

Definition at line 590 of file rbnb/DaqToRbnb.java.

References org.nees.rbnb.DaqToRbnb.stop().

Referenced by org.nees.rbnb.DaqToRbnb.stop().


The documentation for this class was generated from the following file:
Generated on Tue Aug 24 11:12:28 2004 for Data turbine for NEESGrid by doxygen 1.3.7