1 package com.sonycsl.echo.processing.defaults;
2 import java.io.IOException;
9 byte[] mStatus = {0x30};
10 byte[] mLocation = {0x00};
11 byte[] mFaultStatus = {0x42};
12 byte[] mManufacturerCode = {0,0,0};
14 byte[] mNormalDirectionValue = {0,0,0,0};
15 byte[] mReverseDirectionValue = {0,0,0,0};
16 byte[] mUnit = {0x03};
22 byte b = (status?(byte)0x30:0x31) ;
24 if(mStatus[0] == b) return ;
27 inform().reqInformOperationStatus().send();
28 }
catch (IOException e) {e.printStackTrace();}
41 if(mLocation[0] == location) return ;
42 mLocation[0] = location;
44 inform().reqInformInstallationLocation().send();
45 }
catch (IOException e) {e.printStackTrace();}
52 byte b = (status?(byte)0x41:(byte)0x42) ;
54 if(mFaultStatus[0] == b) return ;
57 inform().reqInformFaultStatus().send();
58 }
catch (IOException e) {e.printStackTrace();}
66 return mNormalDirectionValue;
70 mNormalDirectionValue[0] = (byte)((value >> 24) & 0xFF);
71 mNormalDirectionValue[1] = (byte)((value >> 16) & 0xFF);
72 mNormalDirectionValue[2] = (byte)((value >> 8) & 0xFF);
73 mNormalDirectionValue[3] = (byte)(value & 0xFF);
78 return mReverseDirectionValue;
82 mReverseDirectionValue[0] = (byte)((value >> 24) & 0xFF);
83 mReverseDirectionValue[1] = (byte)((value >> 16) & 0xFF);
84 mReverseDirectionValue[2] = (byte)((value >> 8) & 0xFF);
85 mReverseDirectionValue[3] = (byte)(value & 0xFF);
void changeOperationStatus(boolean status)
void changeFaultStatus(boolean status)
void setReverseDirectionValue(long value)
boolean setInstallationLocation(byte[] edt)
byte[] getManufacturerCode()
void setNormalDirectionValue(long value)
byte[] getInstallationLocation()
void changeInstallationLocation(byte location)
byte[] getUnitForCumulativeAmountsOfElectricEnergy()
byte[] getMeasuredCumulativeAmountOfElectricEnergyNormalDirection()
byte[] getMeasuredCumulativeAmountOfElectricEnergyReverseDirection()
byte[] getOperationStatus()