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 HashMap<String,List<ContextCalibrator>> |
contextCalibrators |
protected SpreadsheetLoadContext |
ctx |
protected HashMap<String,SpreadsheetLoader.EnumerationDefinition> |
enumerations |
protected HashSet<Parameter> |
outputParameters |
protected HashMap<String,Parameter> |
parameters |
protected SpaceSystem |
rootSpaceSystem |
protected HashMap<String,SpreadsheetLoadContext> |
timeCalibContexts |
protected HashMap<String,String> |
timeCalibEpochs |
protected HashMap<String,String> |
timeCalibScales |
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 boolean |
hasColumn(jxl.Cell[] cells,
String colName) |
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,List<ContextCalibrator>> contextCalibrators
protected HashMap<String,SpreadsheetLoadContext> timeCalibContexts
protected HashMap<String,SpreadsheetLoader.EnumerationDefinition> enumerations
protected final SpreadsheetLoadContext ctx
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 boolean hasColumn(jxl.Cell[] cells,
String colName)
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.