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

Feature/move over law #230

Merged
merged 71 commits into from
Dec 6, 2024
Merged

Feature/move over law #230

merged 71 commits into from
Dec 6, 2024

Conversation

EricChen-Lei
Copy link
Contributor

@EricChen-Lei EricChen-Lei commented Nov 11, 2024

PR Details

Description

This is for adding new code in carma messenger ambassador, sumo ambassador and carma messenger vehicle plugin to prepare for the carma messenger integration test

Related GitHub Issue

Related Jira Key

Motivation and Context

How Has This Been Tested?

Types of changes

  • Defect fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that cause existing functionality to change)

Checklist:

  • I have added any new packages to the sonar-scanner.properties file
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@chengyuan0124 chengyuan0124 marked this pull request as ready for review November 18, 2024 05:43
@chengyuan0124 chengyuan0124 requested a review from kjrush November 18, 2024 05:43
log.debug("Added new ns3 registration for vehicle {}", vehicleRole);
}
if(bridgeRegistrationList.containsKey(vehicleRole)){
log.debug("Found bridge registration of vehicle {}, making a carma messenger instance now", vehicleRole);
Copy link
Contributor

Choose a reason for hiding this comment

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

This log says it's making a new instance now, but doesn't seem to trigger anything?

log.debug("Added new bridge registration for vehicle {}", vehicleRole);
}
if(ns3RegistrationList.containsKey(vehicleRole)){
log.debug("Found ns3 registration of vehicle {}, making a carma messenger instance now", vehicleRole);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above, not sure how this functions correctly.

@@ -40,7 +40,7 @@


public class CommonInstanceManager<T extends CommonInstance, R extends CommonRegistrationMessage> {
protected Map<String, T> managedInstances = new HashMap<>();
public Map<String, T> managedInstances = new HashMap<>();
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the rationale for making this public as opposed to adding a getInstances() accessor method or something like that?

Copy link

sonarcloud bot commented Dec 6, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
55.42% Line Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@kjrush kjrush merged commit 9df17c3 into develop Dec 6, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants