Class MarkdownTable

All Implemented Interfaces:
Table

public class MarkdownTable extends CsvTable
Prints a Markdown table from a given data set.
Since:
CloudSim Plus 6.4.3
Author:
Manoel Campos da Silva Filho
  • Constructor Details

    • MarkdownTable

      public MarkdownTable()
    • MarkdownTable

      public MarkdownTable(String title)
      Creates a Table
      Parameters:
      title - the title of the table
  • Method Details

    • rowOpening

      protected String rowOpening()
      Description copied from class: CsvTable
      CSV files don't have a row opening line.
      Overrides:
      rowOpening in class CsvTable
      Returns:
    • printTitle

      public void printTitle()
      Description copied from class: CsvTable
      CSV files don't have a title.
      Overrides:
      printTitle in class CsvTable
    • printTableOpening

      public void printTableOpening()
      Description copied from class: CsvTable
      CSV files don't have a table opening line.
      Overrides:
      printTableOpening in class CsvTable
    • subtitleHeaderOpening

      protected String subtitleHeaderOpening()
      Description copied from class: AbstractTable
      Returns the string that has to precede the subtitle head.
      Overrides:
      subtitleHeaderOpening in class CsvTable
      Returns:
      the string that has to precede the subtitle head
    • printTableClosing

      public void printTableClosing()
      There is no need for a table closing in Markdown.
      Overrides:
      printTableClosing in class CsvTable
    • getLineSeparator

      public String getLineSeparator()
      Overrides:
      getLineSeparator in class CsvTable
    • newColumn

      public TableColumn newColumn(String title, String subtitle, String format)
      Description copied from interface: Table
      Cretes a column with a given title, subtitle and format. The created column is not added to the table.
      Specified by:
      newColumn in interface Table
      Overrides:
      newColumn in class CsvTable
      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: