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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        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.