Class XLInstance
java.lang.Object
app.valuationcontrol.multimodule.library.xlhandler.XLInstance
- All Implemented Interfaces:
ScenarioDataProvider
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXLInstance(Model attachedModel, CalcDocument calcDocument, boolean preloadModel) Create a new instance of an Excel calculation for a model -
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves all sheets apart from the "main" sheet (renamed in the constructor of this class)voidvoidCreate an Excel file formatted as a financial model with areas as tabsString[]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 app.valuationcontrol.multimodule.library.xlhandler.ScenarioDataProvider
getSensitivityResults
-
Field Details
-
INPUT
- See Also:
-
PERCENT
- See Also:
-
YTD_PERIOD
public static final int YTD_PERIOD- See Also:
-
-
Constructor Details
-
XLInstance
Create a new instance of an Excel calculation for a model- Parameters:
attachedModel- the model to be loadedcalcDocument- the reference to the calculation documentpreloadModel- indicates whether the model should be preloaded
-
-
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
-
createPrettyContent
public void createPrettyContent()Create an Excel file formatted as a financial model with areas as tabs -
setAttachedModel
-
isUnusedFor
- Specified by:
isUnusedForin interfaceScenarioDataProvider
-
sleep
public void sleep()- Specified by:
sleepin interfaceScenarioDataProvider
-
clearCacheAndReloadAndUpdateClients
public void clearCacheAndReloadAndUpdateClients()- Specified by:
clearCacheAndReloadAndUpdateClientsin interfaceScenarioDataProvider
-