Class DailyActions

java.lang.Object
  extended by DailyActions

public class DailyActions
extends java.lang.Object

Stores the actions taken by the agent during a single day. The actions are simply the messages to be sent at the end of the day.


Field Summary
 java.util.Vector messageRecipients
           
 java.util.Vector messages
           
 java.util.Hashtable supplyTable
           
 
Constructor Summary
DailyActions()
           
 
Method Summary
 void addMessage(java.lang.String recipient, se.sics.isl.transport.Transportable content)
          Add a message to be sent at the end of the day.
 void readFromXMLFile(java.lang.String fileName)
           
 java.lang.String toString()
          Summarize the messages sent today
 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

messages

public java.util.Vector messages

messageRecipients

public java.util.Vector messageRecipients

supplyTable

public java.util.Hashtable supplyTable
Constructor Detail

DailyActions

public DailyActions()
Method Detail

addMessage

public void addMessage(java.lang.String recipient,
                       se.sics.isl.transport.Transportable content)
Add a message to be sent at the end of the day.

Parameters:
recipient - (e.g., "Customer")
content - (e.g., a DeliverySchedule)

toString

public java.lang.String toString()
Summarize the messages sent today

Overrides:
toString in class java.lang.Object
Returns:
list of messages

writeToXMLFile

public void writeToXMLFile(java.lang.String fileName)

readFromXMLFile

public void readFromXMLFile(java.lang.String fileName)