The WaterSim_DB type exposes the following members.
Constructors
Name | Description | |
---|---|---|
WaterSim_DB |
Constructs a WaterSim_DB object. Creates a new DbConnection and opens the Database if a filename is provided. Otherwise DBConnection is not created.
|
Methods
Name | Description | |
---|---|---|
Colorado_Historical_Extraction_Start_Year_RangeCheck |
Colorado_Historical_Extraction_Start_Year_RangeCheck
(Inherited from WaterSim.) | |
CreateDirectory |
Creates a Directory of directoryName if it does not exist. Relative references is from the directory the program is executing from
(Inherited from WaterSim.) | |
CreateNewDataTable |
Creates a new table in the open database. Must be a unique name. Creates all possible fields.
| |
Dispose |
Must be called before WaterSim object loses scope or is lost (reassigned).
(Inherited from WaterSim.) | |
FastGetAnnualData | Fast get annual data. (Inherited from WaterSim.) | |
GetErrorMessage | Gets the error message. | |
LoadScenario_DB | Loads a scenario from a database. | |
LockSimulation |
Locks the simulation so not parameters can be set until unlocked.
/// (Inherited from WaterSim.) | |
PCTEffluentRangeCheck |
PCTEffluentRangeCheck
(Inherited from WaterSim.) | |
PCTReclaimedRangeCheck |
PCTReclaimedRangeCheck - Check to see of all the PCT reclaimed model paramters do nt eceeed 100% total
(Inherited from WaterSim.) | |
PCTResComRangeCheck |
PCTResComRangeCheck - Checks to see if Residential an Commerical water use PCT does not excede 100.
(Inherited from WaterSim.) | |
Provider_Demand_Option_Label | Provider demand option label. (Inherited from WaterSim.) | |
SaltVerde_Historical_Extraction_Start_Year_RangeCheck |
SaltVerde_Historical_Extraction_Start_Year_RangeCheck
(Inherited from WaterSim.) | |
Simulation_AllYears |
Runs all the years of the Simulation based on Simulation_STart_Year and Simulation_End_year, If initialized with one of the DB Simulation_Initilaize() overloads, will append data to the datatable, otehrwise just runs the model all years.
(Overrides WaterSim..::..Simulation_AllYears()()()().) | |
Simulation_Initialize()()()() |
Must be called to setup a Simulation . Simulation can be run in two ways,
calling SimulationNextYear() for each year to be run, call SimulationAllYears() which runs all the years
All simulations should be stopped with StopSimulation(), which will make sure all files are closed
Will reset SimulationLock to false;
(Inherited from WaterSim.) | |
Simulation_Initialize(DataTable, String) |
Initializes a DB Simulation. results will be appended to the specified DataTable
| |
Simulation_Initialize(String, String) |
Initializes a DB Simulation. Opens the datatable using DbConnection and datatablename, results will be written to temp DataTable and then updated in the Database.
| |
Simulation_NextYear |
Runs the next (or first) year of the Simulation. If initialized with one of the DB Simulation_Initilaize() overloads, will append data to the datatable, otehrwise just runs the model one year.
(Overrides WaterSim..::..Simulation_NextYear()()()().) | |
Simulation_Stop |
Stops the Simulation. If initialized with one of the DB Simulation_Initilaize() overloads, will update the datatable in the database.
(Overrides WaterSim..::..Simulation_Stop()()()().) | |
simulationYears | (Inherited from WaterSim.) | |
UnLockSimulation | (Inherited from WaterSim.) | |
Valid_DataTable |
Check if Valid WaterSIM_DB datatable
|
Fields
Name | Description | |
---|---|---|
Colorado_Annual_Deliveries | The colorado annual deliveries (Inherited from WaterSim.) | |
ColoradoBureau | The Colorado River Bureau/Historical River Range (Inherited from WaterSim.) | |
ColoradoPaleo | The Colorado River Paleo River Range (Inherited from WaterSim.) | |
ColoradoUser | Colorado river range for user supplied data (Inherited from WaterSim.) | |
Demand_Deficit | The demand deficit (Inherited from WaterSim.) | |
Effluent_Created | The effluent created (Inherited from WaterSim.) | |
Effluent_Discharged | The effluent discharged (Inherited from WaterSim.) | |
Effluent_To_PowerPlant | The effluent to power plant (Inherited from WaterSim.) | |
Effluent_To_Vadose | The effluent to vadose (Inherited from WaterSim.) | |
GPCD_Used | The gpcd used (Inherited from WaterSim.) | |
Groundwater_Balance | The groundwater balance (Inherited from WaterSim.) | |
Groundwater_Bank_Balance | The groundwater bank balance (Inherited from WaterSim.) | |
Groundwater_Bank_Used | The groundwater bank used (Inherited from WaterSim.) | |
Groundwater_Pumped_Municipal | The groundwater pumped municipal (Inherited from WaterSim.) | |
PCT_Effluent_to_PowerPlant | The percent effluent to power plant (Inherited from WaterSim.) | |
PCT_Effluent_to_Vadose | The percent effluent to vadose (Inherited from WaterSim.) | |
PCT_Groundwater_Treated | The percent groundwater treated (Inherited from WaterSim.) | |
PCT_Growth_Rate_Adjustment | The percent growth rate adjustment (Inherited from WaterSim.) | |
PCT_Max_Demand_Reclaim | The percent maximum demand reclaim (Inherited from WaterSim.) | |
PCT_Outdoor_WaterUse | The percent outdoor water use (Inherited from WaterSim.) | |
PCT_Reclaimed_Outdoor_Use | The percent reclaimed outdoor use (Inherited from WaterSim.) | |
PCT_Reclaimed_to_DirectInject | The percent reclaimed to direct inject (Inherited from WaterSim.) | |
PCT_Reclaimed_to_RO | The percent reclaimed to Reverse Osmosis (Inherited from WaterSim.) | |
PCT_Reclaimed_to_Vadose | The percent reclaimed to vadose (Inherited from WaterSim.) | |
PCT_Reclaimed_to_Water_Supply | The percent reclaimed to water supply (Inherited from WaterSim.) | |
PCT_RO_to_Water_Supply | The percent reverse osmosis water to water supply (Inherited from WaterSim.) | |
PCT_SurfaceWater_to_WaterBank | The percent surface water to water bank (Inherited from WaterSim.) | |
PCT_Wastewater_Reclaimed | The percent wastewater reclaimed (Inherited from WaterSim.) | |
PCT_Wastewater_to_Effluent | The percent wastewater to effluent (Inherited from WaterSim.) | |
PCT_WaterSupply_to_ComInd | The percent water supply to com ind (Inherited from WaterSim.) | |
PCT_WaterSupply_to_Residential | The percent water supply to residential (Inherited from WaterSim.) | |
Population_Used | The population used (Inherited from WaterSim.) | |
rdbfID | Primary key db fieldname | |
rdbfProviderCode | Provider code db fieldname | |
rdbfProviderLabel | Provider label db fieldname | |
rdbfScenarioName | Scenario name db fieldname | |
rdbfSimYear | Simulation year db fieldname | |
Reclaimed_Water_Created | The reclaimed water created (Inherited from WaterSim.) | |
Reclaimed_Water_Discharged | The reclaimed water discharged (Inherited from WaterSim.) | |
Reclaimed_Water_to_DirectInject | The reclaimed water to direct inject (Inherited from WaterSim.) | |
Reclaimed_Water_To_Vadose | The reclaimed water to vadose (Inherited from WaterSim.) | |
Reclaimed_Water_Used | The reclaimed water used (Inherited from WaterSim.) | |
RO_Reclaimed_Water_Created | The ro reclaimed water created (Inherited from WaterSim.) | |
RO_Reclaimed_Water_to_DirectInject | The ro reclaimed water to direct inject (Inherited from WaterSim.) | |
RO_Reclaimed_Water_Used | The ro reclaimed water used (Inherited from WaterSim.) | |
SaltVerde_Annual_Deliveries_SRP | The salt verde annual deliveries srp (Inherited from WaterSim.) | |
SaltVerde_Class_BC_Designations | (Inherited from WaterSim.) | |
SaltVerdeBureau | The Salt Verde Bureau/Historical River Range (Inherited from WaterSim.) | |
SaltVerdePaleo | The Salt Verde Rivers Paleo/Tree Ring River Range (Inherited from WaterSim.) | |
SaltVerdeUser | Salt Verde river range for user supplied data (Inherited from WaterSim.) | |
Surface_to_Vadose_Time_Lag | The surface to vadose time lag (Inherited from WaterSim.) | |
SurfaceWater__to_Vadose | Surface water to vadose (Inherited from WaterSim.) | |
Total_Demand | The total demand (Inherited from WaterSim.) | |
Use_GPCD | The gpcd to use with User Supplied GPCD (Inherited from WaterSim.) | |
Use_SurfaceWater_to_WaterBank | The use surface water to water bank (Inherited from WaterSim.) | |
Use_WaterSupply_to_DirectInject | The amount of water to direct inject (Inherited from WaterSim.) | |
WaterBank_Source_Option | The water bank source option (Inherited from WaterSim.) |
Properties
Name | Description | |
---|---|---|
APiVersion |
Version of the API interface
(Inherited from WaterSim.) | |
Colorado_Climate_Adjustment_Percent | Gets or sets the colorado climate adjustment percent. (Inherited from WaterSim.) | |
Colorado_Historical_Data_Source | Gets or sets the colorado historical data source. (Inherited from WaterSim.) | |
Colorado_Historical_Extraction_Start_Year | Gets or sets the colorado historical extraction start year. (Inherited from WaterSim.) | |
Colorado_River_Flow | Gets the colorado river flow. (Inherited from WaterSim.) | |
Colorado_User_Adjustment_Percent | Gets or sets the colorado user adjustment percent. (Inherited from WaterSim.) | |
Colorado_User_Adjustment_StartYear | Gets or sets the colorado user adjustment start year. (Inherited from WaterSim.) | |
Colorado_User_Adjustment_Stop_Year | Gets or sets the colorado user adjustment stop year. (Inherited from WaterSim.) | |
DatabaseFilename |
Property
Datbase Filename for DbConnection. If different than current database (or database not open) closes DbConnection and opens new using this filename.
| |
DataBaseOpen |
Property
Returns true if the Database is open
| |
DbConnection |
Property
This is the database connection, can be opened seperately and assigned with this property, must be in the Open state, otherwise and exception is thrown
| |
Effluent_To_Agriculture | Gets the effluent to agriculture. (Inherited from WaterSim.) | |
isError |
Property
Returns true if t
| |
Mead_Storage | Gets the mead storage. (Inherited from WaterSim.) | |
ModelBuild |
Verson of the Fortran Model
(Inherited from WaterSim.) | |
ParamManager |
Provides access to the Parameter Manager
(Inherited from WaterSim.) | |
PostProcess |
Called after each year run
Write Only
(Inherited from WaterSim.) | |
Powell_Storage | Gets the powell storage. (Inherited from WaterSim.) | |
PreProcess |
Called before each year run,
Write Only
(Inherited from WaterSim.) | |
ProcessManager |
Provides access to the Process Manager
(Inherited from WaterSim.) | |
Provider_Demand_Option | Gets or sets the provider demand option. (Inherited from WaterSim.) | |
SaltVerde_Climate_Adjustment_Percent | Gets or sets the salt verde climate adjustment percent. (Inherited from WaterSim.) | |
SaltVerde_Historical_Data_Source | Gets or sets the salt verde historical data source. (Inherited from WaterSim.) | |
SaltVerde_Historical_Extraction_Start_Year | Gets or sets the salt verde historical extraction start year. (Inherited from WaterSim.) | |
SaltVerde_River_Flow | Gets the salt verde river flow. (Inherited from WaterSim.) | |
SaltVerde_Storage | Gets the salt verde storage. (Inherited from WaterSim.) | |
SaltVerde_User_Adjustment_Percent | Gets or sets the salt verde user adjustment percent. (Inherited from WaterSim.) | |
SaltVerde_User_Adjustment_Start_Year | Gets or sets the salt verde user adjustment start year. (Inherited from WaterSim.) | |
SaltVerde_User_Adjustment_Stop_Year | Gets or sets the salt verde user adjustment stop year. (Inherited from WaterSim.) | |
Simulation_End_Year | Gets or sets the simulation end year. (Inherited from WaterSim.) | |
Simulation_Start_Year |
Simulation_Start_Year
(Inherited from WaterSim.) | |
SimulationLock |
Property Locks the simulation so no parameters can be set until unlocked.
(Inherited from WaterSim.) |