![]() |
ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
|
Public Member Functions | |
String | getFilename () |
boolean | getSectionSpecified () |
NuclideSquare | getSection () |
ArrayList< RGBVector > | getRGBVectorList () |
ArrayList< String > | getJIsotopeFiles () |
IndataParameters (String[] args) | |
Private Attributes | |
String | filename |
boolean | sectionSpecified |
NuclideSquare | section |
ArrayList< RGBVector > | rgbVectorList |
ArrayList< String > | isotopeFiles |
Definition at line 173 of file NuclideChart.java.
IndataParameters::IndataParameters | ( | String[] | args | ) | [inline] |
<Point to next position to parse.
Definition at line 187 of file NuclideChart.java.
{ rgbVectorList = new ArrayList<RGBVector>(); isotopeFiles = new ArrayList<String>(); filename = args[0]; int ptr = 1; if (args[ptr].equalsIgnoreCase("-n")) { sectionSpecified = true; ptr=6; section = new NuclideSquare(); try { section.bottomLeftZ = Integer.parseInt(args[2]); section.bottomLeftA = Integer.parseInt(args[3]); section.upperRightZ = Integer.parseInt(args[4]); section.upperRightA = Integer.parseInt(args[5]); } catch(NumberFormatException ex) { System.out.println("Error in parsing limits."); System.exit(1); } } else { sectionSpecified = false; } for (int i=ptr; i < args.length; i=i+4) //Var fjärde härifrån är en xxx.txt-fil { isotopeFiles.add(args[i]); } for (int i=ptr+1; i < args.length; i=i+4) //överväg i+4 { int r, g, b; try { rgbVectorList.add(new RGBVector(Integer.parseInt(args[i]),Integer.parseInt(args[i+1]),Integer.parseInt(args[i+2]))); } catch(NumberFormatException ex) { System.out.println("Error in parsing rgb vectors."); System.exit(1); } } }