private void setMachineFailed(boolean b, int numFailedMachines)
    {
        Machine mach;

        /************/
        String status = null;
        if (record_ == true) {
            if (b)
                status = "FAILED";
            else
                status = "WORKING";
        }
        /************/

        for(int i = 0; i < numFailedMachines; i++)
        {
            mach = resource_.getMachineList().getMachineInPos(i);
            if (mach != null)
            {
                if (record_ == true) {
                    System.out.println(super.get_name() +" - Machine: "
                        + i + " is set to " + status);
                    mach.setFailed(super.get_name(), b);
                }
                else {
                    mach.setFailed(b);
                }
            } // end if
        } // end for
    }