@Override public void setValueUnchecked(Object t) { if (getType().isInstance(t)) { data.setValue(getType().cast(t)); return; } throw new RuntimeException("WRONG TYPE!!"); }
private void setgup(double g) { DataType dt = new DataType(); ValueType val = new ValueType(); val.setValue(g); val.setUnits("unitless"); dt.setValue(val); andtup.setLandeFactor(dt); }
private void setProbability(double loggf) { DataType dt = new DataType(); ValueType val = new ValueType(); val.setValue(loggf); val.setUnits("unitless"); dt.setValue(val); rtp.setLog10WeightedOscillatorStregnth(dt); }
private void setEup(double Ep) { DataType dt = new DataType(); ValueType val = new ValueType(); val.setValue(Ep); val.setUnits("cm-1"); dt.setValue(val); andtup.setStateEnergy(dt); }
private void setWavelength(double lam) { EnergyWavelengthType ewl = new EnergyWavelengthType(); WavelengthWavenumberType wl = new WavelengthWavenumberType(); DataType dt = new DataType(); ValueType val = new ValueType(); val.setValue(lam); val.setUnits("A"); dt.setValue(val); wl.setRitz(dt); ewl.setWavelength(wl); rt.setEnergyWavelength(ewl); }