Package org.yamcs.mdb
Class BaseSpreadsheetLoader
java.lang.Object
org.yamcs.mdb.AbstractFileLoader
org.yamcs.mdb.BaseSpreadsheetLoader
- All Implemented Interfaces:
SpaceSystemLoader
- Direct Known Subclasses:
SpreadsheetLoader
,V6LoaderBase
,V7LoaderBase
Base for spreadsheet loader - this contains common properties for both V6 and V7 loaders.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Temporary value holder for the enumeration definition; needed because enumerations are read before parameters, and reading sharing the same EPT among all parameters is not a good approach (think different alarm definitions)static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected final SpreadsheetLoadContext
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected jxl.Workbook
Fields inherited from class org.yamcs.mdb.AbstractFileLoader
configName, log, path
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static BaseSpreadsheetLoader.Range
findRange
(jxl.Sheet sheet, int startRow, int col1, int col2) protected jxl.Cell
protected String
getContent
(jxl.Cell[] cells, String colName) protected String
getContent
(jxl.Cell[] cells, String colName, String defaultValue) static ParameterReference
getParameterReference
(SpaceSystem spaceSystem, String paramName) protected boolean
hasColumn
(jxl.Cell[] cells, int idx) protected boolean
protected static boolean
isCellEmpty
(jxl.Cell[] cells, int col) protected boolean
isEmptyOrCommentedOut
(jxl.Cell[] cells) protected static boolean
isRowEmpty
(jxl.Cell[] cells) protected jxl.Cell[]
jumpToRow
(jxl.Sheet sheet, int row) protected void
protected static byte
parseByte
(SpreadsheetLoadContext ctx, String s) protected double
parseDouble
(jxl.Cell cell) protected static double
parseDouble
(SpreadsheetLoadContext ctx, jxl.Cell cell) protected int
protected static int
parseInt
(SpreadsheetLoadContext ctx, String s) protected jxl.Sheet
switchToSheet
(String sheetName, boolean required) protected void
validateNameType
(String name) Methods inherited from class org.yamcs.mdb.AbstractFileLoader
getConfigName, needsUpdate, writeConsistencyDate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.yamcs.mdb.SpaceSystemLoader
getWriter, isWritable, load, loadList
-
Field Details
-
SHEET_GENERAL
- See Also:
-
SHEET_CHANGELOG
- See Also:
-
SHEET_CALIBRATION
- See Also:
-
SHEET_TELEMETERED_PARAMETERS
- See Also:
-
SHEET_LOCAL_PARAMETERS
- See Also:
-
SHEET_DERIVED_PARAMETERS
- See Also:
-
SHEET_CONTAINERS
- See Also:
-
SHEET_ALGORITHMS
- See Also:
-
SHEET_ALARMS
- See Also:
-
SHEET_COMMANDS
- See Also:
-
SHEET_COMMANDOPTIONS
- See Also:
-
SHEET_COMMANDVERIFICATION
- See Also:
-
CN_CONTEXT
- See Also:
-
CN_CALIB_NAME
- See Also:
-
CN_CALIB_TYPE
- See Also:
-
CN_CALIB_CALIB1
- See Also:
-
CN_CALIB_CALIB2
- See Also:
-
CN_CALIB_DESCRIPTION
- See Also:
-
CALIB_TYPE_ENUMERATION
- See Also:
-
CALIB_TYPE_POLYNOMIAL
- See Also:
-
CALIB_TYPE_SPLINE
- See Also:
-
CALIB_TYPE_JAVA_EXPRESSION
- See Also:
-
CALIB_TYPE_TIME
- See Also:
-
PARAM_ENGTYPE_STRING
- See Also:
-
PARAM_ENGTYPE_BOOLEAN
- See Also:
-
PARAM_ENGTYPE_BINARY
- See Also:
-
PARAM_ENGTYPE_ENUMERATED
- See Also:
-
PARAM_ENGTYPE_DOUBLE
- See Also:
-
PARAM_ENGTYPE_UINT32
- See Also:
-
PARAM_ENGTYPE_INT32
- See Also:
-
PARAM_ENGTYPE_UINT64
- See Also:
-
PARAM_ENGTYPE_INT64
- See Also:
-
PARAM_ENGTYPE_FLOAT
- See Also:
-
PARAM_ENGTYPE_TIME
- See Also:
-
PARAM_RAWTYPE_FLOAT
- See Also:
-
PARAM_RAWTYPE_INT
- See Also:
-
PARAM_RAWTYPE_UINT
- See Also:
-
PARAM_RAWTYPE_DOUBLE
- See Also:
-
PARAM_RAWTYPE_BOOLEAN
- See Also:
-
PARAM_RAWTYPE_BINARY
- See Also:
-
PARAM_RAWTYPE_BINARY_PREPENDED
- See Also:
-
PARAM_RAWTYPE_BINARY_TERMINATED
- See Also:
-
PARAM_RAWTYPE_STRING
- See Also:
-
ctx
-
workbook
protected jxl.Workbook workbook -
headers
-
h
-
-
Constructor Details
-
BaseSpreadsheetLoader
- Throws:
ConfigurationException
-
-
Method Details
-
jumpToRow
protected jxl.Cell[] jumpToRow(jxl.Sheet sheet, int row) -
loadWorkbook
protected void loadWorkbook() -
switchToSheet
-
isEmptyOrCommentedOut
protected boolean isEmptyOrCommentedOut(jxl.Cell[] cells) -
hasColumn
protected boolean hasColumn(jxl.Cell[] cells, int idx) -
hasColumn
-
parseInt
-
parseDouble
protected double parseDouble(jxl.Cell cell) -
parseInt
-
parseDouble
-
parseByte
-
getContent
-
getContent
-
getCell
-
findRange
protected static BaseSpreadsheetLoader.Range findRange(jxl.Sheet sheet, int startRow, int col1, int col2) -
isCellEmpty
protected static boolean isCellEmpty(jxl.Cell[] cells, int col) -
isRowEmpty
protected static boolean isRowEmpty(jxl.Cell[] cells) -
getParameterReference
-
validateNameType
-