|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
java.lang.String getName()
void setName(java.lang.String newName)
newName
- String that is the new name of the food objectjava.lang.String getDescription()
void setDescription(java.lang.String newDescription)
newDescription
- String that is the description of the food object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |