-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic simulation framework set up, bringing in some legacy code
1 parent
9e47f4f
commit 1d00a57
Showing
5 changed files
with
58 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
|
||
|
||
class Market(): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class Generator(): | ||
def __init__(self, nameplate_MW): | ||
self.nameplate_MW = nameplate_MW | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from .model.generator import Generator | ||
from .model.energy_market import Market | ||
|
||
class Simulation(): | ||
""" | ||
A simulation defines the way in which an electricity market is set up. | ||
This object provides a minimal implementation and example of the simulation api. | ||
This api can then be used as a standalone package, or linked to a server (ie http/ws/zmq) | ||
""" | ||
def __init__(): | ||
self.market = | ||
|
||
def add_generator(label, type, nameplate_MW): | ||
"""Add a generator to the simulation.""" | ||
g = Generator(nameplate_MW) | ||
|
||
|
||
class SimulationFactory(): | ||
|
||
def get_scenario(scenario_type): | ||
return Scenario() |