Class Model
java.lang.Object
app.valuationcontrol.multimodule.library.entities.Model
- All Implemented Interfaces:
DataTransformer<ModelData>,ModelProvider
This class is an entity that manages a model
- Author:
- thomas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasData()voidforceModelId(Long modelId) intIterates through all existing variables and return the highest existing variable areaOrderintintintgetTotalNumberOfColumns(boolean startingAtZero) getVariableWithID(long variableId) intvoidsetUseAreaAddress(boolean useAreaAddress)
-
Constructor Details
-
Model
- Parameters:
modelName- is the areaName of the new model to be creatednumberOfHistoricalPeriods- indicates the number of historical periods to be managed in the modelnumberOfProjectionPeriod- indicates the number of projection periods in the model
-
Model
-
Model
public Model()
-
-
Method Details
-
getArraySize
-
indexOfLastColumn
public int indexOfLastColumn() -
getConstantColumn
public int getConstantColumn() -
setUseAreaAddress
public void setUseAreaAddress(boolean useAreaAddress) -
getFirstProjectionColumn
-
getTotalNumberOfColumns
public int getTotalNumberOfColumns(boolean startingAtZero) -
getNumberOfPeriodsAndValue
public int getNumberOfPeriodsAndValue() -
getNumberOfVariables
public int getNumberOfVariables() -
getMaxVariableOrder
Iterates through all existing variables and return the highest existing variable areaOrder- Returns:
- the highest existing variable_order
-
getVariableWithID
-
asData
- Specified by:
asDatain interfaceDataTransformer<ModelData>
-
getModelId
- Specified by:
getModelIdin interfaceModelProvider
-
forceModelId
-
getKeyVariablesForModel
-
getVariableValuesUsedInScenarios
-