Class EvaluationContext

java.lang.Object
org.qubership.atp.dataset.migration.formula.model.EvaluationContext

public class EvaluationContext extends Object
  • Method Details

    • getContext

      public static EvaluationContext getContext()
    • getCellAddress

      public static String getCellAddress(org.apache.poi.ss.usermodel.Cell cell)
    • put

      public ParameterAssociation put(ExcelEvaluator excelEvaluator, org.apache.poi.ss.usermodel.Cell cell, ParameterData parameterSup)
      store data for future parameter calculation.
      Parameters:
      excelEvaluator - formulas calculator
      cell - excel cell to be calculation
      parameterSup - data set parameter data used to set value
      Returns:
      parameter to be calculated
    • put

      public void put(String address, ParameterAssociation parameter)
    • get

      public ParameterAssociation get(CellData cellData)
    • clear

      public void clear()
    • evaluateAndFlushAll

      public void evaluateAndFlushAll(ExcelEvaluator evaluateWith, DsServicesFacade flushWith, FalloutReport report, org.apache.poi.xssf.usermodel.XSSFWorkbook book)
      Evaluates all ParameterAssociation's currently in context by using evaluateWith, imports them into ds service using flushWith.
    • getParametersToBeCalculated

      public Stream<ParameterAssociation> getParametersToBeCalculated()