コード例 #1
0
  public SpreadsheetResultCalculator(
      Spreadsheet spreadsheet,
      IDynamicObject targetModule,
      Object[] params,
      IRuntimeEnv env,
      SpreadsheetTraceObject spreadsheetTraceObject) {
    super();

    this.spreadsheet = spreadsheet;
    this.targetModule = targetModule;
    this.params = params;
    this.env = env;
    this.results = new Object[spreadsheet.getHeight()][spreadsheet.getWidth()];
    this.spreadsheetTraceObject = spreadsheetTraceObject;
  }
コード例 #2
0
  public SpreadsheetResultCalculator(
      Spreadsheet spreadsheet,
      IDynamicObject targetModule,
      Object[] params,
      IRuntimeEnv env,
      Object[][] preCalculatedResult) {
    super();

    this.spreadsheet = spreadsheet;
    this.targetModule = targetModule;
    this.params = params;
    this.env = env;
    if (preCalculatedResult == null)
      this.results = new Object[spreadsheet.getHeight()][spreadsheet.getWidth()];
    else this.results = clonePrecalculatedResults(preCalculatedResult);
  }
コード例 #3
0
 public final int height() {
   return spreadsheet.getHeight();
 }