/**
 * 
 */
package millie.operator.commons.area;


/**
 * @author humbertf
 *
 */
public class BusinessAreaOperatorFactory {
	final public static int SIMPLE_AREAOPERATOR = 0;
	final public static int MT_AREAOPERATOR = 1;
	
	
	public static BusinessAreaOperator getInstance(int type) {
		switch(type) {
		case SIMPLE_AREAOPERATOR:
			return new SimpleBusinessAreaOperator();
		case MT_AREAOPERATOR:
			return new MTBusinessAreaOperator(4);
		default:
			throw new IllegalArgumentException("Not that kind of instance");
		}
	}
	
	
	static public BusinessAreaOperator getInstance() {
		return  getInstance(MT_AREAOPERATOR);
	}
}
