Skip to content

Add a convenient function to get optional property from an optional module #1192

@mathbagu

Description

@mathbagu
  • Do you want to request a feature or report a bug?
    Feature

  • What is the current behavior?
    There is a function to get an optional property from a ModuleConfig, but there is no convenient method to get such property from an optional module. In the PR SecurityAnalysisImpl multithread fixes alternative implementations #1169, we try to get an optional int property from an optional module.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

  • What is the expected behavior?
    Provide a convenient method for all supported property types and refactor the code written in the PR SecurityAnalysisImpl multithread fixes alternative implementations #1169.

  • What is the motivation / use case for changing the behavior?
    Make the API more user friendly

  • Please tell us about your environment:

    • PowSyBl Version: ...
    • OS Version: ...
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, spectrum, etc)

(if a question doesn't apply, you can delete it)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions