Package fr.esrf.tangoatk.core

Examples of fr.esrf.tangoatk.core.Device


            return;
        }
        BindingTango.addConnectionListener(listener);
        if (m_DeviceList.containsKey(proxyName.toLowerCase())) {
            // System.out.println("Device " + proxyName + "already exist in list");
            Device device = m_DeviceList.get(proxyName.toLowerCase());
            notifyDeviceIsConnected(device);
            return;
        }
        DeviceConnectionThread.addDevice(proxyName);
    }
View Full Code Here


            return;
        }
        BindingTango.addConnectionListener(listener);
        if (m_DeviceList.containsKey(proxyName.toLowerCase())) {
            // System.out.println("Device " + proxyName + "already exist in list");
            Device device = m_DeviceList.get(proxyName.toLowerCase());
            notifyDeviceIsConnected(device);
            return;
        }
        DeviceConnectionThread.addDevice(proxyName);
    }
View Full Code Here

        m_CommandListener.clear();

        m_DeviceList.clear();
        m_DeviceListener.clear();
        List<?> deviceNameList = DeviceFactory.getInstance().getDeviceNames();
        Device device = null;

        for (int i = 0; i < deviceNameList.size(); i++) {
            // System.out.println("deviceNameList class" + deviceNameList.get(i));
            try {
                device = DeviceFactory.getInstance().getDevice((String) deviceNameList.get(i));
                DeviceFactory.getInstance().deleteDevice(device.getName());
            }
            catch (ConnectionException e) {
                System.out.println("clear All Object Tango ERREUR " + e.getMessage());
                e.printStackTrace();
            }
View Full Code Here

        //All the device defined in deviceNameList are connected
        if(m_deviceNameVector.size() == deviceNameList.length)
        {
            BindingTango.removeConnectionListener(this);
            Device tmpDevice = null;
            String[] tmpAttributeList = null;
            Vector<String> tmpAttributeNameVector = new Vector<String>();

            Enumeration<Device> enumeration = m_deviceNameVector.elements();
            while (enumeration.hasMoreElements())
            {
                tmpDevice = (Device) enumeration.nextElement();
                try
                {
                    tmpAttributeList = tmpDevice.get_attribute_list();
                }
                catch (DevFailed e){}

                for (int i = 0; i < tmpAttributeList.length; i++)
                    tmpAttributeNameVector.add(tmpDevice.get_name() + "/" + tmpAttributeList[i]);
            }

            Enumeration<String> tmpAttributeNameEnum = tmpAttributeNameVector.elements();
            tmpAttributeList = new String[tmpAttributeNameVector.size()];
            int tmpIndex = 0;
View Full Code Here

            catch (InterruptedException e){
               stopRefreshing();
            }
           
                Enumeration<Device> tmpEnumeration = m_deviceList.elements();
                Device tmpDevice = null;
                while (tmpEnumeration.hasMoreElements()) {
                  
                        tmpDevice = (Device) tmpEnumeration.nextElement();
                        if(tmpDevice != null){
                            try{
                                tmpDevice.refresh();
                            }
                            catch (Exception e){}
                        }
                }
        }
View Full Code Here

        }
    }
  
   public static void connect(String deviceName)
   {
      Device device;
      try
      {
        //Wait until all is loaded
        device = DeviceFactory.getInstance().getDevice(deviceName);
        if(device != null){
View Full Code Here

        }
    }
  
    public static void connect(String[] deviceNameList)
   {
      Device device= null
      String tmpDeviceName="";
      try
      {
        //Wait until all is loaded      
        DeviceFactory.getInstance().setRefreshInterval(BindingTango.resfreshingPeriod);
View Full Code Here

TOP

Related Classes of fr.esrf.tangoatk.core.Device

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.