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
public class TextTable extends CsvTable
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 Type Method Description TableColumn
addColumn(int index, String columnTitle)
Adds a column with a given title to the end of the table's columns to be printed.String
getLineSeparator()
protected void
printColumnHeaders()
void
printTableClosing()
CSV files doesn't have a table closing line.void
printTableOpening()
CSV files doesn't have a table opening line.void
printTitle()
CSV files doesn't have a title.Methods inherited from class org.cloudsimplus.builders.tables.CsvTable
printRowClosing, printRowOpening
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 an 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.
-