-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add notification when move connectable #461
Conversation
Signed-off-by: Slimane AMAR <[email protected]>
92ef6f3
to
1fd93ea
Compare
|
||
@Override | ||
public String toString() { | ||
return "NodeTopologyPoint(" + |
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.
BusTopologyPoint (same error in powsybl-core ...)
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
public void moveConnectable(int node, String voltageLevelId) { | ||
TopologyPoint oldTopologyPoint = TerminalImpl.this.getTopologyPoint(); | ||
super.moveConnectable(node, voltageLevelId); | ||
index.notifyUpdate(connectable, "moveConnectable", oldTopologyPoint, TerminalImpl.this.getTopologyPoint()); |
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.
attribute name "moveConnectable" is not the same as the one in powsybl-core ... (where it is : "terminal" + side)
notifyUpdate("terminal" + (iSide + 1), oldTopologyPoint, terminalExt.getTopologyPoint());
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
public void moveConnectable(String busId, boolean connected) { | ||
TopologyPoint oldTopologyPoint = TerminalImpl.this.getTopologyPoint(); | ||
super.moveConnectable(busId, connected); | ||
index.notifyUpdate(connectable, "moveConnectable", oldTopologyPoint, TerminalImpl.this.getTopologyPoint()); |
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 as above
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
public void moveConnectable(int node, String voltageLevelId) { | ||
TopologyPoint oldTopologyPoint = TerminalImpl.this.getTopologyPoint(); | ||
super.moveConnectable(node, voltageLevelId); | ||
index.notifyUpdate(connectable, "terminal" + getSide(), oldTopologyPoint, TerminalImpl.this.getTopologyPoint()); |
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.
getSide().getNum()
public void moveConnectable(String busId, boolean connected) { | ||
TopologyPoint oldTopologyPoint = TerminalImpl.this.getTopologyPoint(); | ||
super.moveConnectable(busId, connected); | ||
index.notifyUpdate(connectable, "terminal" + getSide(), oldTopologyPoint, TerminalImpl.this.getTopologyPoint()); |
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.
getSide().getNum()
Signed-off-by: Slimane AMAR <[email protected]>
74e5c8b
to
2016ca3
Compare
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.
Fix sonar issues
Signed-off-by: Slimane AMAR <[email protected]>
… into add_notification_when_move_connectable
Quality Gate passedIssues Measures |
Please check if the PR fulfills these requirements
What is the current behavior?
When we move a connectable no notification sent
What is the new behavior (if this is a feature change)?
When we move a connectable a notification is sent
Does this PR introduce a breaking change or deprecate an API?