Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
S src
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 62
    • Issues 62
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OPAL
  • src
  • Issues
  • #654

Closed
Open
Created Jun 01, 2021 by kraus@krausDeveloper

Add Attribute Type PredefinedString

Attributes of type PredefinedString should only accept strings which are contained in a predefined set of strings. For each such attribute the set of accepted strings have to be provided to the constructor. The input of the user is then checked and if the provided string isn't contained in the predefined set an exception is thrown. Examples for such attributes are the attribute FSTYPE of the FIELDSOLVER command which accepts FFT, FFTPERIODIC, SAAMG and NONE or the attribute EMISSIONMODEL of the DISTRIBUTION command which accepts NONE, ASTRA and NONEQUIL.

The list of accepted strings as well as the default value, if any, are added to the help message.

The type of most UpperCaseString attributes can be change to PredefinedString.

Edited Jun 02, 2021 by kraus
Assignee
Assign to
OPAL 2021.1
Milestone
OPAL 2021.1 (Past due)
Assign milestone
Time tracking