Skip to content

Commit

Permalink
add vrsions to simstate and expparamdata
Browse files Browse the repository at this point in the history
  • Loading branch information
bischoffz committed Mar 17, 2024
1 parent 6277459 commit 6b5d054
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,22 @@ public Set<Integer> getExplicitScenarioIds() {
return new LinkedHashSet<>(data.explicitScenarioIds);
}

/**
* Returns the current version of this Simulation Plugin, which is equal to the
* version of the GCM Simulation
*/
public String getVersion() {
return StandardVersioning.VERSION;
}

/**
* Given a version string, returns whether the version is a supported version or
* not.
*/
public static boolean checkVersionSupported(String version) {
return StandardVersioning.checkVersionSupported(version);
}

@Override
public int hashCode() {
return Objects.hash(data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,22 @@ public LocalDate getBaseDate() {
return data.baseDate;
}

/**
* Returns the current version of this Simulation Plugin, which is equal to the
* version of the GCM Simulation
*/
public String getVersion() {
return StandardVersioning.VERSION;
}

/**
* Given a version string, returns whether the version is a supported version or
* not.
*/
public static boolean checkVersionSupported(String version) {
return StandardVersioning.checkVersionSupported(version);
}

@Override
public int hashCode() {
final int prime = 31;
Expand Down

0 comments on commit 6b5d054

Please sign in to comment.