Soft-particle lattice gas in one dimension: One- and two-component cases