Interface Farm
public interface Farm
Farm has many herds distributed evenly by pastures
-
Method Summary
Modifier and TypeMethodDescription<Breed> Pasture<Breed>addBreedingPasture(String herdName, Class<Breed> breedClass, PastureListener<Breed> pastureListener) Here we come to Farm with our Pasture to graze specific Breeding Herd on it.addPasture(String herdName, PastureListener<ByteBuffer> pastureListener) Here we come to Farm with our Pasture to graze specific Herd on it.
-
Method Details
-
addPasture
Here we come to Farm with our Pasture to graze specific Herd on it.- Parameters:
herdName- Herd we want to inhabit this pasturepastureListener- Will listen for animals from Herd that will be assigned to our Pasture- Returns:
- Shepherd allows to set Herd population
-
addBreedingPasture
<Breed> Pasture<Breed> addBreedingPasture(String herdName, Class<Breed> breedClass, PastureListener<Breed> pastureListener) Here we come to Farm with our Pasture to graze specific Breeding Herd on it.- Parameters:
herdName- Herd we want to inhabit this pasturebreedClass- Only elements of this class accepted in this herdpastureListener- Will listen for animals from Herd that will be assigned to our Pasture- Returns:
- Shepherd allows to set Herd population
-