Ticket #1107 (closed: fixed)

Opened 11 years ago

Last modified 5 years ago

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

comment:4 Changed 10 years ago by Steve Williams

  • Status changed from testing to closed

Anders, I guess this is a problem that has gonen away and there is nothing to test. Re-open it if it needs attension. Steve

comment:5 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 1955

Note: See TracTickets for help on using tickets.