/** * {@inheritDoc} */ @Override public boolean contains(ISingleElectron singleElectron) { for (int i = 0; i < getSingleElectronCount(); i++) { if (singleElectron == singleElectrons[i]) return true; } return false; }
/** * {@inheritDoc} */ @Override public boolean contains(ISingleElectron singleElectron) { for (int i = 0; i < getSingleElectronCount(); i++) { if (singleElectron == singleElectrons[i]) return true; } return false; }
/** * {@inheritDoc} */ @Override public int getSingleElectronCount() { logger.debug("Getting single electron count"); return super.getSingleElectronCount(); }
if (getSingleElectronCount() > 0) { stringContent.append(", #SE:").append(getSingleElectronCount()); for (int i = 0; i < getSingleElectronCount(); i++) { stringContent.append(", ").append(getSingleElectron(i).toString());
if (getSingleElectronCount() > 0) { stringContent.append(", #SE:").append(getSingleElectronCount()); for (int i = 0; i < getSingleElectronCount(); i++) { stringContent.append(", ").append(getSingleElectron(i).toString());
/** * {@inheritDoc} */ @Override public void removeAllElectronContainers() { removeAllBonds(); for (int f = 0; f < getLonePairCount(); f++) { getLonePair(f).removeListener(this); } for (int f = 0; f < getSingleElectronCount(); f++) { getSingleElectron(f).removeListener(this); } lonePairs = new ILonePair[growArraySize]; singleElectrons = new ISingleElectron[growArraySize]; lonePairCount = 0; singleElectronCount = 0; notifyChanged(); }
/** * {@inheritDoc} */ @Override public void removeAllElectronContainers() { removeAllBonds(); for (int f = 0; f < getLonePairCount(); f++) { getLonePair(f).removeListener(this); } for (int f = 0; f < getSingleElectronCount(); f++) { getSingleElectron(f).removeListener(this); } lonePairs = new ILonePair[growArraySize]; singleElectrons = new ISingleElectron[growArraySize]; lonePairCount = 0; singleElectronCount = 0; notifyChanged(); }