org.cougaar.pizza.plugin.util
Class PizzaPreferenceHelper

java.lang.Object
  extended byorg.cougaar.pizza.plugin.util.PizzaPreferenceHelper

public class PizzaPreferenceHelper
extends java.lang.Object

Checks if entity likes meat or veg pizza by checking its role - Carnivore or Vegetarian.


Constructor Summary
PizzaPreferenceHelper()
           
 
Method Summary
static java.lang.String getPizzaPreference(org.cougaar.core.service.LoggingService log, org.cougaar.planning.ldm.asset.Entity entity)
          Using self entity from blackboard, get its entity pg, and see if it includes a role "carnivore".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PizzaPreferenceHelper

public PizzaPreferenceHelper()
Method Detail

getPizzaPreference

public static final java.lang.String getPizzaPreference(org.cougaar.core.service.LoggingService log,
                                                        org.cougaar.planning.ldm.asset.Entity entity)
Using self entity from blackboard, get its entity pg, and see if it includes a role "carnivore". Note that an Entity is _either_ a Carnivore, _or_ a Vegitarian.

Returns:
"meat" if carnivore, "veg" if herbivore