be.ac.ulb.gpib
Class GPIBDeviceIdentifier

java.lang.Object
  |
  +--be.ac.ulb.gpib.GPIBDeviceIdentifier

public final class GPIBDeviceIdentifier
extends java.lang.Object

Used to identify every GPIB present on the bus. One can get an instance of a given device via its identifer using the getDevice() method


Method Summary
static void addDevice(java.lang.String _name, int _address, be.ac.ulb.gpib.GPIBDriver _driver)
          Adds a valid GPIB device present on local system.
 int getAddress()
           
static java.util.Enumeration getDevices()
           
 java.lang.String getModel()
           
 java.lang.String getName()
           
 java.lang.String getStepping()
           
 java.lang.String getVendor()
           
 java.lang.String getVersion()
           
 be.ac.ulb.gpib.GPIBDevice open()
          Enables to open a given device
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDevices

public static java.util.Enumeration getDevices()
Returns:
an enumeration representing all devices present on the bus

addDevice

public static void addDevice(java.lang.String _name,
                             int _address,
                             be.ac.ulb.gpib.GPIBDriver _driver)
Adds a valid GPIB device present on local system.

Parameters:
_name - the name of the device. It is the string returned by the IEEE488.2 command: "IDN?"
_address - the GPIB address of the device
_driver - the driver who will be used to access this device

open

public be.ac.ulb.gpib.GPIBDevice open()
Enables to open a given device

Returns:
the GPIB device associated with the current GPIBDeviceIdentifier.

getName

public java.lang.String getName()

getStepping

public java.lang.String getStepping()

getVersion

public java.lang.String getVersion()

getModel

public java.lang.String getModel()

getVendor

public java.lang.String getVendor()

getAddress

public int getAddress()