Ticket #1107 (closed: fixed)
Allow validator to be specified with IFunction parameters
Reported by: | Anders Markvardsen | Owned by: | Anders Markvardsen |
---|---|---|---|
Priority: | major | Milestone: | Iteration 23 |
Component: | Keywords: | ||
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description
Parameter of IFunctions are currently declared using declareParameter(). Extend this to allow a validator to be added with each parameter.
Change History
comment:1 Changed 11 years ago by Anders Markvardsen
- Owner set to Anders Markvardsen
- Status changed from new to assigned
comment:2 Changed 10 years ago by Anders Markvardsen
- Status changed from assigned to accepted
Perhaps the need to allow validator is less urgent since IConstraints can be used to encourage parameters to stay within limits, and this can be defined in the init() method of IFunction implementations. However, depending on the penalty factor applied a constraint may be violated in which case it might be useful to inform users about this. Finally perhaps such warning messages could be thrown from IConstraint implementations instead of IFunction implementations.
comment:3 Changed 10 years ago by Anders Markvardsen
- Status changed from accepted to testing
- Resolution set to fixed
Note: See
TracTickets for help on using
tickets.