Examples of SeriesType


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

      ObservationMatcherOp op) {
    IObservationFieldMatcher matcher = null;

    // Currently requires long band name to be specified.
    if (!"".equals(fieldValue)) {
      SeriesType type = SeriesType.getSeriesFromDescription(fieldValue);
      matcher = new SeriesTypeFieldMatcher(type, op);

      // Check that we didn't classify something else as "unspecified".
      if (type == SeriesType.Unspecified
          && !fieldValue.equalsIgnoreCase("unspecified")) {
View Full Code Here

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

  @Override
  public boolean matches(ValidObservation ob) {
    boolean result = false;

    SeriesType value = getValueUnderTest(ob);

    switch (op) {
    case EQUALS:
      result = value == testValue;
      break;
View Full Code Here

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

      // SeriesType.delete(SeriesType
      // .getSeriesFromDescription(description));
      // }

      // Create the series type and send out a notification.
      SeriesType type = null;
      Color color = colorChooser.getColor();

      type = SeriesType.create(description, description, color, false,
          true);
View Full Code Here

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

      // Create a new series with the adjusted magnitude.
      if (!magDeltaDlg.isCancelled()) {
        magDelta = magDeltaField.getValue();

        SeriesType type = seriesSelector.getSeries();
        List<ValidObservation> obs = seriesInfo.getObservations(type);

        String description = String.format("%s shifted by %s", type
            .getDescription(), NumericPrecisionPrefs
            .formatMag(magDelta));
        String shortName = String.format("%s + %s",
            type.getShortName(), NumericPrecisionPrefs
                .formatMag(magDelta));
        Color color = type.getColor();

        // SeriesType newType = SeriesType.create(description,
        // shortName,
        // color, true, true);

        // TODO: why does plot zoom cause a shift series to disappear?

        SeriesType newType = type;

        List<ValidObservation> newObs = new ArrayList<ValidObservation>(
            obs);
        for (ValidObservation newOb : newObs) {
          Magnitude newMag = new Magnitude(newOb.getMag() + magDelta,
View Full Code Here

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

      return mag;
    }

    private SeriesType getBand(Matcher magMatcher) {
      SeriesType seriesType = null;

      String bandStr = magMatcher.group(4);

      if (bandStr.equals("C")) {
        return SeriesType.Unknown;
View Full Code Here

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

    SingleSeriesSelectionDialog seriesDlg = new SingleSeriesSelectionDialog(
        model);

    if (!seriesDlg.isCancelled()) {
      // Get the mean magnitude.
      SeriesType series = seriesDlg.getSeries();
      List<ValidObservation> obs = seriesInfo.getObservations(series);
      // TODO: how should this be computed? B-V or arithmetic mean as
      // below?
      magnitude = DescStats.calcMagMeanInRange(obs,
          JDTimeElementEntity.instance, 0, obs.size() - 1)[DescStats.MEAN_MAG_INDEX];
View Full Code Here

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

            .validate(uncertaintyStr);
        observation.getMagnitude().setUncertainty(uncertainty);
      }

      String filter = fields[4].trim();
      SeriesType band = SeriesType.getSeriesFromShortName(filter);
      observation.setBand(band);

      String transformedStr = fields[5].trim();
      if (!isNA(transformedStr)) {
        boolean transformed = transformedValidator
View Full Code Here

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

    ValidObservation last = null;

    for (ValidObservation curr : obs) {
      if (last != null) {
        int lastIntegerJD = (int) last.getJD();
        SeriesType lastBand = last.getBand();
        SeriesType currBand = curr.getBand();
        if (lastIntegerJD % 9 == 0
            && (currBand == SeriesType.Johnson_V || currBand == SeriesType.Johnson_B)
            && (lastBand == SeriesType.Johnson_V || lastBand == SeriesType.Johnson_B)) {
          addToSubset(curr);
        }
View Full Code Here

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

    Map<SeriesType, Boolean> seriesVisibilityMap = obsModel
        .getSeriesVisibilityMap();

    for (int seriesNum : seriesNumToObsMap.keySet()) {
      SeriesType seriesType = obsModel.getSeriesNumToSrcTypeMap().get(
          seriesNum);
      if (seriesVisibilityMap.get(seriesType)) {

        List<ValidObservation> obs = seriesNumToObsMap.get(seriesNum);
        int index = 0;
View Full Code Here

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

   * @param visibility
   *            Whether this series should be visible.
   * @return Whether or not the visibility of the object changed.
   */
  protected boolean changeSeriesVisibility(int seriesNum, boolean visibility) {
    SeriesType seriesType = seriesNumToSrcTypeMap.get(seriesNum);
    Boolean currVis = this.seriesVisibilityMap.get(seriesType);

    boolean changed = currVis != null && currVis != visibility;

    if (changed) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.