ASM #471 Updated Radar Bias Table Dialog to pass other office id and bias properly.
Change-Id: I3566b9e6bb5f29000beded0b6912b6771ebc85f5 Former-commit-id: 1c71a34944c7d823742b98dc65e19fe1f478eef0
This commit is contained in:
parent
fd900e38c2
commit
f6636a3dd7
2 changed files with 18 additions and 12 deletions
|
@ -70,6 +70,8 @@ import com.raytheon.viz.mpe.ui.radartable.ReadBiasTableParam;
|
|||
* Jun 18, 2013 16053 snaples Removed reference to setRadarEditFlag
|
||||
* Aug 06, 2013 16243 Changed the Gui to a ScrolledComposite.
|
||||
* Feb 2, 2014 16201 snaples Added saved data flag support
|
||||
* Apr 4, 2014 17223 snaples Updated other_office_id and rfc_bias to object
|
||||
* array so that called procedure can update and return values properly.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -470,17 +472,21 @@ public class RadarBiasTableDialog extends Dialog {
|
|||
bcoefLbl.setText(bbias);
|
||||
bcoefLbl.setLayoutData(gd);
|
||||
|
||||
String[] oid = new String[1];
|
||||
String office_id = "";
|
||||
float other_bias_value = 0;
|
||||
oid[0] = office_id;
|
||||
Float[] obias_value = new Float[1];
|
||||
Float other_bias_value = 0.00f;
|
||||
obias_value[0] = other_bias_value;
|
||||
int bias_found = ReadBiasTableParam.get_rfc_bias_value(rid,
|
||||
office_id, other_bias_value);
|
||||
oid, obias_value);
|
||||
|
||||
if (bias_found == 0) {
|
||||
obias = "N/A";
|
||||
ooffice = "N/A";
|
||||
} else {
|
||||
obias = String.format("%-1.2f", other_bias_value);
|
||||
ooffice = office_id;
|
||||
obias = String.format("%-1.2f", obias_value[0]);
|
||||
ooffice = oid[0];
|
||||
}
|
||||
gd = new GridData(SWT.FILL, SWT.CENTER, true, true);
|
||||
Label obiasLbl = new Label(biasListComp, SWT.CENTER);
|
||||
|
|
|
@ -43,6 +43,7 @@ import com.raytheon.viz.mpe.ui.dialogs.RadarBiasTableDialog;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Jul 15, 2009 snaples Initial creation
|
||||
* Apr 04, 2014 17223 snaples Updated get_rfc_bias to properly update and return values to calling procedure.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -161,8 +162,8 @@ public class ReadBiasTableParam {
|
|||
return coefs;
|
||||
}
|
||||
|
||||
public static int get_rfc_bias_value(String rid, String office_id,
|
||||
float pBias) {
|
||||
public static int get_rfc_bias_value(String rid, String[] oid,
|
||||
Float[] pBias) {
|
||||
String pFxaLocalSite = appsDefaults.getToken("fxa_local_site");
|
||||
String where = "";
|
||||
int bias_found = 0;
|
||||
|
@ -174,7 +175,6 @@ public class ReadBiasTableParam {
|
|||
String pRadarLoc = "";
|
||||
Rwbiasstat pRWBiasStat = new Rwbiasstat();
|
||||
Rwbiasdyn pRWBiasDynNode = new Rwbiasdyn();
|
||||
|
||||
length = pFxaLocalSite.length();
|
||||
|
||||
if (length > 0) {
|
||||
|
@ -219,8 +219,8 @@ public class ReadBiasTableParam {
|
|||
* this does not exist, then set the bias to 1.
|
||||
*/
|
||||
bias_found = 1;
|
||||
pBias = 1.00f;
|
||||
office_id = pRadarLoc;
|
||||
pBias[0] = 1.00f;
|
||||
oid[0] = pRadarLoc;
|
||||
|
||||
ListIterator<Rwbiasdyn> li = pRWBiasDynList
|
||||
.listIterator();
|
||||
|
@ -230,7 +230,7 @@ public class ReadBiasTableParam {
|
|||
|
||||
if (pRWBiasDynNode.getNumpairs() >= pRWBiasStat
|
||||
.getNpairBiasSelect()) {
|
||||
pBias = pRWBiasDynNode.getBias();
|
||||
pBias[0] = pRWBiasDynNode.getBias();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue