Skip to content

Rename ProfileConfig into Profile and more refactorings #2016

Closed

Description

@karussell

See discussion: #1841 (comment)

  • ProfileConfig -> Profile
  • move classes of routing.profile package into something storage related like com.graphhopper.storage.ev?
  • something else like in Refactoring Packages #583 ? (or close that)

Activity

  1. added this to the 1.0 milestone on Apr 24, 2020
  2. easbar commented on May 5, 2020

    @easbar
    Member

    ProfileConfig -> Profile seems obvious, but then we should do CH/LMProfileConfig -> CH/LMProfile as well. CH/LMProfile(Config) aren't really 'profiles', but merely 'references' indicating that there should be preparations for the according profiles, but I do not have a much better idea atm. Only problem is that CH/LMProfile already exist. These two classes aren't really really related to the Profile(Config) either and they are more or less only used to carry some parameters and objects (like the Weighting) for the preparations. They might be refactored away entirely so they should not be a reason not to rename CH/LMProfileConfig to CH/LMProfile. Since it is not entirely clear what the purpose of (the current) CH/LMProfile classes is its hard to give them a name, maybe we just call them CH/LMConfig? So how about:

    ProfileConfig -> Profile
    CH/LMProfile -> CH/LMConfig
    CH/LMProfileConfig -> CH/LMProfile

    And for 2.0 we will probably remove CH/LMConfig...

  3. karussell commented on May 5, 2020

    @karussell
    MemberAuthor

    So how about

    Yes, sounds good!

    And should we seek for a better package name than com.graphhopper.storage.ev?

    And #583 I would just close for now. (flag encoder will be resolved into some encoded value collections and algorithms subpackage is not worth it as mostly all classes in com.graphhopper.routing are algorithm related)

  4. easbar commented on May 5, 2020

    @easbar
    Member

    I did the renaming in this and the following commits: 90fac00 Lots of trivial changes... I hope the single commits make it a bit easier to update other branches 🙈

  5. karussell commented on May 6, 2020

    @karussell
    MemberAuthor
  6. easbar commented on May 7, 2020

    @easbar
    Member

    Maybe now is a good time for #1147 as well? PathWrapper->ResponsePath? :)

  7. karussell commented on May 8, 2020

    @karussell
    MemberAuthor

    Yes 👍

  8. karussell commented on May 11, 2020

    @karussell
    MemberAuthor

    Maybe now is a good time for #1147 as well? PathWrapper->ResponsePath? :)

    I just noticed that SPTEntry is located at com.graphhopper.storage. Should we move it to com.graphhopper.routing? (maybe move also RoutingCH* classes to com.graphhopper.routing.ch too?)

  9. easbar commented on May 11, 2020

    @easbar
    Member

    Honestly, I do not see much value in maintaining an elaborate (sub) folder structure unless it is about Java package privacy (which we probably could/should use a bit more, but this would require a bit more thought, probably too late for 1.0). For example I am not sure if it makes sense to have a ch package which contains algorithms and graph structures when we already have two packages for routing and graphs/storage. But yes, SPTEntry (and ShortcutUnpacker) certainly seem to not belong into storage).

  10. karussell commented on May 11, 2020

    @karussell
    MemberAuthor

    👍

    But yes, SPTEntry (and ShortcutUnpacker) certainly seem to not belong into storage).

    Ok, will do this (only).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions