public SetRequestWithList(CosemAttributeDescriptorSelection[] attributes, DlmsData[] attrValues) { super(); if (attributes.length != attrValues.length) throw new RuntimeException("attr.length != values.length"); attributeList.setInitValue(attributes); valueList.setInitValue(attrValues); }
public DlmsData[] getValueList() { ASN1Type[] resultArray = valueList.getMembers(); if (!valueList.isDecodeDone() || null == resultArray) return null; DlmsData[] ret = new DlmsData[resultArray.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (DlmsData) resultArray[i]; } return ret; }
public final CosemAttributeDescriptorSelection[] getAttributeList() { ASN1Type[] resultArray = attributeList.getMembers(); if (!attributeList.isDecodeDone() || null == resultArray) return null; CosemAttributeDescriptorSelection[] ret = new CosemAttributeDescriptorSelection[resultArray.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CosemAttributeDescriptorSelection) resultArray[i]; } return ret; }
public void setValueList(DlmsData[] values) { valueList.setInitValue(values); }
public void setAttributeList(CosemAttributeDescriptorSelection[] attributes) { attributeList.setInitValue(attributes); }