{"action":"opened","issue":{"url":"https://api.github.com/repos/tbeu/Modelica/issues/38","repository_url":"https://api.github.com/repos/tbeu/Modelica","labels_url":"https://api.github.com/repos/tbeu/Modelica/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/tbeu/Modelica/issues/38/comments","events_url":"https://api.github.com/repos/tbeu/Modelica/issues/38/events","html_url":"https://github.com/tbeu/Modelica/issues/38","id":177021471,"number":38,"title":"application of choices annotation on enumerations","user":{"login":"modelica-trac-importer","id":22202507,"avatar_url":"https://avatars.githubusercontent.com/u/22202507?v=3","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tbeu/Modelica/labels/C:%20--Modelica%20Specification--","name":"C: --Modelica Specification--","color":"0000aa"},{"url":"https://api.github.com/repos/tbeu/Modelica/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/tbeu/Modelica/labels/P:%20normal","name":"P: normal","color":"edf1f2"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-14T21:08:09Z","updated_at":"2016-09-14T21:08:09Z","closed_at":null,"body":"**Reported by eichler on 25 May 2011 08:45 UTC**\nthe idea: use a existing enumeration in a choicebox with a restricted number of choices.\r\n\r\nthis could avoid the definition of an additional enumeration type with almost the same options/choices.\r\n\r\nexample:\r\n\r\n```\r\n\ttype Dynamics=enumeration(DynamicFreeInitial \"DynamicFreeInitial\",\r\n\t\tFixedInitial \"FixedInitial\",\r\n\t\tSteadyStateInitial \"SteadyStateInitial\",\r\n\t\tSteadyState \"SteadyState\")\"definition of balance equations\";\r\n\t\r\n\tparameter Types.Dynamics energyDynamics=Dynamics.DynamicFreeInitial \r\n\t\t// only two alternatives are allowed, so restrict the choices at the GUI to the both\r\n\t\tannotation(choices(\r\n\t\t\tchoice= Dynamics.DynamicFreeInitial,\r\n\t\t\tchoice= Dynamics.FixedInitial));\r\n\r\n```\n\nMigrated-From: https://trac.modelica.org/Modelica/ticket/559"}}
{"actor":{"display_login":"modelica-trac-importer"}}