public void init() { float unit = 1f / CountermanCount; header = new Counterman(this, 0, unit, GridType.Floor); Counterman man1 = header; for (int i = 1; i < CountermanCount; i++) { Counterman newMan = new Counterman(this, unit * i, unit * (i + 1), (GridType)i); man1.setNextColleague(newMan); man1 = newMan; } man1.setNextColleague(header); }
public void setNextColleague(Counterman next) { this.nextColleague = next; }