/// <summary> /// Adds a new command area that only contains the necessary sections and keywords for a single well. /// </summary> public void AddNewSingleWellCommandArea() { PFSSection Nc = new PFSSection("CommandArea"); Nc.AddKeyword(new PFSKeyword("AreaName", PFSParameterType.String,"")); Nc.AddKeyword(new PFSKeyword("AreaCodeID", PFSParameterType.String, "")); Nc.AddKeyword(new PFSKeyword("AreaCode", PFSParameterType.Integer, 0)); PFSSection Sources = new PFSSection("Sources"); Sources.AddKeyword(new PFSKeyword("NumberOfSources", PFSParameterType.Integer, 1)); PFSSection Source1 = new PFSSection("Source1"); Source1.AddKeyword(new PFSKeyword("SourceTypeCode", PFSParameterType.Integer, 2)); Source1.AddKeyword(new PFSKeyword("WaterApplication", PFSParameterType.Integer, 1)); Source1.AddKeyword(new PFSKeyword("DirectApplication", PFSParameterType.Integer, 1)); Source1.AddKeyword(new PFSKeyword("WellXposSIWS", PFSParameterType.Double, 1)); Source1.AddKeyword(new PFSKeyword("WellYposSIWS", PFSParameterType.Double, 1)); Source1.AddKeyword(new PFSKeyword("ScreenTopDepthSIWS", PFSParameterType.Double, 1)); Source1.AddKeyword(new PFSKeyword("CapacitySIWS", PFSParameterType.Double, 100)); Source1.AddKeyword(new PFSKeyword("ThresholdDepthSIWS", PFSParameterType.Double, 1)); Source1.AddKeyword(new PFSKeyword("ScreenBottomDepthSIWS", PFSParameterType.Double, 1)); Source1.AddKeyword(new PFSKeyword("IrrigationLicenseIncluded", PFSParameterType.Integer, 0)); Source1.AddKeyword(new PFSKeyword("TYPE", PFSParameterType.Integer, 2)); Sources.AddSection(Source1); Nc.AddSection(Sources); CommandArea CA = new CommandArea(Nc); _commandAreas.Add(CA); _pfsHandle.AddSection(Nc); NO_AREAS++; }
/// <summary> /// Adds a new command area by cloning the first command area in the list /// </summary> public void AddNewCommandArea() { if (_commandAreas.Count!=0) { CommandArea CA = new CommandArea(PFSMapper.DeepClone(_commandAreas[0]._pfsHandle)); _commandAreas.Add(CA); _pfsHandle.AddSection(CA._pfsHandle); this.NO_AREAS++; } }
/// <summary> /// Adds a new command area by cloning the first command area in the list /// </summary> public void AddNewCommandArea() { if (_commandAreas.Count != 0) { CommandArea CA = new CommandArea(PFSMapper.DeepClone(_commandAreas[0]._pfsHandle)); _commandAreas.Add(CA); _pfsHandle.AddSection(CA._pfsHandle); this.NO_AREAS++; } }
/// <summary> /// Adds a new command area that only contains the necessary sections and keywords for a single well. /// </summary> public void AddNewSingleWellCommandArea() { PFSSection Nc = new PFSSection("CommandArea"); Nc.AddKeyword(new PFSKeyword("AreaName", PFSParameterType.String, "")); Nc.AddKeyword(new PFSKeyword("AreaCodeID", PFSParameterType.String, "")); Nc.AddKeyword(new PFSKeyword("AreaCode", PFSParameterType.Integer, 0)); PFSSection Sources = new PFSSection("Sources"); Sources.AddKeyword(new PFSKeyword("NumberOfSources", PFSParameterType.Integer, 1)); PFSSection Source1 = new PFSSection("Source1"); Source1.AddKeyword(new PFSKeyword("SourceTypeCode", PFSParameterType.Integer, 2)); Source1.AddKeyword(new PFSKeyword("WaterApplication", PFSParameterType.Integer, 1)); Source1.AddKeyword(new PFSKeyword("DirectApplication", PFSParameterType.Integer, 1)); Source1.AddKeyword(new PFSKeyword("WellXposSIWS", PFSParameterType.Double, 1)); Source1.AddKeyword(new PFSKeyword("WellYposSIWS", PFSParameterType.Double, 1)); Source1.AddKeyword(new PFSKeyword("ScreenTopDepthSIWS", PFSParameterType.Double, 1)); Source1.AddKeyword(new PFSKeyword("CapacitySIWS", PFSParameterType.Double, 100)); Source1.AddKeyword(new PFSKeyword("ThresholdDepthSIWS", PFSParameterType.Double, 1)); Source1.AddKeyword(new PFSKeyword("ScreenBottomDepthSIWS", PFSParameterType.Double, 1)); Source1.AddKeyword(new PFSKeyword("IrrigationLicenseIncluded", PFSParameterType.Integer, 0)); Source1.AddKeyword(new PFSKeyword("TYPE", PFSParameterType.Integer, 2)); Sources.AddSection(Source1); Nc.AddSection(Sources); CommandArea CA = new CommandArea(Nc); _commandAreas.Add(CA); _pfsHandle.AddSection(Nc); NO_AREAS++; }