|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dawb.tango.extensions.factory.TangoConnectionFactory
public class TangoConnectionFactory
This class is designed to give: 1. a dummy connection or a tango one. 2. deal with the fact that you can only have one attribute class listening to a connection and parameter combination at a time. This allows a dummy mode to be used which is useful for testing as no spec motors will be moved by the tango service.
| Constructor Summary | |
|---|---|
TangoConnectionFactory()
|
|
| Method Summary | |
|---|---|
static void |
clear()
Call to clear any cahed connections. |
static TangoConnection |
openCommandConnection(java.lang.String hardwareURI)
This connection connects to a DeviceProxy and sends commands to the "ExecuteCmd" string of the connection. |
static TangoConnection |
openCommandConnection(java.lang.String hardwareURI,
java.lang.String outputAttribute)
This connection connects to a DeviceProxy and sends commands to the "ExecuteCmd" string of the connection. |
static TangoConnection |
openConnection(java.lang.String hardwareURI,
java.lang.String attributeName)
Get a connection to tango, this many also be a dummy connection if the system is in dummy mode. |
static fr.esrf.TangoApi.DeviceProxy |
openDirectConnection(java.lang.String tangoURL)
Use this method to use the correct classloader when making a DeviceProxy or Tango will break. |
static TangoConnection |
openMonitoredConnection(java.lang.String hardwareURI,
java.lang.String attributeName)
Get a connection to tango, this many also be a dummy connection if the system is in dummy mode. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TangoConnectionFactory()
| Method Detail |
|---|
public static TangoConnection openConnection(java.lang.String hardwareURI,
java.lang.String attributeName)
throws java.lang.Exception
hardwareURI - attributeName -
java.lang.Exception
public static TangoConnection openMonitoredConnection(java.lang.String hardwareURI,
java.lang.String attributeName)
throws java.lang.Exception
hardwareURI - attributeName -
java.lang.Exception
public static TangoConnection openCommandConnection(java.lang.String hardwareURI)
throws java.lang.Exception
hardwareURI -
java.lang.Exception
public static TangoConnection openCommandConnection(java.lang.String hardwareURI,
java.lang.String outputAttribute)
throws java.lang.Exception
hardwareURI - outputAttribute -
java.lang.Exceptionpublic static void clear()
public static fr.esrf.TangoApi.DeviceProxy openDirectConnection(java.lang.String tangoURL)
throws java.lang.Exception
tangoURL -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||