Interface Table

All Known Implementing Classes:
AbstractTable, CsvTable, HtmlTable, LatexTable, MarkdownTable, TextTable

public interface Table
An interface for classes that generate tables from a given data set to show simulation results, following the Builder Design Pattern.
Since:
CloudSim Plus 1.0
Author:
Manoel Campos da Silva Filho
  • Method Details

    • newRow

      List<Object> newRow()
      Adds a new empty row to the list of rows, so that data can be added to the row further.
      Returns:
      the new empty row
    • newColumn

      TableColumn newColumn(String title)
      Creates a column with a given title. The created column is not added to the table.
      Parameters:
      title - The title of the column to create.
      Returns:
      The created column
      See Also:
    • newColumn

      TableColumn newColumn(String title, String subTitle)
      Creates a column with a given title and subtitle. The created column is not added to the table.
      Parameters:
      title - The title of the column to be added.
      subTitle - The subtitle of the column to be added.
      Returns:
      the created column
      See Also:
    • newColumn

      TableColumn newColumn(String title, String subtitle, String format)
      Cretes a column with a given title, subtitle and format. The created column is not added to the table.
      Parameters:
      title - The title of the column to be added.
      subtitle - The subtitle of the column to be added.
      format - format to print the column data
      Returns:
      the created column
      See Also:
    • addColumnList

      Table addColumnList(String... columnTitles)
      Adds a list of columns (with given titles) to the end of the table's columns to be printed, where the column data will be printed without a specific format.
      Parameters:
      columnTitles - The titles of the columns
      Returns:
      the Table instance.
      See Also:
    • getTitle

      String getTitle()
      Returns the table title.
      Returns:
      the table title
    • setTitle

      Table setTitle(String title)
      Returns the table instance.
      Parameters:
      title - the table title to set
      Returns:
      the table instance
    • getColumns

      List<TableColumn> getColumns()
      Returns the list of columns of the table.
      Returns:
      the list of columns of the table
    • colCount

      int colCount()
      Returns the number of columns.
      Returns:
      the number of columns
    • getColumnSeparator

      String getColumnSeparator()
      Returns the string used to separate one column from another (optional).
      Returns:
      the string used to separate one column from another (optional)
    • setColumnSeparator

      Table setColumnSeparator(String columnSeparator)
      Sets the string used to separate one column from another. It's optional to set a column separator.
      Parameters:
      columnSeparator - the separator
      Returns:
      this table instance
    • print

      void print()
      Prints the table.