|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ac.ua.broker.output.textual.PriceDescriptorNode
public class PriceDescriptorNode
This class is used as a node in the price tree that is generated using the brokering results to represent a textual cost overview.
Constructor Summary | |
---|---|
PriceDescriptorNode(java.lang.String description)
Constructor for PriceDescriptorNode |
|
PriceDescriptorNode(java.lang.String description,
double p)
Constructor for PriceDescriptorNode |
Method Summary | |
---|---|
void |
addChildren(java.util.List<PriceDescriptorNode> childs)
Add the provided list of child nodes to the price tree node |
java.util.List<PriceDescriptorNode> |
getChildren()
|
java.lang.String |
getDescription()
|
java.lang.Double |
getPrice()
|
boolean |
hasChildren()
|
void |
setPrice(java.lang.Double p)
Setter for the price associated with the price tree node |
void |
toFile(com.csvreader.CsvWriter csvWriter)
Write the information of the price tree node to file using the provided CsvWriter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PriceDescriptorNode(java.lang.String description)
description
- string description of the price tree nodepublic PriceDescriptorNode(java.lang.String description, double p)
description
- string description of the price tree nodep
- price associated with the price tree nodeMethod Detail |
---|
public java.util.List<PriceDescriptorNode> getChildren()
public void addChildren(java.util.List<PriceDescriptorNode> childs)
childs
- list of children to add to the price tree nodepublic java.lang.String getDescription()
public java.lang.Double getPrice()
public void setPrice(java.lang.Double p)
p
- the price associated with the price tree nodepublic boolean hasChildren()
public void toFile(com.csvreader.CsvWriter csvWriter)
csvWriter
- the writer to use to write the price tree node information to
file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |