Package org.cloudsimplus.builders.tables
Class TextTable
java.lang.Object
org.cloudsimplus.builders.tables.AbstractTable
org.cloudsimplus.builders.tables.CsvTable
org.cloudsimplus.builders.tables.TextTable
- All Implemented Interfaces:
Table
Prints a table from a given data set, using a simple delimited text format.
- Since:
- CloudSim Plus 1.0
- Author:
- Manoel Campos da Silva Filho
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds a column with a given title to the end of the table's columns to be printed.protected void
void
CSV files doesn't have a table closing line.void
CSV files doesn't have a table opening line.void
CSV files doesn't have a title.Methods inherited from class org.cloudsimplus.builders.tables.CsvTable
createHorizontalLine, getCentralizedString, getLengthOfColumnHeadersRow, rowClosing, rowOpening, stringRepeat, subtitleHeaderOpening
Methods inherited from class org.cloudsimplus.builders.tables.AbstractTable
addColumn, addColumn, addColumn, addColumn, addColumnList, getColumns, getColumnSeparator, getPrintStream, getRows, getTitle, newRow, print, setColumnSeparator, setPrintStream, setTitle
-
Constructor Details
-
TextTable
public TextTable() -
TextTable
Creates a Table- Parameters:
title
- Title of the table
-
-
Method Details
-
printTitle
public void printTitle()Description copied from class:CsvTable
CSV files doesn't have a title.- Overrides:
printTitle
in classCsvTable
-
printTableOpening
public void printTableOpening()Description copied from class:CsvTable
CSV files doesn't have a table opening line.- Overrides:
printTableOpening
in classCsvTable
-
printColumnHeaders
protected void printColumnHeaders()- Overrides:
printColumnHeaders
in classAbstractTable
-
printTableClosing
public void printTableClosing()Description copied from class:CsvTable
CSV files doesn't have a table closing line.- Overrides:
printTableClosing
in classCsvTable
-
getLineSeparator
- Overrides:
getLineSeparator
in classCsvTable
-
addColumn
Description copied from interface:Table
Adds a column with a given title to the end of the table's columns to be printed.
-