public CompositeIterator(OITComponent component) { inner = component; // inner.NodeDisplay(); //optional stack.Push(inner.CreateIterator()); current = 0; }
public CompositeIterator(OITComponent component) { inner = component; //inner.NodeDisplay(); //optional stack.Push(inner.CreateIterator()); current = 0; }
public virtual void Remove(OITComponent oitcomponent) { throw new System.Exception("Unsupported Operation"); }
public override void Remove(OITComponent oitcomponent) { components.Remove(oitcomponent); }
//Step 5--override the Add and Remove methods of OITComponent //Override the CreateIterator method to return a ReturnAllterator for this type //Override the Display method--it is important that you understand this method public override void Add(OITComponent oitcomponent) { components.Add(oitcomponent); }
public ReturnAllIterator(OITComponent patterns) { current = 0; inner = patterns; }
public CompositeVisitor(OITComponent component) { component.Accept(this); }
public LeafVisitor(OITComponent component) { component.Accept(this); }