Skip to main content

NetworkManager Functional Specifications

Overview

NetworkManager is a .NET executable library that interfaces between the database and EPANET water distribution network models. Its primary functionality is to import the contents of water distribution networks from INP files into the database. It provides comprehensive functionality for water distribution network model management, data persistence, and configuration handling.

Core Functionality

1. Water Distribution Network Model Management

  • Import/export EPANET INP files
  • Process water distribution network topology
  • Manage element properties
  • Validate network models

2. Data Management

  • Interface with PostgreSQL database
  • Handle data persistence
  • Manage data validation
  • Process water distribution network data

3. Configuration Management

  • Handle JSON-based settings
  • Manage environment configurations
  • Process validation rules
  • Control dynamic updates

Functional Requirements

Water Distribution Network Model Management

  1. Model Import/Export

    • Import EPANET INP files
    • Export to EPANET INP format
    • Validate model structure
    • Process model elements
  2. Topology Management

    • Process water distribution network topology
    • Handle element connections
    • Manage node relationships
    • Control link properties
  3. Element Management

    • Handle node properties
    • Manage link properties
    • Process element data
    • Control element states

Data Management

  1. Database Operations

    • Connect to PostgreSQL
    • Execute database queries
    • Handle data persistence
    • Manage transactions
  2. Data Validation

    • Validate water distribution network data
    • Check data integrity
    • Process validation rules
    • Handle validation errors
  3. Data Processing

    • Process water distribution network data
    • Handle data transformations
    • Manage data updates
    • Control data flow

Configuration Management

  1. Settings Management

    • Load configuration files
    • Process settings
    • Handle environment configs
    • Manage dynamic updates
  2. Validation Rules

    • Process validation rules
    • Handle rule updates
    • Manage rule execution
    • Control rule application

Interface Requirements

Model Interface

  1. Model Operations

    • Import EPANET INP files
    • Export to EPANET INP format
    • Update models
    • Delete models
  2. Element Operations

    • Process nodes
    • Handle links
    • Manage properties
    • Control states

Data Interface

  1. Database Operations

    • Execute queries
    • Handle transactions
    • Manage connections
    • Process results
  2. Data Validation

    • Validate data
    • Process rules
    • Handle errors
    • Manage updates

Performance Requirements

Execution Performance

  1. Database Operations

    • Optimize queries
    • Manage connections
    • Handle transactions
    • Control performance
  2. Data Processing

    • Efficient processing
    • Optimize operations
    • Manage resources
    • Control memory usage

Integration Requirements

External Systems

  1. Database Integration

    • Connect to PostgreSQL
    • Execute operations
    • Handle transactions
    • Manage connections
  2. File System Integration

    • Handle EPANET INP files
    • Process configurations
    • Manage data files
    • Control file access