Class XLInstance
java.lang.Object
com.easy_model.webservice.xlhandler.XLInstance
- All Implemented Interfaces:
ScenarioDataProvider
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXLInstance(Model attachedModel, CalcDocument calcDocument, ModelChangeNotifier modelChangeNotifier) Connects the XLManager to a new Calc document -
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves all sheets apart from the "main" sheet (renamed in the constructor of this class)voidString[]generateVariableArray(Variable variable) Generates an array containing the metadata, the historical and projection values, including the variableValuesgetContent(SCENARIO scenario) booleanisUnusedFor(Duration inactivityThreshold) voidrefreshValue(Variable myVariable, VariableValue myVariableValue) Use this function to refresh a single variableValue (efficiency optimization)voidvoidreloadVariableAndUpdateCache(Variable variable) voidUse this function to refresh the content Loads the metadata and the variable logic which is replicated for each segment (including "main" segment)voidrunSensitivities(List<Sensitivity> sensitivities, SCENARIO scenario) saveAs()voidsetAttachedModel(Model attachedModel) voidsetSingleValue(VariableValue variableValue) Loads data fromVariableValueand override manually the formula for a single variable value Also applied for historical valuesvoidsleep()voidupdateCacheValues(SCENARIO scenario) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.easy_model.webservice.xlhandler.ScenarioDataProvider
getSensitivityResults
-
Field Details
-
INPUT
- See Also:
-
PERCENT
- See Also:
-
YTD_PERIOD
public static final int YTD_PERIOD- See Also:
-
-
Constructor Details
-
XLInstance
public XLInstance(Model attachedModel, CalcDocument calcDocument, ModelChangeNotifier modelChangeNotifier) Connects the XLManager to a new Calc document
-
-
Method Details
-
saveAs
- Specified by:
saveAsin interfaceScenarioDataProvider
-
reloadAndUpdateClients
public void reloadAndUpdateClients()- Specified by:
reloadAndUpdateClientsin interfaceScenarioDataProvider
-
setSingleValue
Loads data fromVariableValueand override manually the formula for a single variable value Also applied for historical values -
runSensitivities
- Specified by:
runSensitivitiesin interfaceScenarioDataProvider
-
updateCacheValues
-
getContent
- Specified by:
getContentin interfaceScenarioDataProvider- Returns:
- the content of the XL file for a certain scenario
-
generateVariableArray
Generates an array containing the metadata, the historical and projection values, including the variableValues- Parameters:
variable- the variable to generate array for- Returns:
- an array containing all calculates values without variable values
-
cleanAndUpdateAdditionalSheets
public void cleanAndUpdateAdditionalSheets()Removes all sheets apart from the "main" sheet (renamed in the constructor of this class) -
refreshValue
Use this function to refresh a single variableValue (efficiency optimization)- Specified by:
refreshValuein interfaceScenarioDataProvider
-
reloadVariableAndUpdateCache
- Specified by:
reloadVariableAndUpdateCachein interfaceScenarioDataProvider
-
reloadWholeBaseContentIfNoCache
public void reloadWholeBaseContentIfNoCache()Use this function to refresh the content Loads the metadata and the variable logic which is replicated for each segment (including "main" segment)return list of open sheets before reload
-
setAttachedModel
-
isUnusedFor
- Specified by:
isUnusedForin interfaceScenarioDataProvider
-
sleep
public void sleep()- Specified by:
sleepin interfaceScenarioDataProvider
-
clearCacheAndReloadAndUpdateClients
public void clearCacheAndReloadAndUpdateClients()- Specified by:
clearCacheAndReloadAndUpdateClientsin interfaceScenarioDataProvider
-