|
Ant Farm - Robert Glen Martin School for the Talented and Gifted Dallas I.S.D. |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Processable
Provides the process method that allows WorkerAnt
actors to polymorphically get food from the Food
objects
(Cake
and Cookie
) and give food to
QueenAnt
objects. This method also enables the
various actors to share their locations.
Method Summary | |
---|---|
void |
process(WorkerAnt ant)
Called by ant to get/give food and to
get/give food and queen locations. |
Method Detail |
---|
void process(WorkerAnt ant)
ant
to get/give food and to
get/give food and queen locations.
ant
- the calling WorkerAnt
|
© 2007 Robert Glen Martin. All rights reserved. |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |