Action #693

Feature #692: Perform an extensive interface review of all classes

Review interface for GModelSpectral classes

Added by Knödlseder Jürgen almost 12 years ago. Updated about 11 years ago.

Status:ClosedStart date:01/12/2013
Priority:NormalDue date:
Assigned To:Knödlseder Jürgen% Done:

100%

Category:-Estimated time:0.00 hour
Target version:00-08-00
Duration:

Recurrence

No recurrence.


Related issues

Related to GammaLib - Action #773: Review model module classes Closed 02/20/2013

History

#1 Updated by Knödlseder Jürgen almost 12 years ago

The interface for all derived classes from GModelSpectral should be reviewed.

Each class should have a constructor that allows full autonomous construction of the model. This means that it has to take all parameters as arguments that a required to build the model. So far this is not the case. Some of the parameters that are rarely changed may be defined with default values.

Each class should have methods to retrieve and to set all parameters. Parameter names should be consistent throughout all classes. So far, classes have generally get methods but no set methods.

We may also add to GModelSpectral a general parameter access operator, so that parameters can be accessed through the abstract interface. The operator can take indices, but it could also take names. Maybe we should have both.

#2 Updated by Knödlseder Jürgen over 11 years ago

  • Status changed from New to Feedback
  • Assigned To set to Knödlseder Jürgen
  • % Done changed from 0 to 100
  • Remaining (hours) set to 0.0

Done with action #733.

#3 Updated by Knödlseder Jürgen about 11 years ago

  • Status changed from Feedback to Closed
  • Estimated time set to 0.00

Also available in: Atom PDF