@Override
	public Processor newProcessor(Processor sourceProcessor) {
		LocalLearnerProcessor newProcessor = new LocalLearnerProcessor();
		LocalLearnerProcessor originProcessor = (LocalLearnerProcessor) sourceProcessor;

		if (originProcessor.getLearner() != null){
			newProcessor.setLearner(originProcessor.getLearner().create());
		}

		if (originProcessor.getChangeDetector() != null){
				newProcessor.setChangeDetector(originProcessor.getChangeDetector());
		}

		newProcessor.setOutputStream(originProcessor.getOutputStream());
		return newProcessor;
	}
@ Override public Processor newProcessor ( Processor sourceProcessor ) { LocalLearnerProcessor newProcessor = new LocalLearnerProcessor ( ) ; LocalLearnerProcessor originProcessor = ( LocalLearnerProcessor ) sourceProcessor ; if ( originProcessor . getLearner ( ) != null ) { newProcessor . setLearner ( originProcessor . getLearner ( ) . create ( ) ) ; } if ( originProcessor . getChangeDetector ( ) != null ) { newProcessor . setChangeDetector ( originProcessor . getChangeDetector ( ) ) ; } newProcessor . setOutputStream ( originProcessor . getOutputStream ( ) ) ; return newProcessor ; }
/* (non-Javadoc)
@see samoa.core.Processor#newProcessor(samoa.core.Processor)