how to do regression and classification in a same time?
I believe you are just describing standard classification.
Take the image below, the model of the classification is the decision boundary found between the two classes. After we have found this model, using a classification algorithm (clustering or otherwise), for new data we can use it to predict which class the new data belongs to.