com.avian.foods.basefoods
Interface Manna

All Known Implementing Classes:
BlackFood, BlueFood, BrownFood, CombinedFood, DefaultFood, Err, FirstName, Fork1, Fork2, Fork3, Fork4, Fork5, Fork6, Fork7, Fork8, Fork9, GreenFood, LastName, OrangeFood, PurpleFood, RedFood, StateZipPop, StdFood, WhiteFood, YellowFood

public interface Manna

The Manna interface defines the standard methods that will be availble in any standard food object in the Aviary. Any food object should implement these methods so that the birds can interact with the food correctly.


Method Summary
 java.lang.String getDescription()
          Gets the description of this food object.
 java.lang.String getName()
          Gets the name of the food, just in case we're not sure what we're eating or because we want to record or display what's being eaten.
 void setDescription(java.lang.String newDescription)
          Each time a bird stores a food object with a new key (name), it should also provide a new description of the food object.
 void setName(java.lang.String newName)
          Each time a bird stores a food object with a new key (name), it should also set the new name in the food object.
 

Method Detail

getName

java.lang.String getName()
Gets the name of the food, just in case we're not sure what we're eating or because we want to record or display what's being eaten.

Returns:
String with the name of the food object

setName

void setName(java.lang.String newName)
Each time a bird stores a food object with a new key (name), it should also set the new name in the food object.

Parameters:
newName - String that is the new name of the food object

getDescription

java.lang.String getDescription()
Gets the description of this food object.

Returns:
String that described what this food object does or tastes like.

setDescription

void setDescription(java.lang.String newDescription)
Each time a bird stores a food object with a new key (name), it should also provide a new description of the food object.

Parameters:
newDescription - String that is the description of the food object.