Constructor and Description |
---|
Animal(repast.simphony.context.Context theContext)
give Repast context to the animal
|
Modifier and Type | Method and Description |
---|---|
void |
aging()
age the animal by one month
|
int |
compareTo(Animal anotherAnimal)
compares the age of one animal to another animal
|
double |
getAge()
returns the age of the animal in months
|
double |
getBodyWeight()
return the body-weight in kg
|
void |
incrBodyWeight(double lwg)
increase or decrease the body weight by monthly live-weight gain or loss
|
void |
removeMe()
removes the animal from the repast context
|
void |
setIniAge(double iniAge)
set the initial age when born or bought
|
public Animal(repast.simphony.context.Context theContext)
theContext
- public double getBodyWeight()
public void incrBodyWeight(double lwg)
lwg
- public void aging()
public void setIniAge(double iniAge)
iniAge
- public double getAge()
public void removeMe()