|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.avian.foods.basefoods.StdFood
com.avian.foods.philos.Fork4
public class Fork4
Fork4 is one of the forks used in the Dining Philosophers problem. It is a "resource" that the philosophers contend for. Since it is a resource and not and active object in the process, this object mostly maintains a history of the philosophers who used it and the events that happened to it.
Constructor Summary | |
---|---|
Fork4()
Default (and only) constructor for this food, it calls the StdFood constructor with reasonable values for its variables. |
Method Summary |
---|
Methods inherited from class com.avian.foods.basefoods.StdFood |
---|
addToFoodHistory, getContents, getDescription, getFoodType, getHistory, getName, setContents, setDescription, setFoodType, setHistory, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Fork4()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |