|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cougaar.pizza.Constants.Roles
Roles used on Assets in the Pizza application.
| Field Summary | |
static org.cougaar.planning.ldm.plan.Role |
CARNIVORE
Someone who wants a meat pizza |
static org.cougaar.planning.ldm.plan.Role |
PIZZACUSTOMER
The inverse of a PizzaProvider; orders pizza. |
static org.cougaar.planning.ldm.plan.Role |
PIZZAPROVIDER
An Agent that provides the PizzaProvider service |
static org.cougaar.planning.ldm.plan.Role |
VEGETARIAN
Someone who wants a Veggie pizza - no meat! |
| Constructor Summary | |
Constants.Roles()
|
|
| Method Summary | |
static void |
init()
Ensure that Role constants are initialized. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final org.cougaar.planning.ldm.plan.Role CARNIVORE
public static final org.cougaar.planning.ldm.plan.Role VEGETARIAN
public static final org.cougaar.planning.ldm.plan.Role PIZZAPROVIDER
public static final org.cougaar.planning.ldm.plan.Role PIZZACUSTOMER
| Constructor Detail |
public Constants.Roles()
| Method Detail |
public static void init()
All Roles have a converse - PizzaProvider/PizzaConsumer for example. The following Role.create calls specify both the Role and its converse. In the case of the Carnivore Role - the Role and its converse are the same. The call to create PizzaProvider, however, designates PizzaConsumer as the converse. (See RelationshipType.PROVIDER definition above.
If Role.get(XXX) is called before a proper Role.create, the Role code will create a default pairing of XXX and ConverseOfXXX Roles. The ConverseOfXXX Role is typically unusable.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||