Vector res = new Vector();
List gates = gateHolder.getGates();
for(int i=0; i<gates.size();i++){
CircuitGate cg = (CircuitGate)gates.get(i);
GateParameters gp;
if (cg instanceof ColorCircuitGate){
ColorCircuitGate ccg = (ColorCircuitGate)cg;
gp = new GateParameters(cg.getGateId(), cg.getSide(), cg.isInput, ccg.getEmitterDataSource(), ccg.getEmitterMapper());
} else {
gp = new GateParameters(cg.getGateId(), cg.getSide(), cg.isInput, null, null);
}
res.add(gp);
}
return res;
}