Exemplo n.º 1
0
 @Override
 public void setValueUnchecked(Object t) {
   if (getType().isInstance(t)) {
     data.setValue(getType().cast(t));
     return;
   }
   throw new RuntimeException("WRONG TYPE!!");
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
 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);
 }