Class DailyInfo

java.lang.Object
  extended by DailyInfo

public class DailyInfo
extends java.lang.Object

Stores all of the information sent to the agent at the beginning of the day.


Field Summary
 se.sics.tasim.props.BankStatus bankStatus
           
 java.lang.String customerName
           
 se.sics.tasim.props.OrderBundle customerOrders
           
 se.sics.tasim.props.RFQBundle customerRFQs
           
 int date
           
 java.util.Vector deliveries
           
 se.sics.tasim.props.InventoryStatus inventory
           
 se.sics.tasim.props.MarketReport marketReport
           
 se.sics.tasim.props.PriceReport priceReport
           
 java.util.Vector supplierOffers
           
 java.util.Vector supplierOfferSenders
           
 
Constructor Summary
DailyInfo()
           
 
Method Summary
 void addDeliveryNotice(se.sics.tasim.props.DeliveryNotice dn)
          Stores a delivery notice for components.
 void addSupplierOffer(se.sics.tasim.props.OfferBundle o, java.lang.String sender)
          Stores an offer from a supplier.
 void readFromXMLFile(java.lang.String fileName)
           
 java.lang.String toString()
          Summarizes the bank status only
 java.lang.String toVerboseString()
          Summarizes all information received
 void writeToXMLFile(java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

inventory

public se.sics.tasim.props.InventoryStatus inventory

customerRFQs

public se.sics.tasim.props.RFQBundle customerRFQs

customerOrders

public se.sics.tasim.props.OrderBundle customerOrders

deliveries

public java.util.Vector deliveries

supplierOffers

public java.util.Vector supplierOffers

supplierOfferSenders

public java.util.Vector supplierOfferSenders

date

public int date

bankStatus

public se.sics.tasim.props.BankStatus bankStatus

customerName

public java.lang.String customerName

priceReport

public se.sics.tasim.props.PriceReport priceReport

marketReport

public se.sics.tasim.props.MarketReport marketReport
Constructor Detail

DailyInfo

public DailyInfo()
Method Detail

addSupplierOffer

public void addSupplierOffer(se.sics.tasim.props.OfferBundle o,
                             java.lang.String sender)
Stores an offer from a supplier.

Parameters:
o - the offer
sender - who sent it

addDeliveryNotice

public void addDeliveryNotice(se.sics.tasim.props.DeliveryNotice dn)
Stores a delivery notice for components.

Parameters:
dn - the notice

toString

public java.lang.String toString()
Summarizes the bank status only

Overrides:
toString in class java.lang.Object
Returns:
summary string

toVerboseString

public java.lang.String toVerboseString()
Summarizes all information received

Returns:
summary string

writeToXMLFile

public void writeToXMLFile(java.lang.String fileName)

readFromXMLFile

public void readFromXMLFile(java.lang.String fileName)