public class Table extends Object
| Modifier and Type | Field and Description |
|---|---|
HashMap |
columnWeights
A HashMap of criteria string keys and string importance weight
values, which are integers between 0 and 10, represented as Strings.
|
HashMap |
rows
A HashMap of HashMap(s), which are the columns.
|
String |
username
The username who owns the table.
|
| Constructor and Description |
|---|
Table() |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(String text) |
void |
addRow(String text) |
Pair[] |
calculateRecommendations()
Calculate the recommended decision that results from the
judgements and weights.
|
void |
fromXML(BasicXMLelement xml)
Read in an XML-formatted String
|
static void |
main(String[] args) |
String |
printRecommendations() |
String |
toHTML(boolean readOnly,
String projectName,
TableAverage average)
Generate an HTML table from the "rows" variable in this class.
|
String |
toXML()
Create an XML-formatted String
|
public String username
public HashMap rows
public HashMap columnWeights
public void addRow(String text)
public void addColumn(String text)
public String printRecommendations()
public String toHTML(boolean readOnly, String projectName, TableAverage average)
public Pair[] calculateRecommendations()
public void fromXML(BasicXMLelement xml)
public String toXML()
public static void main(String[] args)
Copyright © 2015. All rights reserved.