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