Skip to content

Commit

Permalink
Resources (#124)
Browse files Browse the repository at this point in the history
* Refactor of resources plugin data to reflect the full state of the resources data manager and support run continuity

* Refactor of resources plugin data to reflect the full state of the resources data manager and support run continuity

* Refactor of resources plugin data to reflect the full state of the resources data manager and support run continuity

* Refactor of resources plugin data to reflect the full state of the resources data manager and support run continuity

* Refactor of resources plugin data to reflect the full state of the resources data manager and support run continuity

* Refactor of resources plugin data to reflect the full state of the resources data manager and support run continuity

* Refactor of resources plugin data to reflect the full state of the resources data manager and support run continuity

* update method name
reorder methods

* update resourcesplugindata translationspec

* update proto definitions version

---------

Co-authored-by: Shawn <[email protected]>
Co-authored-by: bischoffz <[email protected]>
  • Loading branch information
3 people authored May 17, 2023
1 parent 3f542da commit df4083a
Show file tree
Hide file tree
Showing 24 changed files with 1,340 additions and 1,197 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ private NIOReportItemHandler getNIOReportItemHandler(Path outputDirectory) {
private Plugin getResourcesPlugin() {
final ResourcesPluginData.Builder builder = ResourcesPluginData.builder();
for (final ResourceId resourcId : Resource.values()) {
builder.addResource(resourcId);
builder.addResource(resourcId,0.0);
}
final ResourcesPluginData resourcesPluginData = builder.build();
return ResourcesPlugin.builder().setResourcesPluginData(resourcesPluginData).getResourcesPlugin();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ public static ResourcesPluginData getStandardResourcesPluginData(long seed) {
ResourcesPluginData.Builder resourcesBuilder = ResourcesPluginData.builder();

for (TestResourceId testResourceId : TestResourceId.values()) {
resourcesBuilder.addResource(testResourceId);
resourcesBuilder.addResource(testResourceId,0.0);
resourcesBuilder.setResourceTimeTracking(testResourceId, testResourceId.getTimeTrackingPolicy());
}

Expand Down
Loading

0 comments on commit df4083a

Please sign in to comment.