Class Rats
-
- All Implemented Interfaces:
adams.scripting.processor.RemoteCommandProcessorHandler
,Comparable<AbstractRemoteCommandAction>
public class Rats extends AbstractRemoteFlowCommandAction
For managing Rats.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Rats.RatStatusPanel
Panel for a single Rat.static class
Rats.RatStatusResponseHandler
Custom handler for intercepting the responses from theListFlows
remote command.-
Nested classes/interfaces inherited from class adams.terminal.menu.remotecommand.AbstractRemoteFlowCommandAction
AbstractRemoteFlowCommandAction.FlowListResponseHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected com.googlecode.lanterna.gui2.Button
m_ButtonRefreshRats
the button for updating the rats states.protected com.googlecode.lanterna.gui2.Panel
m_PanelRats
the panel with rats.-
Fields inherited from class adams.terminal.menu.remotecommand.AbstractRemoteFlowCommandAction
DEFAULT_PORT, m_ButtonKillAdams, m_ButtonPauseFlow, m_ButtonRefresh, m_ButtonResumeFlow, m_ButtonStopAdams, m_ButtonStopFlow, m_PanelBottom, m_PanelFlows, m_TableFlows, m_TextLocal, m_TextRemote, NO_DATA
-
Fields inherited from class adams.terminal.menu.remotecommand.AbstractRemoteCommandAction
m_CommandProcessor, m_Owner
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearStatus()
Clears the rat status panel.protected com.googlecode.lanterna.gui2.Panel
createPanel()
Creates the panel to display.void
focusRefreshRatsButton()
Gives them_ButtonRefreshRats
button the focus.String
getTitle()
Returns the title of the action.void
refreshRats()
Sends command to retrieve rats status.protected void
updateButtons()
Updates the state of the buttons.protected void
updateRats(adams.data.spreadsheet.SpreadSheet status)
Updates the rat status panel.-
Methods inherited from class adams.terminal.menu.remotecommand.AbstractRemoteFlowCommandAction
configureEngine, getFlowsTable, getSelectedFlowIDs, getSelectedRows, killAdams, pauseFlow, refreshFlows, resumeFlow, sendCommand, sendCommandWithReponse, sendCommandWithReponse, stopAdams, stopFlow
-
Methods inherited from class adams.terminal.menu.remotecommand.AbstractRemoteCommandActionWithGUI
doRun
-
Methods inherited from class adams.terminal.menu.remotecommand.AbstractRemoteCommandAction
compareTo, configureEngine, equals, getCommandProcessor, getLogTextBox, getOwner, getRunnable, initialize, logError, logError, logMessage, postRun, preRun, sendCommand, sendCommandWithReponse, setCommandProcessor, setOwner
-
-
-
-
Method Detail
-
getTitle
public String getTitle()
Returns the title of the action.- Specified by:
getTitle
in classAbstractRemoteCommandAction
- Returns:
- the title
-
createPanel
protected com.googlecode.lanterna.gui2.Panel createPanel()
Creates the panel to display.- Overrides:
createPanel
in classAbstractRemoteFlowCommandAction
- Returns:
- the panel
-
updateButtons
protected void updateButtons()
Updates the state of the buttons.- Overrides:
updateButtons
in classAbstractRemoteFlowCommandAction
-
focusRefreshRatsButton
public void focusRefreshRatsButton()
Gives them_ButtonRefreshRats
button the focus.
-
refreshRats
public void refreshRats()
Sends command to retrieve rats status.
-
clearStatus
protected void clearStatus()
Clears the rat status panel.
-
updateRats
protected void updateRats(adams.data.spreadsheet.SpreadSheet status)
Updates the rat status panel.- Parameters:
status
- the current status
-
-