Class CloudletsTableBuilder
java.lang.Object
org.cloudsimplus.builders.tables.TableBuilderAbstract<Cloudlet>
org.cloudsimplus.builders.tables.CloudletsTableBuilder
Builds a table for printing simulation results from a list of Cloudlets.
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 list of Cloudlets to be printed, and then
calling the TableBuilderAbstract.build() method.
- Since:
- CloudSim Plus 1.0
- Author:
- Manoel Campos da Silva Filho
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCloudletsTableBuilder(List<? extends Cloudlet> list) Instantiates a builder to print the list of Cloudlets using the defaultMarkdownTable.CloudletsTableBuilder(List<? extends Cloudlet> list, Table table) Instantiates a builder to print the list of Cloudlets using the givenTable. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCreates the columns of the table and define how the data for those columns will be got from an object inside theTableBuilderAbstract.listof objects to be printed.setIdFormat(String idFormat) Sets the format for ID columns.setLengthFormat(String lengthFormat) Sets the format for cloudlet length columns.setPeFormat(String peFormat) Sets the format for columns indicating number of PEs.setTimeFormat(String timeFormat) Sets the format for time columns.Methods inherited from class org.cloudsimplus.builders.tables.TableBuilderAbstract
addColumn, addColumn, addDataToRow, build, column, removeColumn, removeColumn, setObjectList, setTable, setTitle
-
Field Details
-
DEF_FORMAT
- See Also:
-
-
Constructor Details
-
CloudletsTableBuilder
Instantiates a builder to print the list of Cloudlets using the defaultMarkdownTable. To use a differentTable, check the alternative constructors.- Parameters:
list- the list of Cloudlets to print
-
CloudletsTableBuilder
-
-
Method Details
-
createTableColumns
protected void createTableColumns()Description copied from class:TableBuilderAbstractCreates the columns of the table and define how the data for those columns will be got from an object inside theTableBuilderAbstract.listof objects to be printed. It doesn't add such columns into a table yet.- Specified by:
createTableColumnsin classTableBuilderAbstract<Cloudlet>- See Also:
-
setTimeFormat
Sets the format for time columns. -
setLengthFormat
Sets the format for cloudlet length columns.- Returns:
- this table builder
-
setIdFormat
Sets the format for ID columns.- Returns:
- this table builder
-
setPeFormat
Sets the format for columns indicating number of PEs.- Returns:
- this table builder
-