public class TimeTableData extends TableData
missingValue| 构造器 | 说明 |
|---|---|
TimeTableData() |
Constructor
|
TimeTableData(DataTable dataTable,
String timeColName) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
DataTable |
ave_Day(List<DataColumn> cols) |
Average daily
|
DataTable |
ave_DayOfWeek(List<DataColumn> cols) |
Average by day of week
|
DataTable |
ave_Hour(List<DataColumn> cols) |
Average Hourly
|
DataTable |
ave_HourOfDay(List<DataColumn> cols) |
Average by hour of day
|
DataTable |
ave_Month(List<DataColumn> cols) |
Average month by month
|
DataTable |
ave_MonthOfYear(List<DataColumn> cols) |
Average monthly
|
DataTable |
ave_SeasonOfYear(List<DataColumn> cols) |
Average seasonal
|
DataTable |
ave_Year(List<DataColumn> cols) |
Average year by year
|
DataTable |
ave_Year(List<DataColumn> cols,
int year) |
Average year
|
DataTable |
ave_YearMonth(List<DataColumn> cols,
int month) |
Average month by year
|
List<DataRow> |
getDataByDate(int year,
int month,
int day) |
Get data row list by date
|
List<DataRow> |
getDataByDate(int year,
int month,
int day,
int hour) |
Get data row list by date
|
List<DataRow> |
getDataByDate(Date date,
List<DataRow> drs) |
Get data row list by date
|
List<DataRow> |
getDataByDate_Hour(Date date,
List<DataRow> drs) |
Get data row list by date - hour
|
List<DataRow> |
getDataByDayOfWeek(int dow) |
Get data row list by day of week
|
List<DataRow> |
getDataByHour(int hour) |
Get data row list by hour
|
List<DataRow> |
getDataByMonth(int month) |
Get data row list by month
|
List<DataRow> |
getDataBySeason(String season) |
Get data row list by year
|
List<DataRow> |
getDataByYear(int year) |
Get data row list by year
|
List<DataRow> |
getDataByYearMonth(int year,
int month) |
Get data row list by year and month
|
List<DataRow> |
getDataByYearMonth(String yearMonth) |
Get data row list by year and month
|
static List<Date> |
getDateList(Date stdate,
Date enddate,
String tdtype,
int timeDelt) |
Get date list - String
|
List<Date> |
getDates_Day() |
Get days
|
List<Date> |
getDates_Hour() |
Get date hours
|
String |
getTimeColName() |
Get time column name
|
int |
getTimeIndex(Date t) |
Get time index
|
List<Integer> |
getTimeIndex(Date st,
Date et,
int step) |
Get time index
|
List<Integer> |
getTimeIndex(List<Date> ts) |
Get time index list
|
int |
getTimeIndex_Ex(Date t) |
Get time index
|
List<String> |
getYearMonths() |
Get year months
|
List<Integer> |
getYears() |
Get years
|
void |
readASCIIFile(String fileName,
int timeColIdx,
String formatStr) |
Read data table from ASCII file
|
void |
readASCIIFile(String fileName,
int timeColIdx,
String formatStr,
List<DataColumn> dataColumns) |
Read data table from ASCII file
|
void |
setTimeColName(String value) |
Set time column name
|
DataTable |
sum_Day(List<DataColumn> cols) |
Summary daily
|
DataTable |
sum_DayOfWeek(List<DataColumn> cols) |
Summary by day of week
|
DataTable |
sum_Hour(List<DataColumn> cols) |
Summary Hourly
|
DataTable |
sum_HourOfDay(List<DataColumn> cols) |
Summary by hour of day
|
DataTable |
sum_Month(List<DataColumn> cols) |
Summary month by month
|
DataTable |
sum_MonthOfYear(List<DataColumn> cols) |
Summary month of year
|
DataTable |
sum_SeasonOfYear(List<DataColumn> cols) |
Summary seasonal
|
DataTable |
sum_Year(List<DataColumn> cols) |
Average year by year
|
DataTable |
sum_YearMonth(List<DataColumn> cols,
int month) |
Sum month by year
|
TimeTableData |
timeOrder(Date stdate,
Date enddate,
String tdtype,
int timeDelt) |
Time order for data
|
addColumn, addColumn, addColumn, addColumn, addColumnData, addColumnData, addColumnData, addRow, addRow, addRows, appendRow, avg, avg, cloneTable_Field, colSelect, findColumn, findColumns, findColumns_Index, getColumnCount, getColumnData, getColumnData, getColumnData, getColumnNames, getColumns, getRowCount, getRows, getRows, getRows, getTableName, getTag, getTotalCount, getValue, getValue, hasTimeColumn, head, isReadOnly, join, join, join, max, max, min, min, newRow, removeColumn, removeJoin, removeRow, removeRow, removeRows, renameColumn, renameColumn, renameColumn, saveAsASCIIFile, saveAsASCIIFile, saveAsASCIIFile_format, saveAsCSVFile, saveAsCSVFile, select, select, select, select, select, select, select, select, select, select, select, select, setColumnData, setReadOnly, setRows, setTableName, setTag, setValue, setValue, setValues, tail, toString, toString, toString, toStringaddColumnData, addColumnData, ave_DayOfWeek, ave_HourOfDay, ave_Month, ave_MonthOfYear, ave_SeasonOfYear, ave_stdev, ave_Year, average, clone, columnToDouble, getDataByDayOfWeek, getDataByHour, getDataByMonth, getDataBySeason, getDataByYear, getDataByYearMonth, getDataByYearMonth, getDataColumns, getMissingValue, getRow, getValidColumnValues, getValidColumnValues, getYearMonths, getYears, join, join, readASCIIFile, readASCIIFile, readASCIIFile, readASCIIFile, removeColumn, setColumnData, setMissingValue, sqlSelect, statistics, statistics, sum, toSingleRowTable, toSingleRowTable, toSingleRowTablepublic String getTimeColName()
getTimeColName 在类中 TableDatapublic void setTimeColName(String value)
value - Time column namepublic void readASCIIFile(String fileName, int timeColIdx, String formatStr, List<DataColumn> dataColumns) throws FileNotFoundException, IOException, Exception
fileName - File nametimeColIdx - Time column indexformatStr - Time format stringdataColumns - Data columnsFileNotFoundExceptionIOExceptionExceptionpublic void readASCIIFile(String fileName, int timeColIdx, String formatStr) throws FileNotFoundException, IOException, Exception
fileName - File nametimeColIdx - Time column indexformatStr - Time format stringFileNotFoundExceptionIOExceptionExceptionpublic int getTimeIndex_Ex(Date t)
t - Timepublic int getTimeIndex(Date t)
t - Timepublic List<Integer> getTimeIndex(List<Date> ts)
ts - Timespublic List<Integer> getTimeIndex(Date st, Date et, int step)
st - Start timeet - End timestep - Steppublic List<DataRow> getDataByYear(int year)
year - The yearpublic List<DataRow> getDataBySeason(String season)
season - The seasonpublic List<DataRow> getDataByYearMonth(String yearMonth)
yearMonth - The year and monthpublic List<DataRow> getDataByYearMonth(int year, int month)
year - The yearmonth - The monthpublic List<DataRow> getDataByDate(Date date, List<DataRow> drs)
date - Date stringdrs - Data rowspublic List<DataRow> getDataByDate_Hour(Date date, List<DataRow> drs)
date - Date stringdrs - Data rowspublic List<DataRow> getDataByDate(int year, int month, int day)
year - The yearmonth - The monthday - The daypublic List<DataRow> getDataByDate(int year, int month, int day, int hour)
year - The yearmonth - The monthday - The dayhour - The hourpublic List<DataRow> getDataByMonth(int month)
month - The monthpublic List<DataRow> getDataByDayOfWeek(int dow)
dow - Day of weekpublic List<DataRow> getDataByHour(int hour)
hour - The hourpublic DataTable ave_Year(List<DataColumn> cols) throws Exception
cols - The data columnsExceptionpublic DataTable ave_Year(List<DataColumn> cols, int year) throws Exception
cols - The data columnsyear - The yearExceptionpublic DataTable sum_Year(List<DataColumn> cols) throws Exception
cols - The data columnsExceptionpublic DataTable ave_YearMonth(List<DataColumn> cols, int month) throws Exception
cols - The data columnsmonth - The monthExceptionpublic DataTable sum_YearMonth(List<DataColumn> cols, int month) throws Exception
cols - The data columnsmonth - The monthExceptionpublic DataTable ave_Month(List<DataColumn> cols) throws Exception
cols - The data columnsExceptionpublic DataTable sum_Month(List<DataColumn> cols) throws Exception
cols - The data columnsExceptionpublic DataTable ave_Day(List<DataColumn> cols) throws Exception
cols - The data columnsExceptionpublic DataTable sum_Day(List<DataColumn> cols) throws Exception
cols - The data columnsExceptionpublic DataTable ave_Hour(List<DataColumn> cols) throws Exception
cols - The data columnsExceptionpublic DataTable sum_Hour(List<DataColumn> cols) throws Exception
cols - The data columnsExceptionpublic DataTable ave_MonthOfYear(List<DataColumn> cols) throws Exception
cols - The data columnsExceptionpublic DataTable sum_MonthOfYear(List<DataColumn> cols) throws Exception
cols - The data columnsExceptionpublic DataTable ave_SeasonOfYear(List<DataColumn> cols) throws Exception
cols - The data columnsExceptionpublic DataTable sum_SeasonOfYear(List<DataColumn> cols) throws Exception
cols - The data columnsExceptionpublic DataTable ave_DayOfWeek(List<DataColumn> cols) throws Exception
cols - The data columnsExceptionpublic DataTable sum_DayOfWeek(List<DataColumn> cols) throws Exception
cols - The data columnsExceptionpublic DataTable ave_HourOfDay(List<DataColumn> cols) throws Exception
cols - The data columnsExceptionpublic DataTable sum_HourOfDay(List<DataColumn> cols) throws Exception
cols - The data columnsExceptionpublic static List<Date> getDateList(Date stdate, Date enddate, String tdtype, int timeDelt) throws FileNotFoundException, IOException, ParseException
stdate - Start dateenddate - End datetdtype - Calendar typetimeDelt - Time delta valueFileNotFoundExceptionIOExceptionParseExceptionpublic TimeTableData timeOrder(Date stdate, Date enddate, String tdtype, int timeDelt) throws IOException, FileNotFoundException, ParseException, Exception
stdate - Start dateenddate - End datetdtype - Calendar typetimeDelt - Time deltaIOExceptionFileNotFoundExceptionParseExceptionExceptionCopyright © 2019. All rights reserved.