/// <summary> /// 생성자 /// </summary> /// <param name="Controller">해당 extension controller</param> public OPCServer(PrivateController Controller) { this.Controller = Controller; this.ReadSubscriptions = new List <OPCSubscription>(); this.WriteSubscriptions = new List <OPCSubscription>(); this.OPCItemlist = new List <BrowseElement>(); }
/// <summary> /// Extension controller에 맞게 내용 구성 /// </summary> /// <param name="pc">Extension controller</param> public void SetController(PrivateController pc) { this.CurrentController = pc; this.groupBoxOPC.Text = string.Format("{0} Tags", pc.OPCServerName); this.Text = string.Format("Edit Mapping - {0}", pc.OPCServerName); this.OPCServerList = CommonController.Instance.GetOPCServers(pc); this.ResultOK = false; }
/// <summary> /// 맨처음 초기화 /// </summary> public int Initialize(ExtnUnitOperationContainer Container, bool IsRecalling) { this.hyContainer = Container; this.controller = new PrivateController(); this.controller.SetContainer(this.hyContainer); if (IsRecalling) { } return((int)CurrentExtensionVersion_enum.extnCurrentVersion); }
/// <summary> /// Monitor 기능 준비, 해당 Controller의 Data 교환 수행 속도와 Mapping 정보를 준비한다. /// </summary> /// <param name="controller"></param> public void SetMonitor(PrivateController controller) { this.CurrentController = controller; this.Text = this.CurrentController.UniqueID; this.elapsedTimes = this.CurrentController.ElapsedTimes; this.accessTimes = this.CurrentController.AccessTimes; this.gapTimes = this.CurrentController.GapTimes; this.myOPCServers = CommonController.Instance.GetOPCServers(this.CurrentController); this.myReadDTs = CommonController.Instance.GetOTSReadDatatables(this.CurrentController); this.myWriteDTs = CommonController.Instance.GetOTSWriteDatatables(this.CurrentController); this.toolStripComboBoxOPCServer.Items.Clear(); for (int i = 0; i < CommonController.Instance.Controllers.Count; i++) { this.toolStripComboBoxOPCServer.Items.Add(CommonController.Instance.Controllers[i].UniqueID); } }
public GustavoStrategy() { PrivateController = new PrivateController(); PublicController = new PublicController(); }
/// <summary> /// 생성자 /// </summary> /// <param name="Controller">해당 extension</param> public OTSDataTable(PrivateController Controller) { this.Controller = Controller; this.Type = 1; }