Package fr.esrf.tangoatk.core

Examples of fr.esrf.tangoatk.core.IDevice


   
    @SuppressWarnings("unchecked")
    protected void addDevices(FamilyNode family, java.util.List devices) {
    MemberNode device = null;
    DefaultMutableTreeNode attributes = null;
    IDevice d;
  
   
    for (int i = 0; i < devices.size(); i++) {
        AttributeList scalarList = new AttributeList();
        AttributeList al = new AttributeList();
  
    d = (IDevice)devices.get(i);
    //System.out.println("devicename = " + d.getName());
    List<?> childrenlist = family.getChildren();
    for(int j = 0 ;  j < childrenlist.size() ; j++)
    {
        MemberNode devicelocal = null;
        //System.out.println("childrenlist[" + j + "] = " + childrenlist.get(j).getClass());
        devicelocal = (MemberNode)childrenlist.get(j);
        if(devicelocal.getName().toLowerCase().equals(d.getName()))
            device = devicelocal;
    }
    //device = family.getChild((d.getName()));
    //System.out.println("device :" + device);
    device.setAttributeList(scalarList);
 
    device.setDevice(d);

    try {
        al.add(d.getName() + "/*");
    } catch (ATKException e) {
  error(e);
    }

    if (al.size() > 0) {
View Full Code Here


     }
     if(m_deviceListener != null)
     {
       try
       {
        IDevice tmpDevice = ((IDevice) arg0.getSource());
         String tmpState = arg0.getState();
        if (tmpDevice == null || tmpState == null) {
           return;
         }

         m_deviceListener.stateChange(StateUtilities.getStateForName(tmpState).value());
         m_deviceListener.stateChange(tmpState);
         m_deviceListener.statusChange(tmpDevice.getStatus());
         m_deviceListener.colorChange(ATKConstant.getColor4State(tmpState));
       }
       catch (Exception e)
       {
         m_deviceListener.stateChange(DevState._UNKNOWN);
View Full Code Here

TOP

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

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.