亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? solution.java

?? 一個用java寫的地震分析軟件(無源碼)
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
    method if a different set of defaults is desired. */
    public void setDefaultValues() {
        // make new instances here rather then setValue() because that would
        // set the modified flag true.
        type                = new DataString("H");
        validFlag	        = new DataLong(DefaultValidFlag);
        eventType	        = new DataString(EventTypeMap.getDefault());
        processingState     = new DataString(DefaultProcessingState);
//        depthFixed	        = new DataBoolean(false);
//        locationFixed	   = new DataBoolean(false);
//        timeFixed	        = new DataBoolean(false);
    }

    /** Set value of isStale flag. If true, solution should be relocated. */
    public void setStale (boolean tf) {
           isStale = tf;
           // setStale=true forces need for commit but setStale=false does NOT
           // That must be done only after a commit();
           if (tf) setNeedsCommit(true); // stale event need commit
    }

    /** True if changes have been made to the phase list and a relocation is
    needed.  */
    public boolean hasStaleLocation () { return isStale; };
    public boolean isStale () { return isStale; };

    public void setNeedsCommit(boolean tf) {
       needsCommit = tf;
    }
    /** Returns true if the solution or magnitude needs to be committed to the
     *  data source. */
    public boolean getNeedsCommit() {
       return needsCommit || hasChanged() || magnitude.hasChanged();
    }

    /** Return a string describing the results of the commit() operation.
    This is the same message that would be returned by
    JasiCommitException.getMessage() if an exception is thrown. */
    public String getCommitStatus() {
      return commitStatus;
    }

    /** True if changes have been made to the coda or amp list and a magnitude should be
     * recalculated.  */
    public boolean hasStaleMagnitude () { return magnitude.hasStaleMagnitude(); };

    /** Set DataObject null only if its not already. Otherwise the 'Update' flag would get
    set even if there was no real change. This should be faster then creating
    new instances of the data objects. */
    public void resetValue(DataObject dataObject) {
      if (!dataObject.isNull()) dataObject.setNull(true);
    }

    /**
     * Set all location dependent fields to default values.
     * This should be done before parsing a relocation
     * to insure old values from an earlier location are not left by an imperfect parse
     * of a subsequent location result.
     */
    public void clearLocationAttributes () {

     resetValue(datetime);

//	if (!datetime.isNull()) datetime.setNull(true);
  resetValue(lat);
  resetValue(lon);
  resetValue(depth);

  resetValue(horizDatum) ;
  resetValue(vertDatum) ;
//	resetValue(type) ;
//	resetValue(eventType) ;
  resetValue(method) ;
  resetValue(crustModel) ;
  resetValue(velModel) ;
  resetValue(authority) ;
  resetValue(source) ;
  resetValue(gap) ;
  resetValue(distance) ;
  resetValue(rms) ;
  resetValue(errorTime) ;
  resetValue(errorHoriz) ;
  resetValue(errorVert) ;
  resetValue(errorLat) ;
  resetValue(errorLon) ;

  resetValue(totalReadings) ;
  resetValue(usedReadings) ;
  resetValue(sReadings) ;
  resetValue(firstMotions) ;
  resetValue(externalId) ;
  resetValue(quality) ;

//	resetValue(processingState) ;

//	resetValue(depthFixed) ;
//	resetValue(locationFixed) ;
//	resetValue(timeFixed) ;

     setDefaultValues();
  
	   // BEGIN DK CODE CHANGE 020403
     /* also notify the phases for this solution, that they
        are being unassociated with the CURRENT LOCATION */
    this.phaseList.clearLocationAttributes();
	   // END DK CODE CHANGE 020403

    }
/**
 *  Load any phases that are associated with this Solution in the DataSource to this
 *  Solution's phaseList.  Note that references are used, the phases are
 *  not copied.  Returns a count of the number of phases that were added. Sets
 *  staleLocation 'true' if phases are added */
    public boolean loadPhaseList() {
  return addPhases(Phase.create().getBySolution(this));

    }

    /** @deprecated: use loadPhaseList() */
    public boolean getPhases() {
//	return addPhases(Phase.create().getBySolution(this));
     return loadPhaseList();
    }

/**
 *  Return the PhaseList. */
    public PhaseList getPhaseList() {
      return phaseList;
    }
/**
 * Given a Collection of Phases, add any phases that are associated with this
 *  Solution to its phaseList.  Note that references are used, the phases are
 *  not copied.  Returns a count of the number of phases that were added. Sets
 *  staleLocation 'true' if phases are added */
    public boolean addPhases(Collection newList) {

     if (phaseList.addAll(newList)) {
        setStale(true);
        return true;
     } else {
        return false;
     }
    }

/**
 * Add the phase to the  phaseList ONLY if the phase is associated with
 *  this Solution.  Sets staleLocation 'true' and returns 'true' if the phase
 *  was added.  */
    public boolean addPhase(Phase ph)  {
  if (ph.sol == this) {                   // must be associated with this sol
      if (phaseList.add(ph)) {
    setStale(true);
    return true;
      }
  }
  return false;
    }

/**
 * Delete the phase from the  phaseList ONLY if the phase is associated with
 *  this Solution.  Sets staleLocation 'true' and returns 'true' if the phase
 *  was deleted.  */
    public boolean deletePhase(Phase ph)  {

      if (ph != null && ph.sol == this) {                   // must be associated with this sol
        if (phaseList.delete(ph)) {
          setStale(true);
          return true;
        }
      }
      return false;
    }

/**
 * Overrides PhaseList.addOrReplacePhase() to set solution stale.
 */
 public Phase addOrReplacePhase(Phase ph) {
    setStale(true);
    return phaseList.addOrReplacePhase(ph);

}
/**
 * Remove this phase from the phaseList. Returns 'true' if the phase was in the
 * list to start with. NOTE: this should NOT be confused with Phase.delete()
 * which marks a phase for deletion from the data source. Sets staleLocation
 * 'true' if phases are removed. */

public boolean removePhase(Phase ph) {
    if (phaseList.remove(ph) ) {
  setStale(true);
  return true;
    }

    return false;

}
/**
 * Given a Collection of Phases, remove any phases that are associated with this
 *  Solution from its phaseList.Sets staleLocation 'true' if phases are
 *  removed. Returns the number of phases removed. NOTE: this should NOT be
 *  confused with Phase.delete() which marks a phase for deletion from the data
 *  source.
 * */
    public int removePhases(Collection phaseList) {
  if (phaseList == null) return 0;

  Phase ph[] = new Phase[phaseList.size()];
  phaseList.toArray(ph);

  int knt = 0;

  for (int i = 0; i<ph.length; i++) {
      if (removePhase(ph[i])) knt++  ;
  }
  return knt;
    }
/**
 * Delete the amp from the  ampList ONLY if it is associated with
 *  this Solution.  Sets magnitude stale and returns 'true' if the amp
 *  was deleted.  */
    public boolean deleteAmplitude(Amplitude amp)  {
  if (amp.sol == this) {                   // must be associated with this sol
      if (ampList.delete(amp)) {
          if (magnitude.ampList.contains(amp)) {
             magnitude.ampList.delete(amp);
       magnitude.setStale(true);
          }
          return true;
      }
  }
  return false;
    }
/**
 * Delete the coda from the codaList ONLY if it is associated with
 *  this Solution.  Sets magnitude stale and returns 'true' if the coda
 *  was deleted.  */
    public boolean deleteCoda(Coda coda)  {
  if (coda.sol == this) {                   // must be associated with this sol
      if (codaList.delete(coda)) {
          if (magnitude.codaList.contains(coda)) {
             magnitude.codaList.delete(coda);
       magnitude.setStale(true);
          }
          return true;
      }
  }
  return false;
    }

/**
* Given a Collection of Codas, add any that are associated with this
*  Solution to its coda list.  Note that references are used, the codas are
*  not copied.  Returns a count of the number that were added. Sets
*  staleMagnitude 'true' if any are added.
*/
    public int addCodas(Collection list) {

    if (list == null || list.isEmpty()) return 0;

  Coda coda[] = new Coda[list.size()];
  list.toArray(coda);

  int knt = 0;

  for (int i = 0; i<coda.length; i++) {
      if (addCoda(coda[i])) knt++  ;    // only adds if its for this Sol

  }
  return knt;
    }
/**
 *  Return the CodaList. */
    public CodaList getCodaList() {
      return codaList;
    }
/**
*  Add any codas that are associated in the DataSource to this
*  Solution's coda list.  Note that references are used, the codas are
*  not copied.  Returns a count of the number that were added. Sets
*  staleMagnitude 'true' if any are added.
*/
    public int loadCodaList() {
  return addCodas(Coda.create().getBySolution(this));

    }
    /** @deprecated: use loadCodaList() */
    public int getCodas() {
  return addCodas(Coda.create().getBySolution(this));

    }
/**
* Add one coda to the solution's list ONLY if it is associated with
*  this Solution.  Sets staleMagnitude 'true' and returns 'true' if the coda
*  was added.
*/
    public boolean addCoda(Coda coda)
    {
  if (coda.sol == this) {
      if (codaList.add(coda)) {
    magnitude.setStale(true);
    return true;
      }
  }
  return false;
    }
/**
* Remove this coda from the coda list. Returns 'true' if the coda was in the
* list to start with. NOTE: this should NOT be confused with Coda.delete()
* which marks a Coda for deletion from the data source. Sets staleMagnitude
* 'true' if codas are removed.
*/
    public boolean removeCoda(Coda coda)
    {
    if (codaList.remove(coda) ) {
        magnitude.setStale(true);
  return true;
    }

    return false;

}



/**
 *  Add any amps that are associated in the DataSource to this
 *  Solution's ampList.  Note that references are used, the amps are
 *  not copied.  Returns a count of the number that were added. Sets
 *  staleMagnitude 'true' if any are added <p>
 *  Amps may be associated with the solution that are not associated with
 *  its magnitude. */
    public int loadAmpList()  {
  return addAmps(Amplitude.create().getBySolution(this));

    }
/**
 *  Add any amps that are associated in the DataSource to this
 *  Solution's magnitude.  Note that references are used, the amps are
 *  not copied.  Returns a count of the number that were added. Sets
 *  staleMagnitude 'true' if any are added <p>
 *  Amps may be associated with the solution that are not associated with
 *  its magnitude. */
    public void loadMagAmpList() {

           // add amps to the sol's mag's list...
       if (magnitude != null)
           addAmps (Amplitude.create().getByMagnitude(magnitude) );
    }


/** Return this Solution's AmpList. */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕一区二区在线观看| 亚洲成av人影院在线观看网| 亚洲色图欧美偷拍| 日韩精品电影一区亚洲| 高清在线不卡av| 9191国产精品| 亚洲欧美另类综合偷拍| 国内外成人在线视频| 欧美日韩在线播| 最新不卡av在线| 国产美女精品在线| 日韩三级av在线播放| 亚洲一区精品在线| 91蜜桃网址入口| 国产免费观看久久| 国产综合色产在线精品| 日韩一区二区三区观看| 亚洲一区二区不卡免费| 91片在线免费观看| 国产精品久久久久久久久果冻传媒 | 久久激情五月婷婷| 欧美日韩久久久久久| 亚洲欧美精品午睡沙发| caoporen国产精品视频| 久久婷婷国产综合国色天香| 日韩av中文在线观看| 在线播放一区二区三区| 亚洲婷婷综合色高清在线| 成人av在线资源| 中文久久乱码一区二区| 成人动漫视频在线| 国产精品久久福利| 91免费国产在线观看| 亚洲欧美激情视频在线观看一区二区三区| 国产成人综合自拍| 国产日韩影视精品| 成人美女视频在线观看| 国产精品久久久久久久久免费桃花 | 亚洲精品国产a久久久久久| 91一区二区三区在线观看| 亚洲天堂福利av| 色先锋aa成人| 亚洲国产裸拍裸体视频在线观看乱了 | 麻豆国产精品一区二区三区| 91精品国产高清一区二区三区| 天天综合网天天综合色| 日韩午夜在线影院| 国产精品影视在线观看| 国产精品美女久久久久久2018| 国产成人精品一区二| 中文字幕在线不卡视频| 91亚洲国产成人精品一区二三| 中文字幕亚洲综合久久菠萝蜜| 91丝袜美女网| 五月激情六月综合| 欧美mv日韩mv亚洲| 风间由美性色一区二区三区| 国产精品丝袜久久久久久app| 成人精品一区二区三区四区 | 91精品国产综合久久精品麻豆| 日韩av一级片| 国产欧美日韩三级| 91麻豆产精品久久久久久| 午夜欧美2019年伦理| 337p粉嫩大胆色噜噜噜噜亚洲| 国产suv精品一区二区三区| 一区二区三区在线高清| 91精品国产一区二区三区蜜臀| 国内成人免费视频| 亚洲女人小视频在线观看| 69精品人人人人| 国产91高潮流白浆在线麻豆 | 一区二区三区精密机械公司| 欧美日韩你懂得| 国产一区二区精品在线观看| 玉米视频成人免费看| 日韩欧美的一区| 成人av动漫在线| 美美哒免费高清在线观看视频一区二区 | 久久国产剧场电影| 亚洲人成精品久久久久| 日韩一区二区精品在线观看| www.日韩大片| 日韩高清在线一区| 综合亚洲深深色噜噜狠狠网站| 91精品免费在线观看| 99久久综合精品| 久久激情综合网| 亚洲不卡一区二区三区| 亚洲国产精品高清| 日韩免费电影网站| 欧美日韩激情一区二区| 成人精品亚洲人成在线| 麻豆精品视频在线| 午夜精品视频一区| 亚洲视频一二区| 久久色视频免费观看| 欧美精品一卡两卡| 色婷婷av一区二区三区gif| 国产一区在线精品| 麻豆91在线看| 偷窥少妇高潮呻吟av久久免费| 亚洲欧美日韩成人高清在线一区| 久久综合九色综合97_久久久 | 亚洲综合成人在线视频| 亚洲国产岛国毛片在线| 精品久久五月天| 欧美成va人片在线观看| 欧美福利一区二区| 在线电影国产精品| 欧美三级在线播放| 欧美日韩在线三级| 欧美日韩三级在线| 欧美日韩亚洲不卡| 在线国产亚洲欧美| 欧美伊人久久久久久午夜久久久久| 不卡影院免费观看| av不卡免费在线观看| 9色porny自拍视频一区二区| 丁香亚洲综合激情啪啪综合| 成人精品在线视频观看| jlzzjlzz亚洲女人18| 91丨九色丨国产丨porny| 97精品视频在线观看自产线路二 | 精品一区二区综合| 国产资源在线一区| 国产精品影视网| 成人免费毛片片v| 99精品一区二区| 色综合色综合色综合色综合色综合 | 99国产一区二区三精品乱码| 成人18精品视频| 色综合天天综合| 色噜噜久久综合| 欧美日韩国产在线播放网站| 在线不卡欧美精品一区二区三区| 欧美夫妻性生活| 久久一区二区三区国产精品| 久久天天做天天爱综合色| 国产精品久久久久久久久动漫| 亚洲天堂a在线| 亚洲成人av电影在线| 九九视频精品免费| 岛国av在线一区| 欧美性色综合网| 欧美v日韩v国产v| 中文字幕av一区二区三区| 亚洲激情自拍偷拍| 日本成人在线看| 成熟亚洲日本毛茸茸凸凹| 色视频成人在线观看免| 欧美一区二区女人| 中文一区在线播放| 亚洲国产视频a| 韩国女主播一区二区三区| 91在线视频观看| 欧美一级专区免费大片| 国产精品美女久久久久av爽李琼| 亚洲自拍偷拍九九九| 国产原创一区二区三区| 色综合天天在线| 欧美成人猛片aaaaaaa| 日韩久久一区二区| 美女脱光内衣内裤视频久久影院| 国产91丝袜在线播放九色| 欧美人与性动xxxx| 中文字幕精品一区二区精品绿巨人 | 91麻豆国产在线观看| 精品国产亚洲在线| 亚洲午夜精品网| 成人动漫在线一区| 日韩欧美在线综合网| 亚洲黄色av一区| 成人涩涩免费视频| 日韩亚洲欧美高清| 亚洲在线免费播放| 成人午夜精品在线| 欧美成人a在线| 性久久久久久久| 色呦呦国产精品| 国产精品蜜臀在线观看| 久久精品国产第一区二区三区 | 波多野洁衣一区| 精品国产免费久久| 视频在线观看一区| 在线一区二区三区四区| 中文字幕视频一区二区三区久| 寂寞少妇一区二区三区| 欧美一区二区观看视频| 亚洲成人激情综合网| 91麻豆福利精品推荐| 欧美高清在线精品一区| 狠狠狠色丁香婷婷综合激情| 欧美日韩成人在线一区| 亚洲主播在线观看| 欧美在线免费播放| 亚洲国产综合色| 欧美视频三区在线播放| 一区二区三区四区高清精品免费观看| 成人一区二区三区视频在线观看|