Skip to content
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

Speed Limits-cleanup #1275

Merged
merged 12 commits into from
Jan 7, 2022
Merged

Speed Limits-cleanup #1275

merged 12 commits into from
Jan 7, 2022

Conversation

kianzarrin
Copy link
Collaborator

@kianzarrin kianzarrin commented Jan 5, 2022

Scope: In this PR I have done nothing more than to rename some methods inside Speed Limit Manager. This PR is a precursor to #1266.

Objective: the naming of the methods are confusing. And we don't need 2 methods, one for fast access and one for slow access!

Changes:

I now use the following naming standard:

  • if the objective is to get pre-calculated value, method name has Get Prefix
  • if the objective is to recalculate value, method name has Calculate Prefix

Also There is no need to expose Calculate in the API so I replaced it with a simple Get Method.

Compatibility:

The only place where Speed Limit Manager is used externally is in Adaptive Networks and this PR does not break AN compatibility.

@kianzarrin kianzarrin changed the base branch from master to netutil-cleanup1 January 5, 2022 16:16
@kianzarrin kianzarrin self-assigned this Jan 5, 2022
@kianzarrin kianzarrin added code cleanup Refactor code, remove old code, improve maintainability SPEED LIMITS Feature: Speed limits labels Jan 5, 2022
Copy link
Collaborator

@kvakvs kvakvs left a comment

Choose a reason for hiding this comment

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

Looks nice

Copy link
Member

@krzychu124 krzychu124 left a comment

Choose a reason for hiding this comment

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

👍

@krzychu124 krzychu124 mentioned this pull request Jan 6, 2022
Base automatically changed from netutil-cleanup1 to master January 7, 2022 17:34
@kianzarrin kianzarrin merged commit 9177ef5 into master Jan 7, 2022
@kianzarrin kianzarrin deleted the SL-cleanup branch January 7, 2022 17:40
@krzychu124 krzychu124 mentioned this pull request Jan 8, 2022
@kianzarrin kianzarrin mentioned this pull request Jan 8, 2022
7 tasks
@originalfoo originalfoo added this to the 11.6.0 milestone Jan 14, 2022
@originalfoo originalfoo changed the title Sl-cleanup Speed Limits-cleanup Jan 18, 2022
@originalfoo originalfoo modified the milestones: 11.6.0, 11.6.2 Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code cleanup Refactor code, remove old code, improve maintainability SPEED LIMITS Feature: Speed limits
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants