Ejemplo n.º 1
0
 public CompositeIterator(OITComponent component)
 {
     inner = component;
     // inner.NodeDisplay();  //optional
     stack.Push(inner.CreateIterator());
     current = 0;
 }
Ejemplo n.º 2
0
 public CompositeIterator(OITComponent component)
 {
     inner = component;
     //inner.NodeDisplay();  //optional
     stack.Push(inner.CreateIterator());
     current = 0;
 }
Ejemplo n.º 3
0
 public virtual void Remove(OITComponent oitcomponent)
 {
     throw new System.Exception("Unsupported Operation");
 }
Ejemplo n.º 4
0
 public override void Remove(OITComponent oitcomponent)
 {
     components.Remove(oitcomponent);
 }
Ejemplo n.º 5
0
 //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);
 }
Ejemplo n.º 6
0
 public ReturnAllIterator(OITComponent patterns)
 {
     current = 0;
     inner = patterns;
 }
Ejemplo n.º 7
0
 public CompositeVisitor(OITComponent component)
 {
     component.Accept(this);
 }
Ejemplo n.º 8
0
 public override void Remove(OITComponent oitcomponent)
 {
     components.Remove(oitcomponent);
 }
Ejemplo n.º 9
0
 //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);
 }
Ejemplo n.º 10
0
 public virtual void Remove(OITComponent oitcomponent)
 {
     throw new System.Exception("Unsupported Operation");
 }
Ejemplo n.º 11
0
 public ReturnAllIterator(OITComponent patterns)
 {
     current = 0;
     inner   = patterns;
 }
Ejemplo n.º 12
0
 public LeafVisitor(OITComponent component)
 {
     component.Accept(this);
 }