verifyDef(qd); QuantumStrategy strg = null; QuantumMap qMap = null; switch (qd.family) { case LINEAR: case POLYNOMIAL: qMap = new PolynomialMap(); break; case LOGARITHMIC: qMap = new LogarithmicMap(); break; case EXPONENTIAL: qMap = new ExponentialMap(); break; default:  } strg = getQuantization(qd); strg.setMap(qMap); return strg;
verifyDef(qd); QuantumStrategy strg = null; strg = getQuantization(qd); if (strg == null) throw new IllegalArgumentException("Unsupported strategy"); return strg;
	public static QuantumStrategy getStrategy(QuantumDef qd)	{		verifyDef(qd);		QuantumStrategy strg = null;		QuantumMap qMap = null;		switch (qd.family) {			case LINEAR:			case POLYNOMIAL:				qMap = new PolynomialMap();				break;			case LOGARITHMIC:				qMap = new LogarithmicMap();				break;			case EXPONENTIAL:				qMap = new ExponentialMap(); 				break;			default: 				//Never reached, verifyDef throws exception if wrong family.			}		strg = getQuantization(qd);		strg.setMap(qMap);		return strg;	}