コード例 #1
0
 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);
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public void setValueList(DlmsData[] values) {
   valueList.setInitValue(values);
 }
コード例 #5
0
 public void setAttributeList(CosemAttributeDescriptorSelection[] attributes) {
   attributeList.setInitValue(attributes);
 }