this.wavelength = 0;
}
+ public FixedFlexImpl(long wlIndex) {
+ this.index = wlIndex;
+ this.centerFrequency = 196.1 - (wlIndex - 1) * 0.05;
+ this.start = this.centerFrequency - 0.025;
+ this.stop = this.centerFrequency + 0.025;
+ this.wavelength = 1528.77 + ((wlIndex - 1) * 0.39);
+ }
+
@Override
/**
* @param index Wavelength number
private void addUsedWL(long wavelengthIndex, List<NodeIdPair> tpIds) {
WriteTransaction addUsedWlTx = this.dataBroker.newWriteOnlyTransaction();
- FixedFlexImpl fixedFlex = new FixedFlexImpl();
- fixedFlex.getFixedFlexWaveMapping(wavelengthIndex);
+ FixedFlexImpl fixedFlex = new FixedFlexImpl(wavelengthIndex);
FrequencyGHz frequencyGHz = new FrequencyGHz(new BigDecimal(fixedFlex.getWavelength()));
FrequencyTHz frequencyTHz = new FrequencyTHz(new BigDecimal(fixedFlex.getCenterFrequency()));
-
for (NodeIdPair idPair : tpIds) {
Optional<TerminationPoint1> tpOpt = getTerminationPoint1FromDatastore(idPair.getNodeID(), idPair.getTpID());