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 classRats.RatStatusPanelPanel for a single Rat.static classRats.RatStatusResponseHandlerCustom handler for intercepting the responses from theListFlowsremote 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.Buttonm_ButtonRefreshRatsthe button for updating the rats states.protected com.googlecode.lanterna.gui2.Panelm_PanelRatsthe 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 voidclearStatus()Clears the rat status panel.protected com.googlecode.lanterna.gui2.PanelcreatePanel()Creates the panel to display.voidfocusRefreshRatsButton()Gives them_ButtonRefreshRatsbutton the focus.StringgetTitle()Returns the title of the action.voidrefreshRats()Sends command to retrieve rats status.protected voidupdateButtons()Updates the state of the buttons.protected voidupdateRats(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:
getTitlein classAbstractRemoteCommandAction- Returns:
- the title
-
createPanel
protected com.googlecode.lanterna.gui2.Panel createPanel()
Creates the panel to display.- Overrides:
createPanelin classAbstractRemoteFlowCommandAction- Returns:
- the panel
-
updateButtons
protected void updateButtons()
Updates the state of the buttons.- Overrides:
updateButtonsin classAbstractRemoteFlowCommandAction
-
focusRefreshRatsButton
public void focusRefreshRatsButton()
Gives them_ButtonRefreshRatsbutton 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
-
-