Changes between Version 9 and Version 10 of Things To Do
- Timestamp:
- 01/30/10 14:12:14 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Things To Do
v9 v10 89 89 90 90 * ModelFactoryIF 91 * ParameterIF newParameter(TypeIF type, String name); /* like newVariable */ 91 * ParameterIF newParameter(TypeIF type, String name); 92 * creates a new parameter with given name 93 * ModelIF 94 * void addParameter(ParameterIF parameter) 95 * adds a parameter to this model. Parameters are numbered in the order they are added to model, starting from 0. 92 96 * Collection<ParameterIF> parameters(); 93 * ParameterIF getParameter(int id); 94 * ModelIF 95 * ModelIF instantiate(Map<ParameterIF,Object> parameterValues) 97 * returns the list of parameters for this model 98 * ParameterIF getParameter(int i); 99 * returns the i-th parameter for this model. 100 * ModelIF instantiate(Map<ParameterIF,Object> parameterValueMap) 101 * returns the model obtained by substituting the values for the corresponding parameters. Not every parameter need occur as a key in the map. The resulting model will have parameter set that is the difference 96 102 * boolean isParametrized() 103 * equivalent to !parameters.isEmpty() 97 104 * Expression 98 * Expression substitute(ParameterIF parameter, Object> 105 * Expression substitute(Map<ParameterIF,Object> parameterValueMap); 106 * each ParameterExpression gets replaced by a LiteralExpression for the value given in the map. If the parameter does not occur in the map, it remains a ParameterExpression 107 108 Modify methods: 109 110 * complete: needs to determine if model is parameterized 99 111 100 112
