Exemple #1
0
 public bool setACDC(EnumControlName controlName, int deviceNum, int status)
 {
     if (status == 1)
     {
         return(setACDC(controlName, deviceNum, true));
     }
     else
     {
         return(setACDC(controlName, deviceNum, false));
     }
 }
Exemple #2
0
 public int getACDC(EnumControlName controlName, int deviceNum)
 {
     if (EnumControlName.AC == controlName)
     {
         return(getAC(deviceNum));
     }
     else if (EnumControlName.DC == controlName)
     {
         return(getDC(deviceNum));
     }
     else
     {
         return(-1);
     }
 }
Exemple #3
0
 public bool setACDC(EnumControlName controlName, int deviceNum, bool status)
 {
     if (EnumControlName.AC == controlName)
     {
         return(setAC(deviceNum, status));
     }
     else if (EnumControlName.DC == controlName)
     {
         return(setDC(deviceNum, status));
     }
     else
     {
         return(false);
     }
 }
Exemple #4
0
 public Cmm1_RtuMath(EnumDeviceName deviceName, EnumControlName controlName, int controlNo)
 {
     this.deviceName_  = deviceName;
     this.controlName_ = controlName;
     this.controlNo_   = controlNo;
 }
Exemple #5
0
 public Cmm1_RtuMath(string deviceName, EnumControlName controlName, int controlNo)
 {
     this.deviceName_  = getEnumDeviceName(deviceName);
     this.controlName_ = controlName;
     this.controlNo_   = controlNo;
 }
Exemple #6
0
 public Cmm1_RtuMath()
 {
     deviceName_  = EnumDeviceName.NA;
     controlName_ = EnumControlName.NA;
     controlNo_   = 0;
 }