├── .DS_Store ├── app-nodejs ├── blockchain_dr │ └── index.js ├── public │ └── style.css ├── test_SC.js └── views │ ├── index.ejs │ ├── sb_details.ejs │ └── test.ejs ├── app.js ├── boot_script.py ├── config ├── .gitignore ├── dr_smart_contracts.json ├── entity_data_map.json ├── messages_param.json ├── pc_address.json ├── simulation_config_pattern.json ├── tweak_params.py └── type_dr_simu_config │ ├── .gitignore │ ├── GT.json │ ├── GT_QUAD_50PV_50EV.json │ ├── GT_noPV_noEV.json │ ├── GT_pattern.json │ ├── LPT.json │ ├── RTP.json │ └── TOU.json ├── doc └── architecture.JPG ├── entities ├── .gitignore ├── __init__.py ├── fault_management.py ├── res_data │ ├── windmill_prod.csv │ ├── windmill_prod_75k_100.csv │ ├── windmill_prod_75k_50.csv │ └── windmill_prod_75k_50_1.csv ├── res_fault │ ├── res_fault.json │ └── res_fault_pattern.json ├── sb_scheduler.py ├── sg_entity_model.py ├── sg_entity_param.py └── simu_process.py ├── npm ├── package.json ├── readme.md └── truffle ├── build └── contracts │ ├── DR.json │ ├── DR_MB.json │ ├── Migrations.json │ ├── Power_Consensus.json │ └── postDR.json ├── contracts ├── Demand_Response.sol └── Migrations.sol ├── divers ├── 3_Power_Consensus_m.js ├── 4_postDR_m.js ├── Power_Consensus.sol ├── demand_response.sol └── postDR.sol ├── migrations ├── 1_initial_migration.js └── 2_DR_m.js ├── truffle-config.js └── truffle.js /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/.DS_Store -------------------------------------------------------------------------------- /app-nodejs/blockchain_dr/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/app-nodejs/blockchain_dr/index.js -------------------------------------------------------------------------------- /app-nodejs/public/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/app-nodejs/public/style.css -------------------------------------------------------------------------------- /app-nodejs/test_SC.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/app-nodejs/test_SC.js -------------------------------------------------------------------------------- /app-nodejs/views/index.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/app-nodejs/views/index.ejs -------------------------------------------------------------------------------- /app-nodejs/views/sb_details.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/app-nodejs/views/sb_details.ejs -------------------------------------------------------------------------------- /app-nodejs/views/test.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/app-nodejs/views/test.ejs -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/app.js -------------------------------------------------------------------------------- /boot_script.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/boot_script.py -------------------------------------------------------------------------------- /config/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/config/.gitignore -------------------------------------------------------------------------------- /config/dr_smart_contracts.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/config/dr_smart_contracts.json -------------------------------------------------------------------------------- /config/entity_data_map.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/config/entity_data_map.json -------------------------------------------------------------------------------- /config/messages_param.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/config/messages_param.json -------------------------------------------------------------------------------- /config/pc_address.json: -------------------------------------------------------------------------------- 1 | {"address":"0x1b9beee5131d3d38b7f26ff6bbf35f0259cb8760"} -------------------------------------------------------------------------------- /config/simulation_config_pattern.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/config/simulation_config_pattern.json -------------------------------------------------------------------------------- /config/tweak_params.py: -------------------------------------------------------------------------------- 1 | import json 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /config/type_dr_simu_config/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/config/type_dr_simu_config/.gitignore -------------------------------------------------------------------------------- /config/type_dr_simu_config/GT.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/config/type_dr_simu_config/GT.json -------------------------------------------------------------------------------- /config/type_dr_simu_config/GT_QUAD_50PV_50EV.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/config/type_dr_simu_config/GT_QUAD_50PV_50EV.json -------------------------------------------------------------------------------- /config/type_dr_simu_config/GT_noPV_noEV.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/config/type_dr_simu_config/GT_noPV_noEV.json -------------------------------------------------------------------------------- /config/type_dr_simu_config/GT_pattern.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/config/type_dr_simu_config/GT_pattern.json -------------------------------------------------------------------------------- /config/type_dr_simu_config/LPT.json: -------------------------------------------------------------------------------- 1 | { 2 | 3 | } -------------------------------------------------------------------------------- /config/type_dr_simu_config/RTP.json: -------------------------------------------------------------------------------- 1 | { 2 | 3 | } -------------------------------------------------------------------------------- /config/type_dr_simu_config/TOU.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/config/type_dr_simu_config/TOU.json -------------------------------------------------------------------------------- /doc/architecture.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/doc/architecture.JPG -------------------------------------------------------------------------------- /entities/.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | -------------------------------------------------------------------------------- /entities/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /entities/fault_management.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/entities/fault_management.py -------------------------------------------------------------------------------- /entities/res_data/windmill_prod.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/entities/res_data/windmill_prod.csv -------------------------------------------------------------------------------- /entities/res_data/windmill_prod_75k_100.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/entities/res_data/windmill_prod_75k_100.csv -------------------------------------------------------------------------------- /entities/res_data/windmill_prod_75k_50.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/entities/res_data/windmill_prod_75k_50.csv -------------------------------------------------------------------------------- /entities/res_data/windmill_prod_75k_50_1.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/entities/res_data/windmill_prod_75k_50_1.csv -------------------------------------------------------------------------------- /entities/res_fault/res_fault.json: -------------------------------------------------------------------------------- 1 | {} 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /entities/res_fault/res_fault_pattern.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/entities/res_fault/res_fault_pattern.json -------------------------------------------------------------------------------- /entities/sb_scheduler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/entities/sb_scheduler.py -------------------------------------------------------------------------------- /entities/sg_entity_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/entities/sg_entity_model.py -------------------------------------------------------------------------------- /entities/sg_entity_param.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/entities/sg_entity_param.py -------------------------------------------------------------------------------- /entities/simu_process.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/entities/simu_process.py -------------------------------------------------------------------------------- /npm: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/readme.md -------------------------------------------------------------------------------- /truffle/build/contracts/DR.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/truffle/build/contracts/DR.json -------------------------------------------------------------------------------- /truffle/build/contracts/DR_MB.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/truffle/build/contracts/DR_MB.json -------------------------------------------------------------------------------- /truffle/build/contracts/Migrations.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/truffle/build/contracts/Migrations.json -------------------------------------------------------------------------------- /truffle/build/contracts/Power_Consensus.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/truffle/build/contracts/Power_Consensus.json -------------------------------------------------------------------------------- /truffle/build/contracts/postDR.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/truffle/build/contracts/postDR.json -------------------------------------------------------------------------------- /truffle/contracts/Demand_Response.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/truffle/contracts/Demand_Response.sol -------------------------------------------------------------------------------- /truffle/contracts/Migrations.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/truffle/contracts/Migrations.sol -------------------------------------------------------------------------------- /truffle/divers/3_Power_Consensus_m.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/truffle/divers/3_Power_Consensus_m.js -------------------------------------------------------------------------------- /truffle/divers/4_postDR_m.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/truffle/divers/4_postDR_m.js -------------------------------------------------------------------------------- /truffle/divers/Power_Consensus.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/truffle/divers/Power_Consensus.sol -------------------------------------------------------------------------------- /truffle/divers/demand_response.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/truffle/divers/demand_response.sol -------------------------------------------------------------------------------- /truffle/divers/postDR.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/truffle/divers/postDR.sol -------------------------------------------------------------------------------- /truffle/migrations/1_initial_migration.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/truffle/migrations/1_initial_migration.js -------------------------------------------------------------------------------- /truffle/migrations/2_DR_m.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/truffle/migrations/2_DR_m.js -------------------------------------------------------------------------------- /truffle/truffle-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/truffle/truffle-config.js -------------------------------------------------------------------------------- /truffle/truffle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yh-sh/EnergyManagement/HEAD/truffle/truffle.js --------------------------------------------------------------------------------