Opened 13 years ago

Closed 13 years ago

#98 closed enhancement (fixed)

Use enum to get IMR/ERF class names, names, and instantiate new instances.

Reported by: Kevin Milner Owned by: Peter Powers
Priority: major Milestone: OpenSHA 1.2
Component: sha Version:
Keywords: Cc:


From Peter:

I would like to see all ERF's and IMR's available from an enum. This would avoid having to use reflection to get AttenRel??.NAME as the AttenRel??.NAME could be provided in the enum constructor and made available via toString() or getName(). One could also have a newInstance() method that would do just that. Moreover, a verified() method could be included to filter those attenRels out in applications. Perhaps a preference/control panel could then be used to make them available.

Change History (4)

comment:1 Changed 13 years ago by Peter Powers

Milestone: OpenSHA 1.2
Type: defectenhancement

comment:2 Changed 13 years ago by Peter Powers

Also to include on this ticket: revert AttenuationRelationships? to no-arg constructors; use setWarningListener() in IntensityMeasureRelationship? after initialization.

comment:3 Changed 13 years ago by Peter Powers

IMR's completed in [7881].

  • AttenuationRelationshipInstance? deprecated and will be deleted when ticket is closed.
  • ARI references have been replaced with refs to the AttenRelRef? enum.
  • Deprecated IMR's are no longer picked up by tests and other classes.

comment:4 Changed 13 years ago by Kevin Milner

Resolution: fixed
Status: newclosed

ERF's completed in [7888].

Removed old erfClasses.add(...) style ERF declarations from all apps.

Note: See TracTickets for help on using tickets.