public abstract class GeneralGUI extends Object implements org.lsst.ccs.messaging.StatusMessageListener, org.lsst.ccs.messaging.AgentPresenceListener, Serializable
| Modifier and Type | Class and Description |
|---|---|
class |
GeneralGUI.CommandSwingWorker
To send command which takes time from a JButton.
|
| Modifier and Type | Field and Description |
|---|---|
long |
abortTimeout |
protected org.lsst.ccs.messaging.AgentMessagingLayer |
aml |
protected org.lsst.ccs.messaging.ConcurrentMessagingUtils |
cmu |
protected String |
destination |
protected GeneralPanel |
generalPanel |
long |
initializationTimeout |
JScrollPane |
pane |
protected boolean |
panelStateInitialized |
protected String |
role |
long |
updateStateWithSensorsTimeout |
| Constructor and Description |
|---|
GeneralGUI(String name,
String role,
org.lsst.ccs.messaging.AgentMessagingLayer aml)
Contructor of a GeneralGUI with a name, a subsystem name (destination,
and an AgentMessagingLayer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abortAction() |
void |
connecting(org.lsst.ccs.bus.data.AgentInfo agent) |
void |
disconnecting(org.lsst.ccs.bus.data.AgentInfo agent) |
JComponent |
getGuiLayout() |
String |
getName() |
void |
initGui()
Initialize GUI
|
void |
onStatusMessage(org.lsst.ccs.bus.messages.StatusMessage s)
To update the Subsystem state panel only when the subsytem state has
changed.
|
void |
sendCommandSwingWorker(String commandName,
long timeout) |
void |
sendCommandSwingWorker(String commandName,
long timeout,
String moduleName) |
void |
shutdownMyDestinationSubsystem() |
void |
stopMyDestinationSubsystem() |
void |
updateStateWithSensors() |
protected String destination
protected final String role
protected GeneralPanel generalPanel
protected boolean panelStateInitialized
public JScrollPane pane
public long abortTimeout
public long updateStateWithSensorsTimeout
protected transient org.lsst.ccs.messaging.AgentMessagingLayer aml
protected final transient org.lsst.ccs.messaging.ConcurrentMessagingUtils cmu
public long initializationTimeout
public String getName()
public void initGui()
public JComponent getGuiLayout()
public void shutdownMyDestinationSubsystem()
public void abortAction()
public void stopMyDestinationSubsystem()
public void updateStateWithSensors()
public void sendCommandSwingWorker(String commandName, long timeout, String moduleName)
public void sendCommandSwingWorker(String commandName, long timeout)
public void onStatusMessage(org.lsst.ccs.bus.messages.StatusMessage s)
onStatusMessage in interface org.lsst.ccs.messaging.StatusMessageListeners - public void connecting(org.lsst.ccs.bus.data.AgentInfo agent)
connecting in interface org.lsst.ccs.messaging.AgentPresenceListenerpublic void disconnecting(org.lsst.ccs.bus.data.AgentInfo agent)
disconnecting in interface org.lsst.ccs.messaging.AgentPresenceListenerCopyright © 2018 LSST. All rights reserved.