| java.lang.Object org.cougaar.pizza.plugin.PizzaPreferences
PizzaPreferences | public PizzaPreferences(UID uid)(Code) | | |
addFriendToPizza | public void addFriendToPizza(String friend, String preference)(Code) | | The given friend has replied, requesting the given pizza, so store
their response.
Parameters: friend - The agent name responding Parameters: preference - The kind of meat they like (using a pizza Constant) |
getFriendNames | public String getFriendNames()(Code) | | printable list of the friends we have preferences for |
getFriendToPreference | public String getFriendToPreference()(Code) | | printable list of the friend-to-preference mapping |
getNumMeat | public int getNumMeat()(Code) | | Number of people wanting meat pizza |
getNumVeg | public int getNumVeg()(Code) | | Number of orders for veggie pizza |
getPreferenceForFriend | public String getPreferenceForFriend(String friend)(Code) | | What kind of pizza does the given friend want?
Parameters: friend - to look up kind of pizza they want |
getPreferenceValues | public String getPreferenceValues()(Code) | | printable list of just the preferences collected |
toHTML | public String toHTML(int type)(Code) | | Print an HTML-friendly description of the object, for use in the HistoryServlet.
Parameters: type - Not-used here, is the transaction type HTML text to display this object |
|
|