|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umich.eecs.tac.props.AbstractKeyedEntry<T> edu.umich.eecs.tac.props.AbstractTransportableEntry<Product> edu.umich.eecs.tac.props.RetailCatalog.RetailCatalogEntry
public static class RetailCatalog.RetailCatalogEntry
The retail catalog entry holds the sales profit for a Product
.
Constructor Summary | |
---|---|
RetailCatalog.RetailCatalogEntry()
Creates a retail catalog entry. |
|
RetailCatalog.RetailCatalogEntry(Product product)
Creates a retail catalog entry for a product. |
Method Summary | |
---|---|
Product |
getProduct()
Returns the product. |
double |
getSalesProfit()
Returns the sales profit. |
protected java.lang.String |
keyNodeName()
Returns the Product class. |
protected void |
readEntry(se.sics.isl.transport.TransportReader reader)
Reads the sales profit from the reader. |
protected void |
setProduct(Product product)
Sets the product. |
protected void |
setSalesProfit(double salesProfit)
Sets the sales profit. |
protected void |
writeEntry(se.sics.isl.transport.TransportWriter writer)
Writes the sales profit to the writer. |
Methods inherited from class edu.umich.eecs.tac.props.AbstractTransportableEntry |
---|
readKey, writeKey |
Methods inherited from class edu.umich.eecs.tac.props.AbstractKeyedEntry |
---|
getKey, getTransportName, read, setKey, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RetailCatalog.RetailCatalogEntry()
public RetailCatalog.RetailCatalogEntry(Product product)
product
- the product.Method Detail |
---|
public final Product getProduct()
protected final void setProduct(Product product)
product
- the product.public final double getSalesProfit()
protected final void setSalesProfit(double salesProfit)
salesProfit
- the sales profit.protected final void readEntry(se.sics.isl.transport.TransportReader reader) throws java.text.ParseException
readEntry
in class AbstractKeyedEntry<Product>
reader
- the reader to read the state in from.
java.text.ParseException
- if an exception occurs reading the sales profit.protected final void writeEntry(se.sics.isl.transport.TransportWriter writer)
writeEntry
in class AbstractKeyedEntry<Product>
writer
- the writer to write the entry state toprotected final java.lang.String keyNodeName()
Product
class.
keyNodeName
in class AbstractTransportableEntry<Product>
Product
class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |