Skip to content

Enhancing load profile source. #1295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

staudtMarius
Copy link
Member

Resolves #1294

@staudtMarius staudtMarius added the enhancement New feature or request label Apr 4, 2025
@staudtMarius staudtMarius self-assigned this Apr 4, 2025
@Override
public LoadValues.Provider buildProvider(
RandomLoadValues loadValue, ZonedDateTime time, RandomLoadProfile loadProfile) {
return last -> loadValue.sample(time);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here last would be a new sampled value while one would expect the sampled value from last time step, isn't this a problem?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it's not last but actual?

@@ -69,7 +69,7 @@ class SqlLoadProfileSourceIT extends Specification implements TestContainerHelpe

then:
value.present
value.get().p.get() == G3_VALUE_00MIN.p.get()
value.get().provide().p.get() == G3_VALUE_00MIN.p.get()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest the usage looks a bit odd, get() and provide() are semantically similar and therfor one could assume to do the same. On the other hand get can be interpreted as the value is available while provide could be interpreted as the value will now be fetched or generated.

So maybe this results in some general question: is this the best way to do so?

@danielfeismann danielfeismann marked this pull request as draft July 23, 2025 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhance load profile sources
2 participants