public void run() { PhysicalSphere sphere = cell.getSomaElement().getPhysicalSphere(); if (sphere.getDiameter() > 20) { cell.divide(); } else { sphere.changeVolume(300); } }