Spaceless description of active optical media