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) {
{
IAttribute attribute = null;
for(int j = 0; j < al.size() ; j++)
{
attribute = (IAttribute)al.get(j);
if(attribute instanceof INumberScalar)
{
//System.out.println(attribute.getName() + " is a scalar ");
try
{