public SecsHost Create(EquipmentModel eqModel) { GemOption opt = eqModel.Connection; SecsHost host = null; if (opt.Protocol == GemProtocol.HSMS) { host = new HsmsHost(opt.HsmsParameters); } else if (opt.Protocol == GemProtocol.SECS_I) { host = new SecsIHost(opt.SecsIParameters); } host.DeviceId = opt.DeviceId; return(host); }
public EquipmentModel(string eqName) { m_Connection = new GemOption(); m_Name = eqName; }