private void setQueueLength(int n) {
		if (type instanceof Reaction.A2_B2__2AB) {
			Reaction.A2_B2__2AB r = (Reaction.A2_B2__2AB) type;
			if (r.moleFractionA2() != null) {
				r.moleFractionA2().setLength(n);
				r.moleFractionB2().setLength(n);
				r.moleFractionAB().setLength(n);
				r.numberOfA2().setLength(n);
				r.numberOfB2().setLength(n);
				r.numberOfAB().setLength(n);
			}
		}
		else if (type instanceof Reaction.A2_B2_C__2AB_C) {
			Reaction.A2_B2_C__2AB_C r = (Reaction.A2_B2_C__2AB_C) type;
			if (r.moleFractionA2() != null) {
				r.moleFractionA2().setLength(n);
				r.moleFractionB2().setLength(n);
				r.moleFractionAB().setLength(n);
				r.numberOfA2().setLength(n);
				r.numberOfB2().setLength(n);
				r.numberOfAB().setLength(n);
				r.numberOfC().setLength(n);
			}
		}
		else if (type instanceof Reaction.O2_2H2__2H2O) {
			Reaction.O2_2H2__2H2O r = (Reaction.O2_2H2__2H2O) type;
			if (r.moleFractionH2() != null) {
				r.moleFractionH2().setLength(n);
				r.moleFractionO2().setLength(n);
				r.moleFractionH2O().setLength(n);
				r.numberOfH2().setLength(n);
				r.numberOfO2().setLength(n);
				r.numberOfH2O().setLength(n);
			}
		}
		bonds.initializeBondQ(n);
	}