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 Summary
Modifier and TypeMethodDescriptionaddColumnList(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.intcolCount()Returns the number of columns.Returns the list of columns of the table.Returns the string used to separate one column from another (optional).getTitle()Returns the table title.Creates a column with a given title.Creates a column with a given title and subtitle.Cretes a column with a given title, subtitle and format.newRow()Adds a new empty row to the list of rows, so that data can be added to the row further.voidprint()Prints the table.setColumnSeparator(String columnSeparator) Sets the string used to separate one column from another.Returns the table instance.
-
Method Details
-
newRow
-
newColumn
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
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
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
-
getTitle
-
setTitle
-
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
-
print
void print()Prints the table.
-