public bool setACDC(EnumControlName controlName, int deviceNum, int status) { if (status == 1) { return(setACDC(controlName, deviceNum, true)); } else { return(setACDC(controlName, deviceNum, false)); } }
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); } }
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); } }
public Cmm1_RtuMath(EnumDeviceName deviceName, EnumControlName controlName, int controlNo) { this.deviceName_ = deviceName; this.controlName_ = controlName; this.controlNo_ = controlNo; }
public Cmm1_RtuMath(string deviceName, EnumControlName controlName, int controlNo) { this.deviceName_ = getEnumDeviceName(deviceName); this.controlName_ = controlName; this.controlNo_ = controlNo; }
public Cmm1_RtuMath() { deviceName_ = EnumDeviceName.NA; controlName_ = EnumControlName.NA; controlNo_ = 0; }