| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- using Newtonsoft.Json;
- using NPOI.SS.Formula;
- using Prism.Mvvm;
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace TeamAAS_VP.Models
- {
- /// <summary>
- /// 设备参数
- /// </summary>
- public class DeviceConfiguration : BindableBase
- {
- private ObservableCollection<CameraInfo> _Cameras = new ObservableCollection<CameraInfo>();
- /// <summary>
- /// 相机参数
- /// </summary>
- public ObservableCollection<CameraInfo> Cameras
- {
- get { return _Cameras; }
- set { SetProperty(ref _Cameras, value); }
- }
- private ObservableCollection<RobotInfo> _Robots = new ObservableCollection<RobotInfo>();
- /// <summary>
- /// 机器人参数
- /// </summary>
- public ObservableCollection<RobotInfo> Robots
- {
- get { return _Robots; }
- set { SetProperty(ref _Robots,value); }
- }
- private ObservableCollection<FeederInfo> _Feeders = new ObservableCollection<FeederInfo>();
- /// <summary>
- /// Feeder参数
- /// </summary>
- public ObservableCollection<FeederInfo> Feeders
- {
- get { return _Feeders; }
- set { SetProperty(ref _Feeders, value); }
- }
- private ObservableCollection<PlcInfo> _Plcs = new ObservableCollection<PlcInfo>();
- public ObservableCollection<PlcInfo> Plcs
- {
- get { return _Plcs; }
- set { SetProperty(ref _Plcs, value); }
- }
- private BgTcpIP _BgCommunicate = new BgTcpIP();
- /// <summary>
- /// 后台TCP/ip通讯,作为服务器
- /// </summary>
- public BgTcpIP BgCommunicate
- {
- get { return _BgCommunicate; }
- set { SetProperty(ref _BgCommunicate, value); }
- }
- private BgModbusTcp _BgModbusCommunicate = new BgModbusTcp();
- /// <summary>
- /// 后台Modbus TCp通讯,作为从站
- /// </summary>
- public BgModbusTcp BgModbusCommunicate
- {
- get { return _BgModbusCommunicate; }
- set { SetProperty(ref _BgModbusCommunicate, value); }
- }
- private BgEthernetIP _BgEthernetIPCommunicate = new BgEthernetIP();
- /// <summary>
- /// EthernetIP
- /// </summary>
- public BgEthernetIP BgEthernetIPCommunicate
- {
- get { return _BgEthernetIPCommunicate; }
- set { SetProperty(ref _BgEthernetIPCommunicate, value); }
- }
- private BgSfisConfig _BgSfisCommunicate = new BgSfisConfig();
- /// <summary>
- /// SFIS 过站/上传
- /// </summary>
- public BgSfisConfig BgSfisCommunicate
- {
- get { return _BgSfisCommunicate; }
- set { SetProperty(ref _BgSfisCommunicate, value); }
- }
- private ObservableCollection<CalibrationInfo> _Calibrations=new ObservableCollection<CalibrationInfo>();
- /// <summary>
- /// 校准集合
- /// </summary>
- public ObservableCollection<CalibrationInfo> Calibrations
- {
- get { return _Calibrations; }
- set { SetProperty(ref _Calibrations, value); }
- }
- public DeviceConfiguration Clone()
- {
- return JsonConvert.DeserializeObject<DeviceConfiguration>(JsonConvert.SerializeObject(this));
- }
- }
- }
|