Package org.cloudsimplus.builders.tables
Class CsvTable
java.lang.Object
org.cloudsimplus.builders.tables.AbstractTable
org.cloudsimplus.builders.tables.CsvTable
- All Implemented Interfaces:
Table
- Direct Known Subclasses:
TextTable
public class CsvTable extends AbstractTable
Prints a table from a given data set, using a Comma Separated Text (CSV) 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, java.lang.String columnTitle)
Adds a column with a given title to the end of the table's columns to be printed.java.lang.String
getLineSeparator()
protected void
printRowClosing()
Prints the string to close a row.protected void
printRowOpening()
CSV files doesn't have a row opening line.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.AbstractTable
addColumn, addColumn, addColumn, addColumn, addColumnList, getColumns, getColumnSeparator, getPrintStream, getRows, getTitle, newRow, print, printColumnHeaders, setColumnSeparator, setPrintStream, setTitle
-
Constructor Details
-
Method Details
-
printTitle
public void printTitle()CSV files doesn't have a title.- Specified by:
printTitle
in classAbstractTable
-
printTableOpening
public void printTableOpening()CSV files doesn't have a table opening line.- Specified by:
printTableOpening
in classAbstractTable
-
printTableClosing
public void printTableClosing()CSV files doesn't have a table closing line.- Specified by:
printTableClosing
in classAbstractTable
-
printRowOpening
protected void printRowOpening()CSV files doesn't have a row opening line.- Specified by:
printRowOpening
in classAbstractTable
-
printRowClosing
protected void printRowClosing()Description copied from class:AbstractTable
Prints the string to close a row.- Specified by:
printRowClosing
in classAbstractTable
-
getLineSeparator
public java.lang.String getLineSeparator() -
addColumn
Description copied from interface:Table
Adds a column with a given title to the end of the table's columns to be printed.- Parameters:
index
- the position to insert the column into the column's listcolumnTitle
- The title of the column to be added.- Returns:
- the created column
-