Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
life_test.test_monitor_panel.TestMonitorPanel Class Reference

List of all members.

Public Member Functions

def __init__
def launch_test
def launched
def make_launch_script
def on_close
def on_end_choice
def on_halt_test
def on_invent_timer
def on_power_disable
def on_power_run
def on_power_standby
def on_power_timer
def on_reset_test
def on_status_check
def on_timer
def on_user_entry
def record_test_log
def start_power_timer
def start_stop_test
def stop_if_done
def stop_test
def stop_test_user
 Called when user presses "stop" button.
def update_board
 Updates power board control with status.
def update_test_record
 Updates record, notifies operator if necessary.

Public Attributes

 invent_timeout
 invent_timer
 last_power_update
 power_timeout
 power_timer
 timer

Private Member Functions

def _calc_remaining
def _calc_run_time
def _check_keys
def _check_machine
def _check_test_ready
def _confirm_launch
def _create_monitor
def _display_logs
 Displays logs on screen.
def _enable_bay
def _enable_controls
 Set pause/reset and power buttons on or off.
def _load_bay
def _new_msg
def _status_callback
def _tear_down_test
def _test_power_cmd
def _update_controls
 Called after status message or timer callback.
def _update_status_bar
 Updates test status bar.

Private Attributes

 _active_time_ctrl
 _bay
 _close_button
 _current_log
 _diag_msgs
 _done_time_ctrl
 _elapsed_time_ctrl
 _end_cond_type
 _end_cond_type_label
 _estop_stat
 _estop_status
 _halt_button
 _is_invent_stale
 _is_running
 _is_stale
 _last_message_time
 _launch_button
 _log_ctrl
 _machine_text
 _manager
 _monitor_panel
 _mutex
 _notebook
 _panel
 _power_board_text
 _power_breaker_text
 _power_disable_button
 _power_run_button
 _power_sn_text
 _power_standby_button
 _power_stat
 _record
 _reset_button
 _serial
 _sizer
 _stat_level
 _status_bar
 _status_msg
 _status_sub
 _stop_count
 _test
 _test_bay_ctrl
 _test_desc
 _test_duration_ctrl
 _test_launcher
 _test_log_window
 _test_msg
 _timeout_interval
 _user_log
 _user_submit

Detailed Description

Definition at line 71 of file test_monitor_panel.py.


Constructor & Destructor Documentation

def life_test.test_monitor_panel.TestMonitorPanel.__init__ (   self,
  parent,
  manager,
  test,
  serial 
)

Definition at line 72 of file test_monitor_panel.py.


Member Function Documentation

Definition at line 344 of file test_monitor_panel.py.

Definition at line 330 of file test_monitor_panel.py.

def life_test.test_monitor_panel.TestMonitorPanel._check_keys (   self,
  bay 
) [private]
Check that machine has valid keys for remote launching

Uses paramiko to make sure it can open a connection to the remote machine. Will open a message box with
error message if it is unable to log in. Returns False if failure, True if OK.

Definition at line 743 of file test_monitor_panel.py.

Check the machine is online.

@return True if machine is OK

Definition at line 721 of file test_monitor_panel.py.

Check if test has <0 time remaining.

@return False if test has no time left

Definition at line 826 of file test_monitor_panel.py.

Checks with user to make sure test can start.

@return True if user is OK

Definition at line 838 of file test_monitor_panel.py.

Loads runtime_monitor panel. Called after to make display work

Definition at line 227 of file test_monitor_panel.py.

Displays logs on screen.

Only update_test_record should be called

Definition at line 310 of file test_monitor_panel.py.

Reserve bay from manager, enable power

@return False if unable to reserve bay or enable power

Definition at line 808 of file test_monitor_panel.py.

Set pause/reset and power buttons on or off.

Definition at line 531 of file test_monitor_panel.py.

Checks that the bay is valid, reserves bay, runs power.

@return None if bay invalid

Definition at line 793 of file test_monitor_panel.py.

Updates state with new data from test_status

Definition at line 580 of file test_monitor_panel.py.

Callback from BAY/test_status topic

Definition at line 571 of file test_monitor_panel.py.

Reset displays and state. Shut down test processes

Definition at line 661 of file test_monitor_panel.py.

Definition at line 412 of file test_monitor_panel.py.

def life_test.test_monitor_panel.TestMonitorPanel._update_controls (   self,
  level = 4,
  msg = 'None' 
) [private]

Called after status message or timer callback.

Definition at line 514 of file test_monitor_panel.py.

def life_test.test_monitor_panel.TestMonitorPanel._update_status_bar (   self,
  level,
  msg 
) [private]

Updates test status bar.

Definition at line 493 of file test_monitor_panel.py.

Launches test on correct bay

@return False if launch failed or aborted

Definition at line 850 of file test_monitor_panel.py.

Definition at line 237 of file test_monitor_panel.py.

def life_test.test_monitor_panel.TestMonitorPanel.make_launch_script (   self,
  bay,
  script,
  local_diag_topic 
)
Todo:
Private, and move out of class

Definition at line 604 of file test_monitor_panel.py.

Definition at line 265 of file test_monitor_panel.py.

Definition at line 240 of file test_monitor_panel.py.

Calls halt_test service to test monitor

Definition at line 952 of file test_monitor_panel.py.

Update inventory system with a note on progress every 10 minutes

Definition at line 992 of file test_monitor_panel.py.

Definition at line 441 of file test_monitor_panel.py.

Definition at line 423 of file test_monitor_panel.py.

Definition at line 432 of file test_monitor_panel.py.

Definition at line 453 of file test_monitor_panel.py.

Calls reset_test service to test monitor

Definition at line 969 of file test_monitor_panel.py.

Definition at line 380 of file test_monitor_panel.py.

Definition at line 350 of file test_monitor_panel.py.

Definition at line 291 of file test_monitor_panel.py.

Called when test is closing down. 

Definition at line 986 of file test_monitor_panel.py.

Definition at line 450 of file test_monitor_panel.py.

Definition at line 641 of file test_monitor_panel.py.

Definition at line 548 of file test_monitor_panel.py.

Definition at line 709 of file test_monitor_panel.py.

Called when user presses "stop" button.

Definition at line 653 of file test_monitor_panel.py.

def life_test.test_monitor_panel.TestMonitorPanel.update_board (   self,
  value,
  estop 
)

Updates power board control with status.

Definition at line 458 of file test_monitor_panel.py.

Updates record, notifies operator if necessary.

Definition at line 299 of file test_monitor_panel.py.


Member Data Documentation

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 229 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 573 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.

Definition at line 72 of file test_monitor_panel.py.


The documentation for this class was generated from the following file:


life_test
Author(s): Kevin Watts
autogenerated on Sat Dec 28 2013 17:56:37