-
Notifications
You must be signed in to change notification settings - Fork 0
add condition to operating status extension #304
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
Conversation
EtienneLt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small things
| } | ||
|
|
||
| public static String toOperatingStatus(@NonNull final Extendable<?> extendable) { | ||
| public static String toOperatingStatus(@NonNull final Extendable<?> extendable, boolean isTerminalsConnected) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could add a method
public static String toOperatingStatus(@NonNull final Extendable<?> extendable) {
toOperatingStatus(extendable, false);
}There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice !
done
| .p2(nullIfNan(terminal2.getP())) | ||
| .hvdcType(hvdcLine.getConverterStation1().getHvdcType()) | ||
| .operatingStatus(ExtensionUtils.toOperatingStatus(hvdcLine)) | ||
| .operatingStatus(ExtensionUtils.toOperatingStatus(hvdcLine, terminal1.isConnected() || terminal2.isConnected())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it or and not and ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed and done
| .voltageLevelId1(terminal1.getVoltageLevel().getId()) | ||
| .voltageLevelId2(terminal2.getVoltageLevel().getId()) | ||
| .operatingStatus(ExtensionUtils.toOperatingStatus(hvdcLine)) | ||
| .operatingStatus(ExtensionUtils.toOperatingStatus(hvdcLine, terminal1.isConnected() || terminal2.isConnected())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
…' into operating-status-under-condition
|
EtienneLt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test OK code OK



No description provided.