jGpibEnet.controllers
Class ControllerFactory

java.lang.Object
  extended by jGpibEnet.controllers.ControllerFactory

public class ControllerFactory
extends java.lang.Object

Factory To Get The Correct Controller Type. The Controller Once Class Loaded Is Stored In A Static HashMap Based On IpAddress.


Constructor Summary
ControllerFactory()
          Creates a new instance of ControllerFactory
 
Method Summary
 ControllerIfc getController(ControllerType type, java.lang.String ipAddress, int commTimeOutInSec)
          Returns The Appropriate Controller
 void removeController(java.lang.String ipAddress)
          Remove Controller From HashMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControllerFactory

public ControllerFactory()
Creates a new instance of ControllerFactory

Method Detail

getController

public ControllerIfc getController(ControllerType type,
                                   java.lang.String ipAddress,
                                   int commTimeOutInSec)
                            throws GpibEnetException
Returns The Appropriate Controller

Parameters:
type - Controller Type
ipAddress - Ip Address of Controller
Returns:
A Controller Which Satisfies The ControllerIfc
Throws:
GpibEnetException

removeController

public void removeController(java.lang.String ipAddress)
Remove Controller From HashMap

Parameters:
ipAddress - Ip Address Of Controller To Remove