ConditionalTaskState aging = taskStateFactory.createConditionalTaskState(Aging.class);
ConditionalTaskState growth = taskStateFactory.createConditionalTaskState(TreeGrowth.class);
TreeTrunkStateFactory trunkStateFactory = new TreeTrunkStateFactory();
TreeTrunkState trunkState = trunkStateFactory.createRandomTreeTrunkState(radius, height);
Tree3DStateFactory tree3DStateFactory = new Tree3DStateFactory();
Tree3DState tree3dState = tree3DStateFactory.createRandomTree3DState(new Tuple3dState(translationVector));
return new TreeState(creationMillis, energy, branches, photosynthesis, aging, growth, trunkState, height,
tree3dState);
}