Interface Farm
public interface Farm
Farm has many herds distributed evenly by pastures
-
Method Summary
Modifier and TypeMethodDescription<Breed> PastureaddBreedingPasture(Herd<Breed> herd, Class<Breed> breedClass, PastureListener<Breed> pastureListener) Here we come to Farm with our Pasture to graze specific Breeding Herd on it.addPasture(Herd<ByteBuffer> herd, 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:
herd- 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 addBreedingPasture(Herd<Breed> herd, Class<Breed> breedClass, PastureListener<Breed> pastureListener) Here we come to Farm with our Pasture to graze specific Breeding Herd on it.- Parameters:
herd- 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
-