Package org.aavso.tools.vstar.data

Examples of org.aavso.tools.vstar.data.MagnitudeModifier


  private Magnitude getNextMagnitude() throws SQLException {

    int fainterThan = source.getInt("fainterthan");

    MagnitudeModifier modifier;
    if (fainterThan == 1) {
      modifier = MagnitudeModifier.FAINTER_THAN;
    } else if (fainterThan == 2) {
      modifier = MagnitudeModifier.BRIGHTER_THAN;
    } else {
View Full Code Here


  // Helpers

  private MagnitudeModifier getMagModValue(String modStr)
      throws ObservationValidationError {
    MagnitudeModifier mod = MagnitudeModifier.NO_DELTA;

    if ("<".equals(modStr)) {
      mod = MagnitudeModifier.FAINTER_THAN;
    } else if (">".equals(modStr)) {
      mod = MagnitudeModifier.BRIGHTER_THAN;
View Full Code Here

      String magStr = magMatcher.group(1);
      Magnitude mag = magValidator.validate(magStr);

      // For magnitudes without a decimal point, divide by 10.
      if (!magStr.contains(".")) {
        MagnitudeModifier modifier = null;

        // Note: This shows that we need to be able to set all fields of
        // a Magnitude object for convenience and to reduce the number
        // of objects created.
        if (mag.isFainterThan()) {
View Full Code Here

TOP

Related Classes of org.aavso.tools.vstar.data.MagnitudeModifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.