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 |
connected(org.lsst.ccs.bus.data.AgentInfo... agents) |
void |
disconnected(org.lsst.ccs.bus.data.AgentInfo... agents) |
List<String> |
getAcSensorsNamesList()
Sends a command to retrieve the list of sensors connected to
acPlutoGateway.
|
JComponent |
getGuiLayout() |
List<String> |
getLoSensorsNamesList()
Sends a command to retrieve the list of sensors connected to loader
PLutoGateway.
|
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 |
sendCommand(String commandName,
long timeout)
send a command to my subsystem with a timeout
|
void |
sendCommand(String commandName,
long timeout,
String componentName)
send a command to my subsystem with a timeout and the name of a component
of my subsystem
|
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 void sendCommand(String commandName, long timeout)
commandName - timeout - public void sendCommand(String commandName, long timeout, String componentName)
commandName - timeout - componentName - 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 connected(org.lsst.ccs.bus.data.AgentInfo... agents)
connected in interface org.lsst.ccs.messaging.AgentPresenceListenerpublic List<String> getAcSensorsNamesList()
public List<String> getLoSensorsNamesList()
public void disconnected(org.lsst.ccs.bus.data.AgentInfo... agents)
disconnected in interface org.lsst.ccs.messaging.AgentPresenceListenerCopyright © 2023 LSST. All rights reserved.