コード例 #1
0
 public short getZoneState(IEndPointRequestContext context)
     throws ApplianceException, ServiceClusterException {
   if (context != null) {
     Short objectResult = null;
     objectResult =
         ((Short) getValidCachedAttributeObject(0, context.getMaxAgeForAttributeValues()));
     if (objectResult != null) {
       return objectResult.shortValue();
     }
   }
   IZclFrame zclFrame = readAttribute(0, context);
   short v = ZclDataTypeEnum8.zclParse(zclFrame);
   setCachedAttributeObject(0, new Short(v));
   return v;
 }
コード例 #2
0
 public static GetUsertypeResponse zclParse(IZclFrame zclFrame) throws ZclValidationException {
   GetUsertypeResponse r = new GetUsertypeResponse();
   r.UserID = ZclDataTypeUI16.zclParse(zclFrame);
   r.UserType = ZclDataTypeEnum8.zclParse(zclFrame);
   return r;
 }