setComponent function

Add a dynamical ecosystem component