add wrapper interface for CompartmentSpace and ParticleSpace