+ else if(partesDelComando[0].equals("estado")){
+ int id = 0;
+ id = Integer.valueOf(partesDelComando[1]);
+ System.out.println(subastas[id].estado());
+ }
+ else if(partesDelComando[0].equals("valor")){
+ int id = 0;
+ id = Integer.valueOf(partesDelComando[1]);
+ System.out.println(subastas[id].valor());
+ }
+ else if(partesDelComando[0].equals("ganador_prov")){
+ int id = 0;
+ id = Integer.valueOf(partesDelComando[1]);
+ System.out.println(subastas[id].ganador_provisional().identificacion());
+ }
+ else if(partesDelComando[0].equals("ganador")){
+ int id = 0;
+ id = Integer.valueOf(partesDelComando[1]);
+ System.out.println(subastas[id].ganador().identificacion());
+ }
+ else if(partesDelComando[0].equals("clientes")){
+ int id = 0;
+ id = Integer.valueOf(partesDelComando[1]);
+ clienteSubastas[] clientes2 = subastas[id].clientes();
+ for (int i=0; i< clientes2.length; i++){
+ System.out.println(i+": "+clientes2[i].identificacion());
+ }
+ }
+ else if(partesDelComando[0].equals("inscribir")){
+ int id = 0;
+ String cliente_id="";
+ clienteSubastas cl=null;
+ id = Integer.valueOf(partesDelComando[1]);
+ cliente_id = partesDelComando[2];
+ cl = buscar(cliente_id, clientes);
+ subastas[id].inscribirCliente(cl);
+ System.out.println("Cliente inscrito");
+ }
+
+ else if(partesDelComando[0].equals("pujar")){
+ int id = 0;
+ float valor = 0;
+ String cliente_id="";
+ clienteSubastas cl=null;
+ id = Integer.valueOf(partesDelComando[1]);
+ cliente_id = partesDelComando[2];
+ valor = Float.valueOf(partesDelComando[3]);
+ cl = buscar(cliente_id, clientes);
+ if(subastas[id].pujar(valor, cl))
+ System.out.println("Vas ganando");
+ else
+ System.out.println("No es suficiente");
+ }
+ else if(partesDelComando[0].equals("ultima")){
+ int id = 0;
+ String cliente_id="";
+ clienteSubastas cl=null;
+ id = Integer.valueOf(partesDelComando[1]);
+ cliente_id = partesDelComando[2];
+ cl = buscar(cliente_id, clientes);
+ subastas[id].ultimaPuja(cl);
+ System.out.println("Has dejado de pujar");
+ System.out.println(subastas[id].estado());
+ }
+
+ // creacion de clientes
+ else if(partesDelComando[0].equals("crearcliente")){
+ String id="";
+ clienteSubastas cl=null;
+ id = partesDelComando[1];
+ cl = crearCliente(id, poa);
+ clientes[n_clientes++] = cl;
+ }
+ else if(partesDelComando[0].equals("cldisp")){
+ for(int i=0; i<n_clientes; i++){
+ System.out.println(i+": "+clientes[i].identificacion());
+ }
+ }
+