lojix/wam_prolog/src/main/com/thesett/aima/logic/fol/wam/debugger/InternalRegisterBean.java
private List<PropertyChangeEvent> delta(WAMInternalRegisters oldRegisters, WAMInternalRegisters newRegisters)
    {
        List<PropertyChangeEvent> result = new LinkedList<PropertyChangeEvent>();

        if (oldRegisters.ip != newRegisters.ip)
        {
            result.add(new PropertyChangeEvent(this, "IP", oldRegisters.ip, newRegisters.ip));
        }

        if (oldRegisters.hp != newRegisters.hp)
        {
            result.add(new PropertyChangeEvent(this, "HP", oldRegisters.hp, newRegisters.hp));
        }

        if (oldRegisters.hbp != newRegisters.hbp)
        {
            result.add(new PropertyChangeEvent(this, "HBP", oldRegisters.hbp, newRegisters.hbp));
        }

        if (oldRegisters.sp != newRegisters.sp)
        {
            result.add(new PropertyChangeEvent(this, "SP", oldRegisters.sp, newRegisters.sp));
        }

        if (oldRegisters.up != newRegisters.up)
        {
            result.add(new PropertyChangeEvent(this, "UP", oldRegisters.up, newRegisters.up));
        }

        if (oldRegisters.ep != newRegisters.ep)
        {
            result.add(new PropertyChangeEvent(this, "EP", oldRegisters.ep, newRegisters.ep));
        }

        if (oldRegisters.bp != newRegisters.bp)
        {
            result.add(new PropertyChangeEvent(this, "BP", oldRegisters.bp, newRegisters.bp));
        }

        if (oldRegisters.b0 != newRegisters.b0)
        {
            result.add(new PropertyChangeEvent(this, "B0", oldRegisters.b0, newRegisters.b0));
        }

        if (oldRegisters.trp != newRegisters.trp)
        {
            result.add(new PropertyChangeEvent(this, "TRP", oldRegisters.trp, newRegisters.trp));
        }

        if (oldRegisters.writeMode != newRegisters.writeMode)
        {
            result.add(new PropertyChangeEvent(this, "writeMode", oldRegisters.writeMode, newRegisters.writeMode));
        }

        return result;
    }
private List<PropertyChangeEvent> delta(WAMInternalRegisters oldRegisters, WAMInternalRegisters newRegisters)
    {
        List<PropertyChangeEvent> result = new LinkedList<PropertyChangeEvent>();

        if (oldRegisters.ip != newRegisters.ip)
        {
            result.add(new PropertyChangeEvent(this, "IP", oldRegisters.ip, newRegisters.ip));
        }

        if (oldRegisters.hp != newRegisters.hp)
        {
            result.add(new PropertyChangeEvent(this, "HP", oldRegisters.hp, newRegisters.hp));
        }

        if (oldRegisters.hbp != newRegisters.hbp)
        {
            result.add(new PropertyChangeEvent(this, "HBP", oldRegisters.hbp, newRegisters.hbp));
        }

        if (oldRegisters.sp != newRegisters.sp)
        {
            result.add(new PropertyChangeEvent(this, "SP", oldRegisters.sp, newRegisters.sp));
        }

        if (oldRegisters.up != newRegisters.up)
        {
            result.add(new PropertyChangeEvent(this, "UP", oldRegisters.up, newRegisters.up));
        }

        if (oldRegisters.ep != newRegisters.ep)
        {
            result.add(new PropertyChangeEvent(this, "EP", oldRegisters.ep, newRegisters.ep));
        }

        if (oldRegisters.bp != newRegisters.bp)
        {
            result.add(new PropertyChangeEvent(this, "BP", oldRegisters.bp, newRegisters.bp));
        }

        if (oldRegisters.b0 != newRegisters.b0)
        {
            result.add(new PropertyChangeEvent(this, "B0", oldRegisters.b0, newRegisters.b0));
        }

        if (oldRegisters.trp != newRegisters.trp)
        {
            result.add(new PropertyChangeEvent(this, "TRP", oldRegisters.trp, newRegisters.trp));
        }

        if (oldRegisters.writeMode != newRegisters.writeMode)
        {
            result.add(new PropertyChangeEvent(this, "writeMode", oldRegisters.writeMode, newRegisters.writeMode));
        }

        return result;
    }
Compares the current register file, with a new set, and creates a list property change notifications for any that
have changed value.

@param newRegisters The new register values.