com.teravation.labjack
Class LabJackFactory

java.lang.Object
  |
  +--com.teravation.labjack.LabJackFactory

public class LabJackFactory
extends java.lang.Object

This class handles the creation of platform-specific instances of the LabJack interface.

Copyright © 2003-2004 Teravation. All rights reserved.

Version:
4.0
Author:
Chris Reigrut

Constructor Summary
LabJackFactory()
          LabJackFactory constructor (empty)
 
Method Summary
 float getDriverVersion()
          Returns the version number of the underlying driver
 com.teravation.labjack.LabJack getLabJack(int serialNumber)
          Returns one instance of LabJack for each physical device connected to the system
 com.teravation.labjack.LabJack[] getLabJacks()
          Returns one instance of LabJack for each physical device connected to the system
 com.teravation.labjack.LabJack[] getLabJacks(boolean find)
          Returns one instance of LabJack for each physical device connected to the system
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabJackFactory

public LabJackFactory()
LabJackFactory constructor (empty)

Method Detail

getLabJack

public com.teravation.labjack.LabJack getLabJack(int serialNumber)
                                          throws LabJackException
Returns one instance of LabJack for each physical device connected to the system

Parameters:
serialNumber - int
Returns:
com.teravation.labjack.LabJack the LabJack object with the requested serial number, or null if not found
Throws:
LabJackException - on any underlying DLL error.

getLabJacks

public com.teravation.labjack.LabJack[] getLabJacks()
                                             throws LabJackException
Returns one instance of LabJack for each physical device connected to the system

Returns:
com.teravation.labjack.LabJack[] the array of LabJack objects
Throws:
LabJackException - on any underlying DLL error.

getLabJacks

public com.teravation.labjack.LabJack[] getLabJacks(boolean find)
                                             throws LabJackException
Returns one instance of LabJack for each physical device connected to the system

Parameters:
find - boolean
Returns:
com.teravation.labjack.LabJack[] the array of LabJack objects
Throws:
LabJackException - on any underlying DLL error.

getDriverVersion

public float getDriverVersion()
                       throws LabJackException
Returns the version number of the underlying driver

Returns:
float the version number of the underlying driver
Throws:
LabJackException - on any underlying DLL error.