mirror of
https://github.com/nasa/trick.git
synced 2025-02-28 19:36:03 +00:00
Increased accessibility for a few members and functions
This commit is contained in:
parent
cca503a6ec
commit
28bece6065
@ -103,11 +103,24 @@ public class SimControlApplication extends TrickApplication implements PropertyC
|
|||||||
//========================================
|
//========================================
|
||||||
// Public data
|
// Public data
|
||||||
//========================================
|
//========================================
|
||||||
|
final public static Dimension FULL_SIZE = new Dimension(680, 640);
|
||||||
|
final public static Dimension LITE_SIZE = new Dimension(340, 360);
|
||||||
|
|
||||||
|
|
||||||
//========================================
|
//========================================
|
||||||
// Protected data
|
// Protected data
|
||||||
//========================================
|
//========================================
|
||||||
|
protected static String host;
|
||||||
|
protected static int port = -1;
|
||||||
|
|
||||||
|
/** whether or not to print a send_hs file to the status message panel */
|
||||||
|
protected static boolean isRestartOptionOn;
|
||||||
|
|
||||||
|
/** whether automatically exit when sim is done/killed. */
|
||||||
|
protected static boolean isAutoExitOn;
|
||||||
|
|
||||||
|
/** The action controller that performs actions for such as clicking button, selection a menu item and etc. */
|
||||||
|
protected SimControlActionController actionController;
|
||||||
|
|
||||||
|
|
||||||
//========================================
|
//========================================
|
||||||
@ -120,9 +133,6 @@ public class SimControlApplication extends TrickApplication implements PropertyC
|
|||||||
private int message_present ;
|
private int message_present ;
|
||||||
private int message_port ;
|
private int message_port ;
|
||||||
|
|
||||||
/** whether automatically exit when sim is done/killed. */
|
|
||||||
private static boolean isAutoExitOn;
|
|
||||||
|
|
||||||
// The panel that displays the current sim state description as well as progress.
|
// The panel that displays the current sim state description as well as progress.
|
||||||
private JXTitledPanel runtimeStatePanel;
|
private JXTitledPanel runtimeStatePanel;
|
||||||
private String currentSimStatusDesc = "None";
|
private String currentSimStatusDesc = "None";
|
||||||
@ -154,11 +164,6 @@ public class SimControlApplication extends TrickApplication implements PropertyC
|
|||||||
|
|
||||||
private JXLabel statusLabel;
|
private JXLabel statusLabel;
|
||||||
|
|
||||||
/*
|
|
||||||
* The action controller that performs actions for such as clicking button, selection a menu item and etc.
|
|
||||||
*/
|
|
||||||
private SimControlActionController actionController;
|
|
||||||
|
|
||||||
// The animation image player panel
|
// The animation image player panel
|
||||||
private AnimationPlayer logoImagePanel;
|
private AnimationPlayer logoImagePanel;
|
||||||
|
|
||||||
@ -171,9 +176,6 @@ public class SimControlApplication extends TrickApplication implements PropertyC
|
|||||||
private SocketChannel healthStatusSocketChannel ;
|
private SocketChannel healthStatusSocketChannel ;
|
||||||
|
|
||||||
private JComboBox runningSimList;
|
private JComboBox runningSimList;
|
||||||
private static String host;
|
|
||||||
private static int port = -1;
|
|
||||||
private static boolean isRestartOptionOn;
|
|
||||||
//True if an error was encountered during the attempt to connect to Variable Server during intialize()
|
//True if an error was encountered during the attempt to connect to Variable Server during intialize()
|
||||||
private boolean errOnInitConnect = false;
|
private boolean errOnInitConnect = false;
|
||||||
//Time out when attempting to establish connection with Variable Server in milliseconds
|
//Time out when attempting to establish connection with Variable Server in milliseconds
|
||||||
@ -188,9 +190,6 @@ public class SimControlApplication extends TrickApplication implements PropertyC
|
|||||||
|
|
||||||
final private static String LOCALHOST = "localhost";
|
final private static String LOCALHOST = "localhost";
|
||||||
|
|
||||||
final private Dimension FULL_SIZE = new Dimension(680, 640);
|
|
||||||
final private Dimension LITE_SIZE = new Dimension(340, 360);
|
|
||||||
|
|
||||||
//========================================
|
//========================================
|
||||||
// Actions
|
// Actions
|
||||||
//========================================
|
//========================================
|
||||||
@ -565,7 +564,6 @@ public class SimControlApplication extends TrickApplication implements PropertyC
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//========================================
|
//========================================
|
||||||
// Methods
|
// Methods
|
||||||
//========================================
|
//========================================
|
||||||
@ -1263,7 +1261,7 @@ public class SimControlApplication extends TrickApplication implements PropertyC
|
|||||||
/**
|
/**
|
||||||
* Updates the GUI as needed if SIM states are changed.
|
* Updates the GUI as needed if SIM states are changed.
|
||||||
*/
|
*/
|
||||||
private void updateGUI() {
|
protected void updateGUI() {
|
||||||
String newStatusDesc = SimState.SIM_MODE_DESCRIPTION[simState.getMode()];
|
String newStatusDesc = SimState.SIM_MODE_DESCRIPTION[simState.getMode()];
|
||||||
|
|
||||||
recTime.setText(simState.getTwoFractionFormatted(simState.getExecOutTime()));
|
recTime.setText(simState.getTwoFractionFormatted(simState.getExecOutTime()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user