Class DailyActions
java.lang.Object
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.
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 |
messages
public java.util.Vector messages
messageRecipients
public java.util.Vector messageRecipients
supplyTable
public java.util.Hashtable supplyTable
DailyActions
public DailyActions()
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)