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

org.nees.daq.ControlPort Class Reference

Main class, handles all control interactions. More...

List of all members.

Public Member Functions

 ControlPort (Socket socket) throws UnknownHostException, IOException
 Constructor - get reader/writer from socket.

String[] getChannels () throws IOException
 Routine to query and parse the list of DAQ channels.

void subscribe (String channel) throws IOException
 Public routines just call the worker.

void unsubscribe (String channel) throws IOException
 Public routines just call the worker.


Detailed Description

Main class, handles all control interactions.

Definition at line 20 of file ControlPort.java.


Constructor & Destructor Documentation

org.nees.daq.ControlPort.ControlPort Socket  socket  )  throws UnknownHostException, IOException
 

Constructor - get reader/writer from socket.

Parameters:
socket TCP socket to DAQ control port
Note:
We assume the socket is in place before we are called

Definition at line 30 of file ControlPort.java.


Member Function Documentation

String [] org.nees.daq.ControlPort.getChannels  )  throws IOException
 

Routine to query and parse the list of DAQ channels.

Note:
DAQ comms must be open and ready.
Return values:
ChannelList List of channels, in array format

Definition at line 45 of file ControlPort.java.

void org.nees.daq.ControlPort.subscribe String  channel  )  throws IOException
 

Public routines just call the worker.

Parameters:
channel DAQ channel ID

Definition at line 129 of file ControlPort.java.

void org.nees.daq.ControlPort.unsubscribe String  channel  )  throws IOException
 

Public routines just call the worker.

Parameters:
channel DAQ channel ID

Definition at line 139 of file ControlPort.java.


The documentation for this class was generated from the following file:
Generated on Tue Mar 23 11:54:24 2004 for Data turbine for NEESGrid by doxygen 1.3.6