• 大小: 161KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-06
  • 语言: 其他
  • 标签: 预测算法  

资源简介

预测数据,根据你输入的一组数据预测下一次数据输出,适用于课程设计。

资源截图

代码片段和文件信息

package longshine.epdsm.forecast;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import longshine.common.DbUtils;
/**
 * 类工厂的抽象类
 */
public abstract class AbstractClassFactory 
{
  protected Map classMap = new HashMap();
  protected abstract  String getSqlStr();
  protected abstract  String getKeyStr();  
  protected abstract  String getFactoryType();  
  
  public  object getInstance(String key)
  {
    try 
    {
      String className = (String)classMap.get(getFactoryType()+key);
      if (className != null) {
        Class clas = Class.forName(className);
        return clas.newInstance();
      }
      ArrayList al;
      al = (ArrayList)DbUtils.getCollection(getSqlStr()key);        
      if (al.size() > 0){
        Map map = (Map)al.get(0);
        className = (String)map.get(“impclass“);
        Class clas = Class.forName(className);
        object afc = clas.newInstance();
        classMap.put(getFactoryType()+keyclassName);
        return afc;
      }; 
    } catch (Exception ex) 
    {
      ex.printStackTrace();
    }
    return null; 
  }  
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-05-06 14:31  forecastarithmetic\
     目录           0  2011-05-06 14:31  forecastarithmetic\src\
     目录           0  2011-05-06 14:31  forecastarithmetic\src\longshine\
     目录           0  2011-05-06 14:31  forecastarithmetic\src\longshine\epdsm\
     目录           0  2011-05-06 14:31  forecastarithmetic\src\longshine\epdsm\forecast\
     文件        1149  2005-08-08 15:38  forecastarithmetic\src\longshine\epdsm\forecast\AbstractClassFactory.java
     文件         947  2005-08-08 15:38  forecastarithmetic\src\longshine\epdsm\forecast\AbstractMapper.java
     目录           0  2011-05-06 14:31  forecastarithmetic\src\longshine\epdsm\forecast\bp\
     文件        5441  2005-10-17 09:05  forecastarithmetic\src\longshine\epdsm\forecast\bp\BpMonNetPowerForeCasting.java
     文件        1320  2005-08-08 15:38  forecastarithmetic\src\longshine\epdsm\forecast\DataPoint.java
     文件       10424  2005-08-08 15:38  forecastarithmetic\src\longshine\epdsm\forecast\DataSet.java
     文件       33602  2006-02-07 17:19  forecastarithmetic\src\longshine\epdsm\forecast\DataSrcFactory.java
     文件       16077  2005-08-08 15:38  forecastarithmetic\src\longshine\epdsm\forecast\DataSrcFactory1.java
     文件        1027  2005-10-11 11:04  forecastarithmetic\src\longshine\epdsm\forecast\FcLogger.java
     文件        7853  2005-11-07 19:26  forecastarithmetic\src\longshine\epdsm\forecast\FcTask.java
     文件        4598  2005-10-11 11:29  forecastarithmetic\src\longshine\epdsm\forecast\FcTaskgroup.java
     文件        2583  2005-10-11 16:32  forecastarithmetic\src\longshine\epdsm\forecast\FcTaskModel.java
     文件        2221  2005-10-11 10:55  forecastarithmetic\src\longshine\epdsm\forecast\ForeCastClassFactory.java
     文件         839  2005-08-08 15:38  forecastarithmetic\src\longshine\epdsm\forecast\ForeCastFactory.java
     文件         756  2005-08-08 15:38  forecastarithmetic\src\longshine\epdsm\forecast\ForeCastTaskMapper.java
     文件        3235  2005-08-08 15:38  forecastarithmetic\src\longshine\epdsm\forecast\ForeCastTaskModel.java
     文件        1375  2005-08-08 15:38  forecastarithmetic\src\longshine\epdsm\forecast\ForeCastTaskParam.java
     目录           0  2011-05-06 14:31  forecastarithmetic\src\longshine\epdsm\forecast\gm\
     文件        4625  2005-08-08 15:40  forecastarithmetic\src\longshine\epdsm\forecast\gm\GM1_1.java
     文件        3374  2005-11-11 11:40  forecastarithmetic\src\longshine\epdsm\forecast\gm\GM1_1AvgPriceForeCasting.java
     文件        2289  2005-08-08 15:40  forecastarithmetic\src\longshine\epdsm\forecast\gm\GM1_1ForeCasting.java
     文件        2434  2005-10-13 18:17  forecastarithmetic\src\longshine\epdsm\forecast\gm\GM1_1MonAvgLoadForeCasting.java
     文件        2434  2005-10-13 18:36  forecastarithmetic\src\longshine\epdsm\forecast\gm\GM1_1MonMaxLoadForeCasting.java
     文件        2399  2005-10-14 15:29  forecastarithmetic\src\longshine\epdsm\forecast\gm\GM1_1MonNetPowerForeCasting.java
     文件        2351  2005-11-09 11:50  forecastarithmetic\src\longshine\epdsm\forecast\gm\GM1_1MonthAllPowerForeCasting.java
     文件        2617  2005-11-08 08:38  forecastarithmetic\src\longshine\epdsm\forecast\gm\GM1_1MonthCompetePowerForeCasting.java
............此处省略123个文件信息

评论

共有 条评论