20 private float minRadius, maxRadius, coronaMin, coronaMult,
21 coronaVar, solarWind, minFlare, maxFlare, crLossMult,
23 private float probOrbits, minOrbits, maxOrbits, habZoneStart;
32 id = row.getString(
"id");
33 minRadius = (float) row.getDouble(
"minRadius");
34 maxRadius = (float) row.getDouble(
"maxRadius");
36 coronaMin = (float) row.getDouble(
"coronaMin");
37 coronaMult = (float) row.getDouble(
"coronaMult");
38 coronaVar = (float) row.getDouble(
"coronaVar");
40 solarWind = (float) row.getDouble(
"solarWind");
41 minFlare = (float) row.getDouble(
"minFlare");
42 maxFlare = (float) row.getDouble(
"maxFlare");
43 crLossMult = (float) row.getDouble(
"crLossMult");
45 freqYOUNG = (float) row.getDouble(
"freqYOUNG");
46 freqAVERAGE = (float) row.getDouble(
"freqAVERAGE");
47 freqOLD = (float) row.getDouble(
"freqOLD");
49 probOrbits = (float) row.optDouble(
"probOrbits", 0);
50 minOrbits = (float) row.optDouble(
"minOrbits", 0);
51 maxOrbits = (float) row.optDouble(
"maxOrbits", 0);
53 habZoneStart = (float) row.optDouble(
"habZoneStart", 2);
57 lightColorMin =
parseColor(row.optString(
"lightColorMin",
null) +
" 255",
" ");
58 lightColorMax =
parseColor(row.optString(
"lightColorMax",
null) +
" 255",
" ");
60 String tags = row.optString(
"tags",
null);
62 String [] split = tags.split(
",");
63 for (String tag : split) {
65 if (tag.isEmpty())
continue;
72 if (str ==
null)
return Color.white;
74 String [] parts = str.split(sep);
75 if (parts.length != 4)
return Color.white;
77 return new Color(Integer.parseInt(parts[0].trim()),
78 Integer.parseInt(parts[1].trim()),
79 Integer.parseInt(parts[2].trim()),
80 Integer.parseInt(parts[3].trim()));