Ant Farm - Robert Glen Martin
School for the Talented and Gifted
Dallas I.S.D.

Interface Processable

All Known Implementing Classes:
Cake, Cookie, Food, QueenAnt, WorkerAnt

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

process

void process(WorkerAnt ant)
Called by ant to get/give food and to get/give food and queen locations.

Parameters:
ant - the calling WorkerAnt

© 2007 Robert Glen Martin.
All rights reserved.