gem/OpenSHA — pull request #10 by larsbutler (2011-11-11 12:24:41+00:00)
Title: Refactored VS30 type constants into an enum

Needed for some changes in the OpenQuake java code base to fix this bug: https://bugs.launchpad.net/openquake/+bug/887577

Basically, we want to do some VS30 type validation in the OpenQuake Disaggregation calculator. In the future, we may add support for new VS30 types; changing the two constants for 'Measured' and 'Inferred' to an enum allows us to write a generic validator that loops over the enum values (and we don't have to update the check code if the enum is changed).