private void removeResource (int resID)
    {
        for (int j = 0; j < resList_.size(); j++)
        {
            if (((Integer) resList_.get(j)).intValue() == resID)
            {
                resList_.remove(j);

                if (record_) {
                    write("Removing", resID, GridSim.clock());
                    if (resList_.size() == 0)
                    {
                        System.out.println(super.get_name() +
                            ": No resources available at this moment. Clock: " +
                            GridSim.clock());
                    }
                }
            }
        }

        /***********/
        if (record_) {
            System.out.println();
            System.out.println(super.get_name() + ": Resource list after removal");
            for (int j = 0; j < resList_.size(); j++)
            {
                System.out.println(super.get_name() + ": list["+ j +"] = " +
                    GridSim.getEntityName((Integer)resList_.get(j)) );
            }
            System.out.println();
        }
        /**********/
    }