/** * Creates a new instance of {@code AbstractIterativeAlgorithm}. * * @param iteration The initial iteration number. */ public AbstractIterativeAlgorithm( final int iteration) { super(); this.setIteration(iteration); this.setListeners(null); }
/** * Creates a new instance of {@code AbstractIterativeAlgorithm}. * * @param iteration The initial iteration number. */ public AbstractIterativeAlgorithm( final int iteration) { super(); this.setIteration(iteration); this.setListeners(null); }
/** * Creates a new instance of {@code AbstractIterativeAlgorithm}. * * @param iteration The initial iteration number. */ public AbstractIterativeAlgorithm( final int iteration) { super(); this.setIteration(iteration); this.setListeners(null); }
public void addIterativeAlgorithmListener( final IterativeAlgorithmListener listener) { if (this.getListeners() == null) { // No list exists yet so create one. this.setListeners(new LinkedList<IterativeAlgorithmListener>()); } // Add the listener. this.getListeners().add(listener); }
public void addIterativeAlgorithmListener( final IterativeAlgorithmListener listener) { if (this.getListeners() == null) { // No list exists yet so create one. this.setListeners(new LinkedList<IterativeAlgorithmListener>()); } // Add the listener. this.getListeners().add(listener); }
public void addIterativeAlgorithmListener( final IterativeAlgorithmListener listener) { if (this.getListeners() == null) { // No list exists yet so create one. this.setListeners(new LinkedList<IterativeAlgorithmListener>()); } // Add the listener. this.getListeners().add(listener); }
public void removeIterativeAlgorithmListener( final IterativeAlgorithmListener listener) { if (this.getListeners() == null) { // No list to remove from. return; } // Remove the listener from the list. this.getListeners().remove(listener); if (this.getListeners().isEmpty()) { // No more listeners so null out the pointer to make the event // firing run faster. this.setListeners(null); } }
public void removeIterativeAlgorithmListener( final IterativeAlgorithmListener listener) { if (this.getListeners() == null) { // No list to remove from. return; } // Remove the listener from the list. this.getListeners().remove(listener); if (this.getListeners().isEmpty()) { // No more listeners so null out the pointer to make the event // firing run faster. this.setListeners(null); } }
public void removeIterativeAlgorithmListener( final IterativeAlgorithmListener listener) { if (this.getListeners() == null) { // No list to remove from. return; } // Remove the listener from the list. this.getListeners().remove(listener); if (this.getListeners().isEmpty()) { // No more listeners so null out the pointer to make the event // firing run faster. this.setListeners(null); } }