/** * Do clone makes a deep clone without regarding cycles. * Method is overridden by subclasses to actually incorporate their attributes. * @param theclone The clone. */ protected void doClone(Object theclone) { InitialFactNode clone = (InitialFactNode)theclone; // Deep clone tuple consumers clone.tconsumers = new ITupleConsumerNode[tconsumers.length]; for(int i=0; i<tconsumers.length; i++) clone.tconsumers[i] = (ITupleConsumerNode)tconsumers[i].clone(); // Set the source clone.osource = (IObjectSourceNode)osource.clone(); } }
/** * Do clone makes a deep clone without regarding cycles. * Method is overridden by subclasses to actually incorporate their attributes. * @param theclone The clone. */ protected void doClone(Object theclone) { InitialFactNode clone = (InitialFactNode)theclone; // Deep clone tuple consumers clone.tconsumers = new ITupleConsumerNode[tconsumers.length]; for(int i=0; i<tconsumers.length; i++) clone.tconsumers[i] = (ITupleConsumerNode)tconsumers[i].clone(); // Set the source clone.osource = (IObjectSourceNode)osource.clone(); } }
/** * Do clone makes a deep clone without regarding cycles. * Method is overridden by subclasses to actually incorporate their attributes. * @param theclone The clone. */ protected void doClone(Object theclone) { LeftInputAdapterNode clone = (LeftInputAdapterNode)theclone; // Deep clone tuple consumers clone.tconsumers = new ITupleConsumerNode[tconsumers.length]; for(int i=0; i<tconsumers.length; i++) clone.tconsumers[i] = (ITupleConsumerNode)tconsumers[i].clone(); // Set the source clone.osource = (IObjectSourceNode)osource.clone(); // Shallow copy the relevant attributes if(relevants!=null) clone.relevants = (AttributeSet)((AttributeSet)relevants).clone(); } }
/** * Do clone makes a deep clone without regarding cycles. * Method is overridden by subclasses to actually incorporate their attributes. * @param theclone The clone. */ protected void doClone(Object theclone) { LeftInputAdapterNode clone = (LeftInputAdapterNode)theclone; // Deep clone tuple consumers clone.tconsumers = new ITupleConsumerNode[tconsumers.length]; for(int i=0; i<tconsumers.length; i++) clone.tconsumers[i] = (ITupleConsumerNode)tconsumers[i].clone(); // Set the source clone.osource = (IObjectSourceNode)osource.clone(); // Shallow copy the relevant attributes if(relevants!=null) clone.relevants = (AttributeSet)((AttributeSet)relevants).clone(); } }
/** * Do clone makes a deep clone without regarding cycles. * Method is overridden by subclasses to actually incorporate their attributes. * @param theclone The clone. */ protected void doClone(Object theclone) { SplitNode ret = (SplitNode)theclone; // Deep clone tuple consumers ret.oconsumers = new IObjectConsumerNode[oconsumers.length]; for(int i=0; i<oconsumers.length; i++) ret.oconsumers[i] = (IObjectConsumerNode)oconsumers[i].clone(); // Don't change the source, will be done by the source ret.osource = (IObjectSourceNode)osource.clone(); // Shallow copy the relevant attributes if(relevants!=null) ret.relevants = (AttributeSet)((AttributeSet)relevants).clone(); // Keep extractor // Keep the attribute // Keep the split pattern // Keep the min_values }
/** * Do clone makes a deep clone without regarding cycles. * Method is overridden by subclasses to actually incorporate their attributes. * @param theclone The clone. */ protected void doClone(Object theclone) { SplitNode ret = (SplitNode)theclone; // Deep clone tuple consumers ret.oconsumers = new IObjectConsumerNode[oconsumers.length]; for(int i=0; i<oconsumers.length; i++) ret.oconsumers[i] = (IObjectConsumerNode)oconsumers[i].clone(); // Don't change the source, will be done by the source ret.osource = (IObjectSourceNode)osource.clone(); // Shallow copy the relevant attributes if(relevants!=null) ret.relevants = (AttributeSet)((AttributeSet)relevants).clone(); // Keep extractor // Keep the attribute // Keep the split pattern // Keep the min_values }
/** * Do clone makes a deep clone without regarding cycles. * Method is overridden by subclasses to actually incorporate their attributes. * @param theclone The clone. */ protected void doClone(Object theclone) { AlphaNode clone = (AlphaNode)theclone; // Deep clone tuple consumers clone.oconsumers = new IObjectConsumerNode[oconsumers.length]; for(int i=0; i<oconsumers.length; i++) clone.oconsumers[i] = (IObjectConsumerNode)oconsumers[i].clone(); // Set the new source clone.setObjectSource((IObjectSourceNode)osource.clone()); // Shallow clone evaluators if(evaluators!=null) { clone.evaluators = new IConstraintEvaluator[evaluators.length]; System.arraycopy(evaluators, 0, clone.evaluators, 0, evaluators.length); } // Shallow copy the relevant attributes if(relevants!=null) clone.relevants = (AttributeSet)((AttributeSet)relevants).clone(); } }
clone.osource = (IObjectSourceNode)osource.clone();
clone.osource = (IObjectSourceNode)osource.clone();
/** * Do clone makes a deep clone without regarding cycles. * Method is overridden by subclasses to actually incorporate their attributes. * @param theclone The clone. */ protected void doClone(Object theclone) { AlphaNode clone = (AlphaNode)theclone; // Deep clone tuple consumers clone.oconsumers = new IObjectConsumerNode[oconsumers.length]; for(int i=0; i<oconsumers.length; i++) clone.oconsumers[i] = (IObjectConsumerNode)oconsumers[i].clone(); // Set the new source clone.setObjectSource((IObjectSourceNode)osource.clone()); // Shallow clone evaluators if(evaluators!=null) { clone.evaluators = new IConstraintEvaluator[evaluators.length]; System.arraycopy(evaluators, 0, clone.evaluators, 0, evaluators.length); } // Shallow copy the relevant attributes if(relevants!=null) clone.relevants = (AttributeSet)((AttributeSet)relevants).clone(); } }