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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classTemporary 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
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected final SpreadsheetLoadContextprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected jxl.WorkbookFields inherited from class org.yamcs.mdb.AbstractFileLoader
configName, log, path -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static BaseSpreadsheetLoader.RangefindRange(jxl.Sheet sheet, int startRow, int col1, int col2) protected jxl.Cellprotected StringgetContent(jxl.Cell[] cells, String colName) protected StringgetContent(jxl.Cell[] cells, String colName, String defaultValue) static org.yamcs.xtce.util.ParameterReferencegetParameterReference(org.yamcs.xtce.SpaceSystem spaceSystem, String paramName) protected booleanhasColumn(jxl.Cell[] cells, int idx) protected booleanprotected static booleanisCellEmpty(jxl.Cell[] cells, int col) protected booleanisEmptyOrCommentedOut(jxl.Cell[] cells) protected static booleanisRowEmpty(jxl.Cell[] cells) protected jxl.Cell[]jumpToRow(jxl.Sheet sheet, int row) protected voidprotected static byteparseByte(SpreadsheetLoadContext ctx, String s) protected doubleparseDouble(jxl.Cell cell) protected static doubleparseDouble(SpreadsheetLoadContext ctx, jxl.Cell cell) protected intprotected static intparseInt(SpreadsheetLoadContext ctx, String s) protected jxl.SheetswitchToSheet(String sheetName, boolean required) protected voidvalidateNameType(String name) Methods inherited from class org.yamcs.mdb.AbstractFileLoader
getConfigName, needsUpdate, writeConsistencyDateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
public static org.yamcs.xtce.util.ParameterReference getParameterReference(org.yamcs.xtce.SpaceSystem spaceSystem, String paramName) -
validateNameType
-