Skip to content

Access refactoring - #1436

Merged
karussell merged 2 commits into
masterfrom
access_refactoring
Feb 19, 2019
Merged

karussell merged 2 commits into
masterfrom
access_refactoring

Conversation

@karussell

@karussell karussell commented Aug 9, 2018 •

Copy link
Copy Markdown
Member

Make access handling for FlagEncoders more readable via a separate and new class (EncodingManager.Access)

Rename AccessValue to Access for SpatialRules

Merge this after #1460 so that we can use this better API in the public TagParser interface instead of "allowed". Probably then also move TagParser out of EncodingManager as it is more related to parsing not encoding the info.


enum Access {
YES,
CONDITIONAL,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good choice 👍

}

boolean canSkip() {
return this.ordinal() == CAN_SKIP.ordinal();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why canSkip?

@karussell karussell Aug 21, 2018 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

like a way for houses or otherwise skippable ways.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for explaining. Maybe this is just me, but I always thought the return 0 to be more a don't accept than a can skip, that's why I asked.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

"can skip" in the sense of do not use it for this flagencoder. So it could be used for another ... still we can use a different wording like "ignore"?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, yeah maybe can skip is not bad from this point of view. Maybe ignore would be better, but I am not sure, I think we can also leave it as it is right now.

@karussell karussell added this to the 0.12 milestone Sep 20, 2018
@karussell karussell mentioned this pull request Jan 12, 2019
13 tasks done
@karussell
karussell merged commit 2d93aa0 into master Feb 19, 2019
@karussell
karussell deleted the access_refactoring branch February 19, 2019 16:41
karussell added a commit that referenced this pull request Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants