Package org.cloudsimplus.builders.tables
Class HostHistoryTableBuilder
java.lang.Object
org.cloudsimplus.builders.tables.TableBuilderAbstract<HostStateHistoryEntry>
org.cloudsimplus.builders.tables.HostHistoryTableBuilder
public class HostHistoryTableBuilder extends TableBuilderAbstract<HostStateHistoryEntry>
Builds a table for printing
HostStateHistoryEntry
entries from the
Host.getStateHistory()
.
It defines a set of default columns but new ones can be added
dynamically using the addColumn()
methods.
The basic usage of the class is by calling its constructor,
giving a Host to print its history, and then
calling the TableBuilderAbstract.build()
method.
- Since:
- CloudSim Plus 2.3.2
- Author:
- Manoel Campos da Silva Filho
-
Constructor Summary
Constructors Constructor Description HostHistoryTableBuilder(Host host)
Instantiates a builder to print the history of a Host using the a defaultTextTable
.HostHistoryTableBuilder(Host host, Table table)
Instantiates a builder to print the history of a Host using the a givenTable
. -
Method Summary
Modifier and Type Method Description protected void
createTableColumns()
Creates the columns of the table and define how the data for those columns will be got from an object inside theTableBuilderAbstract.list
of objects to be printed.Methods inherited from class org.cloudsimplus.builders.tables.TableBuilderAbstract
addColumn, addColumn, addColumnDataFunction, addDataToRow, build, column, getTable, removeColumn, removeColumn, setObjectList, setTable, setTitle
-
Constructor Details
-
HostHistoryTableBuilder
Instantiates a builder to print the history of a Host using the a defaultTextTable
. To use a differentTable
, check the alternative constructors.- Parameters:
host
- the Host to get the history to print
-
HostHistoryTableBuilder
Instantiates a builder to print the history of a Host using the a givenTable
.- Parameters:
host
- the Host to get the history to printtable
- theTable
used to build the table with the Cloudlets data
-
-
Method Details
-
createTableColumns
protected void createTableColumns()Description copied from class:TableBuilderAbstract
Creates the columns of the table and define how the data for those columns will be got from an object inside theTableBuilderAbstract.list
of objects to be printed.- Specified by:
createTableColumns
in classTableBuilderAbstract<HostStateHistoryEntry>
-