public class SpreadsheetLoader extends AbstractFileLoader
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SpreadsheetLoader.EnumerationDefinition
Temporary value holder for the enumeration definition (because
enumerations are read before parameters, and reading sharing the same EPT
among all parameters is not a good approach (think different alarm
definitions)
|
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,Calibrator> |
calibrators |
protected SpreadsheetLoadContext |
ctx |
protected HashMap<String,SpreadsheetLoader.EnumerationDefinition> |
enumerations |
protected HashMap<String,String> |
javaFormulas |
protected HashSet<Parameter> |
outputParameters |
protected HashMap<String,Parameter> |
parameters |
protected SpaceSystem |
rootSpaceSystem |
protected static String |
SHEET_ALARMS |
protected static String |
SHEET_ALGORITHMS |
protected static String |
SHEET_CALIBRATION |
protected static String |
SHEET_CHANGELOG |
protected static String |
SHEET_COMMANDOPTIONS |
protected static String |
SHEET_COMMANDS |
protected static String |
SHEET_COMMANDVERIFICATION |
protected static String |
SHEET_CONTAINERS |
protected static String |
SHEET_DERIVED_PARAMETERS |
protected static String |
SHEET_GENERAL |
protected static String |
SHEET_LOCAL_PARAMETERS |
protected static String |
SHEET_TELEMETERED_PARAMETERS |
protected HashMap<String,String> |
stringEncodings |
protected jxl.Workbook |
workbook |
configName, log, path| Constructor and Description |
|---|
SpreadsheetLoader(Map<String,Object> config) |
SpreadsheetLoader(String filename) |
| Modifier and Type | Method and Description |
|---|---|
String |
getConfigName()
The filename used to save the database after all the loaders have loaded it, is based on a
concatenation of the config names returned by the loaders.
|
protected boolean |
hasColumn(jxl.Cell[] cells,
int idx) |
protected jxl.Cell[] |
jumpToRow(jxl.Sheet sheet,
int row) |
SpaceSystem |
load()
loads the SpaceSystem database in memory.
|
protected void |
loadAlarmsSheet(SpaceSystem spaceSystem,
String sheetName) |
protected void |
loadAlgorithmsSheet(SpaceSystem spaceSystem,
String sheetName) |
protected void |
loadCalibrationSheet(SpaceSystem spaceSystem,
String sheetName) |
protected void |
loadChangelogSheet(boolean required) |
protected void |
loadCommandOptionsSheet(SpaceSystem spaceSystem,
String sheetName) |
protected void |
loadCommandSheet(SpaceSystem spaceSystem,
String sheetName) |
protected void |
loadCommandVerificationSheet(SpaceSystem spaceSystem,
String sheetName) |
protected void |
loadContainersSheet(SpaceSystem spaceSystem,
String sheetName) |
protected void |
loadGeneralSheet(boolean required) |
protected void |
loadParametersSheet(SpaceSystem spaceSystem,
String sheetName,
DataSource dataSource) |
protected void |
loadSheets() |
protected void |
loadSpaceSystem(String sheetNamePrefix,
SpaceSystem spaceSystem) |
protected String |
requireString(jxl.Cell[] cells,
int column) |
protected jxl.Sheet |
switchToSheet(String sheetName,
boolean required) |
needsUpdate, writeConsistencyDateprotected HashMap<String,Calibrator> calibrators
protected HashMap<String,SpreadsheetLoader.EnumerationDefinition> enumerations
protected final SpreadsheetLoadContext ctx
protected static final String SHEET_GENERAL
protected static final String SHEET_CHANGELOG
protected static final String SHEET_CALIBRATION
protected static final String SHEET_TELEMETERED_PARAMETERS
protected static final String SHEET_LOCAL_PARAMETERS
protected static final String SHEET_DERIVED_PARAMETERS
protected static final String SHEET_CONTAINERS
protected static final String SHEET_ALGORITHMS
protected static final String SHEET_ALARMS
protected static final String SHEET_COMMANDS
protected static final String SHEET_COMMANDOPTIONS
protected static final String SHEET_COMMANDVERIFICATION
protected jxl.Workbook workbook
protected SpaceSystem rootSpaceSystem
public SpreadsheetLoader(String filename)
public String getConfigName()
DatabaseLoadergetConfigName in interface DatabaseLoadergetConfigName in class AbstractFileLoaderpublic SpaceSystem load()
SpaceSystemLoaderprotected void loadSheets()
throws SpreadsheetLoadException
SpreadsheetLoadExceptionprotected void loadSpaceSystem(String sheetNamePrefix, SpaceSystem spaceSystem)
protected void loadGeneralSheet(boolean required)
protected void loadCalibrationSheet(SpaceSystem spaceSystem, String sheetName)
protected void loadParametersSheet(SpaceSystem spaceSystem, String sheetName, DataSource dataSource)
protected void loadContainersSheet(SpaceSystem spaceSystem, String sheetName)
protected void loadCommandSheet(SpaceSystem spaceSystem, String sheetName)
protected void loadCommandOptionsSheet(SpaceSystem spaceSystem, String sheetName)
protected void loadCommandVerificationSheet(SpaceSystem spaceSystem, String sheetName)
protected void loadChangelogSheet(boolean required)
protected void loadAlgorithmsSheet(SpaceSystem spaceSystem, String sheetName)
protected void loadAlarmsSheet(SpaceSystem spaceSystem, String sheetName)
protected boolean hasColumn(jxl.Cell[] cells,
int idx)
protected jxl.Sheet switchToSheet(String sheetName, boolean required)
protected jxl.Cell[] jumpToRow(jxl.Sheet sheet,
int row)
protected String requireString(jxl.Cell[] cells, int column)
Copyright © 2018 Space Applications Services. All rights reserved.