/// <summary> /// Initialize the object. /// </summary> /// <param name="options">Serial port connection options.</param> /// <param name="prjName">New Project name.</param> /// <param name="isConnected">Flag if this connection is connected.</param> public AdcpConnectionOption(AdcpSerialPort.AdcpSerialOptions options, string prjName, bool isConnected = false) : base("AdcpConnectionOption") { Options = options; NewProjectName = prjName; IsConnected = isConnected; }
/// <summary> /// Initialize values. /// </summary> public AdcpConfiguration() { // Initialize values SubsystemConfigDict = new Dictionary <string, AdcpSubsystemConfig>(); Commands = new AdcpCommands(); _serialNumber = new SerialNumber(); DeploymentOptions = new DeploymentOptions(); AdcpSerialOptions = new AdcpSerialPort.AdcpSerialOptions(); IsGps1SerialEnabled = false; IsGps2SerialEnabled = false; IsNmea1SerialEnabled = false; IsNmea2SerialEnabled = false; Gps1SerialOptions = new SerialOptions(); Gps2SerialOptions = new SerialOptions(); Nmea1SerialOptions = new SerialOptions(); Nmea2SerialOptions = new SerialOptions(); HardwareOptions = new EngConf(); EthernetOptions = new AdcpEthernetOptions(); VesselMountOptions = new VesselMountOptions(); EngPort = ""; AdditionalCommands = ""; }
/// <summary> /// Initialize values. /// </summary> public AdcpConfiguration(SerialNumber serial) { // Initialize values SubsystemConfigDict = new Dictionary <string, AdcpSubsystemConfig>(); Commands = new AdcpCommands(); _serialNumber = serial; SetCepo(_serialNumber.SubsystemsString(), _serialNumber); // Must go after Commands is created DeploymentOptions = new DeploymentOptions(); AdcpSerialOptions = new AdcpSerialPort.AdcpSerialOptions(); IsGps1SerialEnabled = false; IsGps2SerialEnabled = false; IsNmea1SerialEnabled = false; IsNmea2SerialEnabled = false; Gps1SerialOptions = new SerialOptions(); Gps2SerialOptions = new SerialOptions(); Nmea1SerialOptions = new SerialOptions(); Nmea2SerialOptions = new SerialOptions(); HardwareOptions = new EngConf(); EthernetOptions = new AdcpEthernetOptions(); VesselMountOptions = new VesselMountOptions(); EngPort = ""; AdditionalCommands = ""; }