Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • distaix distaix
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 2
    • Merge requests 2
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • ACS
  • Public
  • Power System Simulation and Optimization
  • DistAIXFramework
  • distaixdistaix
  • Issues
  • #10
Closed
Open
Issue created Nov 16, 2020 by Sonja Happ@skolenOwner4 of 4 checklist items completed4/4 checklist items

Code refactoring for model.cpp

The model.ccp file contains 1500+ lines of code. To improve readability and the code structure we should refactor the code and separate the following functions:

  • FBS functions: model_fbs.cpp already there
  • Config functions: model_config.cpp anything for reading files and parameters = anything that happens in constructor + reading profiles (should happen in constructor as well...)
  • Init functions for networks: model_init_networks.cpp anything called in Model::init() that creates and initializes el. or communication networks
  • Init functions for agents: model_init_agents.cpp anythin called in ``Model::init()` that created and initializes agents and their behaviors
Edited Nov 16, 2020 by Sonja Happ
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking