-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add type property to constant, design parameter and state variable arrays #25
Comments
For example,
|
Although adding a 'type' property is not a very object-oriented way to do things, it will help us from having three different constant arrays for string, integer and float. In other words, checking and branching on type is a no-no in the OO world. |
Nothing uses this, so I don't know if we need this. |
Having an integer type for design parameters and state variables might be a match for a search algorithm that implements integer programming technology. However, I am having trouble getting my mind around string values for DP & SV. Perhaps this is not an issue. The change might be worthwhile simply to clean up how constants are handled. |
In my opinion, a 'design' is a set of values that are the instances of 'design definition' variables. They need not have anything to do with the computational aspects of the design. That is, they need not be used in or be the result from the equation set. Instead, they are carried with the design to specify it. I feel that all types (for example, float, integer, and string) should be possible. |
Consider adding type: "string", "integer" and "float" to each constant, design parameter and state variable entry.
The text was updated successfully, but these errors were encountered: