-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from jgrguric96/hotfix/ModelConstructor
Hotfix collection for ModelConstructor class
- Loading branch information
Showing
5 changed files
with
94 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
scenario: | ||
name: "AddingNumbers" # in mosaik so called world | ||
start_time: '2012-01-02 00:00:00' # ISO 8601 start time of the simulation | ||
end_time: '2012-01-02 00:00:10' # duration in seconds | ||
time_resolution: 900 # time step in seconds. Defaults to 15 minutes (900 s) | ||
results: './out.csv' | ||
models: # list of models for the energy network | ||
- name: Adder1 # name for the model (must be unique) | ||
type: Adder # most match the class inheriting from IlluminatorConstructor | ||
inputs: | ||
in1: 10 # input-name: initial value, default value will be used if not defined | ||
in2: 20 | ||
outputs: | ||
out1: 0 | ||
parameters: | ||
param1: "adding tens" | ||
- name: Adder2 | ||
type: Adder # models can reuse the same type | ||
inputs: | ||
in1: 100 # input-name: initial value, default value will be used if not defined | ||
in2: 200 | ||
outputs: | ||
out1: 0 | ||
parameters: | ||
param1: "adding hundreds" | ||
connections: | ||
- from: Adder1.out1 # start model, pattern: model_name.output_name/input_name | ||
to: Adder2.in1n # end model | ||
# TODO: Below is what Illuminator looks for, but is not valid. Needs to be fixed | ||
# - from: Adder1-0.hybrid_0.out1 | ||
# to: Adder2-0.hybrid_0.in1 | ||
|
||
#monitor: # a list of models, its inputs, output and states to be monitored and logged | ||
#- Adder2.out2 # pattern model_name.state_name | ||
monitor: | ||
file: './out.csv' | ||
items: | ||
- Adder2.out2 | ||
|
||
|
||
|
||
|
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
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