public void Visit(object idSlotMapping)
                {
                    SlotChange slotChange = new SlotChange(((TreeInt)idSlotMapping)._key);

                    slotChange.NotifySlotCreated(((IdSlotTree)idSlotMapping).Slot());
                    outSideVisitor.Visit(slotChange);
                }
示例#2
0
                public void Visit(object idSlotMapping)
                {
                    var slotChange = new SlotChange(((IdSlotMapping)idSlotMapping)._id);

                    slotChange.NotifySlotCreated(((IdSlotMapping)idSlotMapping).Slot());
                    outSideVisitor.Visit(slotChange);
                }
                    public void Accept(IVisitor4 visitor)
                    {
                        SlotChange slotChange = new SlotChange(id);

                        slotChange.NotifySlotCreated(new Slot(address, length));
                        visitor.Visit(slotChange);
                    }
示例#4
0
            private Slot AllocateNewSlot(int newId)
            {
                SlotChange slotChange    = SlotChangeFactory.UserObjects.NewInstance(newId);
                Slot       allocatedSlot = LocalContainer().AllocateSlot(SlotLength);

                slotChange.NotifySlotCreated(allocatedSlot);
                Commit(new SlotChange[] { slotChange });
                return(allocatedSlot);
            }