protected HeightState height;
private boolean _encapsulated = false;
public BmiState bmiState() {
return new BmiState() {
public int getHeightInCentimeters() { return PersonStateImpl.this.height.getHeightInCentimeters(); }
public void setHeightInCentimeters(int heightInCentimeters) { PersonStateImpl.this.height.setHeightInCentimeters(heightInCentimeters); }
public int getWeightInKilograms() { return PersonStateImpl.this.weightInKilograms; }
public void setWeightInKilograms(int weightInKilograms) { PersonStateImpl.this.setWeightInKilograms(weightInKilograms); }