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.


Member Function Documentation

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

Definition at line 72 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::_calc_remaining (   self  )  [private]

Definition at line 344 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::_calc_run_time (   self  )  [private]

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 724 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::_check_machine (   self,
  bay 
) [private]
Check the machine is online.

@return True if machine is OK

Definition at line 702 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::_check_test_ready (   self  )  [private]
Check if test has <0 time remaining.

@return False if test has no time left

Definition at line 807 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::_confirm_launch (   self  )  [private]
Checks with user to make sure test can start.

@return True if user is OK

Definition at line 819 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::_create_monitor (   self  )  [private]
Loads runtime_monitor panel. Called after to make display work

Definition at line 227 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::_display_logs (   self  )  [private]

Displays logs on screen.

Only update_test_record should be called

Definition at line 310 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::_enable_bay (   self  )  [private]
Reserve bay from manager, enable power

@return False if unable to reserve bay or enable power

Definition at line 789 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::_enable_controls (   self  )  [private]

Set pause/reset and power buttons on or off.

Definition at line 526 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::_load_bay (   self  )  [private]
Checks that the bay is valid, reserves bay, runs power.

@return None if bay invalid

Definition at line 774 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::_new_msg (   self  )  [private]
Updates state with new data from test_status

Definition at line 567 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::_status_callback (   self,
  msg 
) [private]
Callback from BAY/test_status topic

Definition at line 558 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::_tear_down_test (   self  )  [private]
Reset displays and state. Shut down test processes

Definition at line 642 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::_test_power_cmd (   self  )  [private]

Definition at line 407 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 509 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 488 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::launch_test (   self  ) 
Launches test on correct bay

@return False if launch failed or aborted

Definition at line 831 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::launched (   self  ) 

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 585 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::on_close (   self,
  event 
)

Definition at line 265 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::on_end_choice (   self,
  event = None 
)

Definition at line 240 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::on_halt_test (   self,
  event = None 
)
Calls halt_test service to test monitor

Definition at line 931 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::on_invent_timer (   self,
  event 
)
Update inventory system with a note on progress every 10 minutes

Definition at line 971 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::on_power_disable (   self,
  event 
)

Definition at line 436 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::on_power_run (   self,
  event 
)

Definition at line 418 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::on_power_standby (   self,
  event 
)

Definition at line 427 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::on_power_timer (   self,
  event = None 
)

Definition at line 448 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::on_reset_test (   self,
  event = None 
)
Calls reset_test service to test monitor

Definition at line 948 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::on_status_check (   self  ) 

Definition at line 375 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::on_timer (   self,
  event 
)

Definition at line 350 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::on_user_entry (   self,
  event 
)

Definition at line 291 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::record_test_log (   self  ) 
Called when test is closing down. 

Definition at line 965 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::start_power_timer (   self  ) 

Definition at line 445 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::start_stop_test (   self,
  event 
)

Definition at line 622 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::stop_if_done (   self  ) 

Definition at line 543 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::stop_test (   self  ) 

Definition at line 690 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::stop_test_user (   self  ) 

Called when user presses "stop" button.

Definition at line 634 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 453 of file test_monitor_panel.py.

def life_test::test_monitor_panel::TestMonitorPanel::update_test_record (   self,
  note = '' 
)

Updates record, notifies operator if necessary.

Definition at line 299 of file test_monitor_panel.py.


Member Data Documentation

Definition at line 148 of file test_monitor_panel.py.

Definition at line 188 of file test_monitor_panel.py.

Definition at line 120 of file test_monitor_panel.py.

Definition at line 189 of file test_monitor_panel.py.

Definition at line 190 of file test_monitor_panel.py.

Definition at line 143 of file test_monitor_panel.py.

Definition at line 146 of file test_monitor_panel.py.

Definition at line 102 of file test_monitor_panel.py.

Definition at line 103 of file test_monitor_panel.py.

Definition at line 197 of file test_monitor_panel.py.

Definition at line 159 of file test_monitor_panel.py.

Definition at line 132 of file test_monitor_panel.py.

Definition at line 222 of file test_monitor_panel.py.

Definition at line 193 of file test_monitor_panel.py.

Definition at line 208 of file test_monitor_panel.py.

Definition at line 206 of file test_monitor_panel.py.

Definition at line 93 of file test_monitor_panel.py.

Definition at line 151 of file test_monitor_panel.py.

Definition at line 177 of file test_monitor_panel.py.

Definition at line 75 of file test_monitor_panel.py.

Definition at line 231 of file test_monitor_panel.py.

Definition at line 77 of file test_monitor_panel.py.

Definition at line 180 of file test_monitor_panel.py.

Definition at line 89 of file test_monitor_panel.py.

Definition at line 155 of file test_monitor_panel.py.

Definition at line 176 of file test_monitor_panel.py.

Definition at line 170 of file test_monitor_panel.py.

Definition at line 162 of file test_monitor_panel.py.

Definition at line 175 of file test_monitor_panel.py.

Definition at line 166 of file test_monitor_panel.py.

Definition at line 196 of file test_monitor_panel.py.

Definition at line 84 of file test_monitor_panel.py.

Definition at line 128 of file test_monitor_panel.py.

Definition at line 83 of file test_monitor_panel.py.

Definition at line 183 of file test_monitor_panel.py.

Definition at line 194 of file test_monitor_panel.py.

Definition at line 124 of file test_monitor_panel.py.

Definition at line 563 of file test_monitor_panel.py.

Definition at line 79 of file test_monitor_panel.py.

Definition at line 198 of file test_monitor_panel.py.

Definition at line 82 of file test_monitor_panel.py.

Definition at line 97 of file test_monitor_panel.py.

Definition at line 90 of file test_monitor_panel.py.

Definition at line 104 of file test_monitor_panel.py.

Definition at line 201 of file test_monitor_panel.py.

Definition at line 152 of file test_monitor_panel.py.

Definition at line 195 of file test_monitor_panel.py.

Definition at line 207 of file test_monitor_panel.py.

Definition at line 137 of file test_monitor_panel.py.

Definition at line 139 of file test_monitor_panel.py.

Definition at line 220 of file test_monitor_panel.py.

Definition at line 218 of file test_monitor_panel.py.

Definition at line 214 of file test_monitor_panel.py.

Definition at line 215 of file test_monitor_panel.py.

Definition at line 212 of file test_monitor_panel.py.

Definition at line 204 of file test_monitor_panel.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables


life_test
Author(s): Kevin Watts
autogenerated on Fri Jan 11 09:35:06 2013