Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Adding some utility methods [#368](https://github.com/ie3-institute/simonaAPI/issues/368)
- Extending flex option handling in `ExtInputContainer` [#371](https://github.com/ie3-institute/simonaAPI/issues/371)
- Enhancing `ExtInputContainer` with `hasData` methods [#382](https://github.com/ie3-institute/simonaAPI/issues/382)
- Enhance `ExtSimulation` with getters for new data in `ExtSimAdapterData` [#391](https://github.com/ie3-institute/simonaAPI/issues/391)

### Changed
- Changes to sent and received em data [#2366](https://github.com/ie3-institute/simonaAPI/issues/366)
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/edu/ie3/simona/api/simulation/ExtSimulation.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

package edu.ie3.simona.api.simulation;

import com.typesafe.config.Config;
import edu.ie3.datamodel.models.input.container.JointGridContainer;
import edu.ie3.simona.api.data.ExtSimAdapterData;
import edu.ie3.simona.api.data.connection.ExtDataConnection;
import edu.ie3.simona.api.ontology.simulation.*;
Expand Down Expand Up @@ -121,6 +123,16 @@ protected String[] getMainArgs() {
return data.getMainArgs();
}

/** Returns the config that was provided to the simulation. */
protected Config getConfig() {
return data.getSimonaConfig();
}

/** Returns the grid that was given to SIMONA. */
protected JointGridContainer getGrid() {
return data.getGrid();
}

/** Returns the name of this external simulation. */
public final String getSimulationName() {
return simulationName;
Expand Down