public Element copy() {
   Element ele = new Subqueue();
   ele.setColor(this.getColor());
   for (int i = 0; i < children.size(); i++) {
     ((Subqueue) ele).addElement(((Element) children.get(i)).copy());
   }
   return ele;
 }
 /* (non-Javadoc)
  * @see lu.fisch.structorizer.elements.Element#clearExecutionStatus()
  */
 @Override
 public void clearExecutionStatus() {
   for (int i = 0; i < children.size(); i++) {
     super.clearExecutionStatus(); // FIXME: Is this necessary at all?
     children.get(i).clearExecutionStatus();
   }
 }
 /* (non-Javadoc)
  * @see lu.fisch.structorizer.elements.Element#clearBreakpoints()
  */
 @Override
 public void clearBreakpoints() {
   super.clearBreakpoints();
   for (int i = 0; i < children.size(); i++) {
     children.get(i).clearBreakpoints();
   }
 }
示例#4
0
 // START KGU#43 2015-10-13
 @Override
 public void clearExecutionStatus() {
   super.clearExecutionStatus();
   this.q.clearExecutionStatus();
 }
示例#5
0
 // START KGU#43 2015-10-12
 @Override
 public void clearBreakpoints() {
   super.clearBreakpoints();
   this.q.clearBreakpoints();
 }
 public void addElement(Element _element) {
   children.add(_element);
   _element.parent = this;
 }