Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions
rcommander.graph_model.GraphModel Class Reference

List of all members.

Public Member Functions

def __init__
def add_edge
def add_node
def add_outcome
def connectable_nodes
def connection_changed
def create_singleton_statemachine
def create_state_machine
def current_children_of
def delete_edge
def delete_node
def get_document
def get_last_outcome
def get_start_state
def get_state
def is_modifiable
def is_running
def outcomes
def outputs_of_type
def pop_state
def preempt
def real_states
 All nodes that has executable code (not outcomes/EmptyState)
def register_status_cb
def replace_node
def restore_node_consistency
def run
def save
def set_document
def set_start_state
def set_state

Static Public Member Functions

def load

Public Attributes

 document
 edge
 gve
 last_outcome
 node
 sm_thread
 start_state
 states_dict
 status_cb_func

Static Public Attributes

int EDGE_LENGTH = 2
string EDGES_FILE = 'edges.graph'
int NODE_RADIUS = 14
string NODES_FILE = 'nodes.graph'

Private Member Functions

def _add_edge
def _add_temporary_outcome
def _create_outcome_name
def _is_type
def _sm_thread_termination_cb
def _state_machine_start_cb
def _state_machine_termination_cb
def _state_machine_transition_cb

Detailed Description

Definition at line 56 of file graph_model.py.


Constructor & Destructor Documentation

Definition at line 68 of file graph_model.py.


Member Function Documentation

def rcommander.graph_model.GraphModel._add_edge (   self,
  n1,
  n2,
  n1_outcome 
) [private]

Definition at line 695 of file graph_model.py.

def rcommander.graph_model.GraphModel._add_temporary_outcome (   self,
  outcome 
) [private]

Definition at line 685 of file graph_model.py.

def rcommander.graph_model.GraphModel._create_outcome_name (   self,
  outcome 
) [private]

Definition at line 477 of file graph_model.py.

def rcommander.graph_model.GraphModel._is_type (   self,
  state_name,
  outcome 
) [private]

Definition at line 485 of file graph_model.py.

def rcommander.graph_model.GraphModel._sm_thread_termination_cb (   self,
  exception 
) [private]

Definition at line 237 of file graph_model.py.

def rcommander.graph_model.GraphModel._state_machine_start_cb (   self,
  userdata,
  initial_states 
) [private]

Definition at line 262 of file graph_model.py.

def rcommander.graph_model.GraphModel._state_machine_termination_cb (   self,
  userdata,
  terminal_states,
  container_outcome 
) [private]

Definition at line 272 of file graph_model.py.

def rcommander.graph_model.GraphModel._state_machine_transition_cb (   self,
  user_data,
  active_states 
) [private]

Definition at line 250 of file graph_model.py.

def rcommander.graph_model.GraphModel.add_edge (   self,
  n1,
  n2,
  n1_outcome 
)

Definition at line 712 of file graph_model.py.

def rcommander.graph_model.GraphModel.add_node (   self,
  node 
)

Definition at line 492 of file graph_model.py.

def rcommander.graph_model.GraphModel.add_outcome (   self,
  outcome_name 
)

Definition at line 560 of file graph_model.py.

def rcommander.graph_model.GraphModel.connectable_nodes (   self,
  node_name,
  outcome 
)

Definition at line 444 of file graph_model.py.

def rcommander.graph_model.GraphModel.connection_changed (   self,
  node_name,
  outcome_name,
  new_node 
)

Definition at line 725 of file graph_model.py.

Definition at line 190 of file graph_model.py.

def rcommander.graph_model.GraphModel.create_state_machine (   self,
  robot,
  userdata = None,
  ignore_start_state = False 
)

Definition at line 295 of file graph_model.py.

Definition at line 361 of file graph_model.py.

Definition at line 718 of file graph_model.py.

def rcommander.graph_model.GraphModel.delete_node (   self,
  node_name 
)

Definition at line 564 of file graph_model.py.

Definition at line 97 of file graph_model.py.

Definition at line 269 of file graph_model.py.

Definition at line 85 of file graph_model.py.

def rcommander.graph_model.GraphModel.get_state (   self,
  node_name 
)

Definition at line 389 of file graph_model.py.

def rcommander.graph_model.GraphModel.is_modifiable (   self,
  node_name 
)

Definition at line 689 of file graph_model.py.

Definition at line 231 of file graph_model.py.

def rcommander.graph_model.GraphModel.load (   name) [static]

Definition at line 101 of file graph_model.py.

Definition at line 378 of file graph_model.py.

def rcommander.graph_model.GraphModel.outputs_of_type (   self,
  class_filter 
)

Definition at line 285 of file graph_model.py.

def rcommander.graph_model.GraphModel.pop_state (   self,
  node_name 
)

Definition at line 386 of file graph_model.py.

Definition at line 225 of file graph_model.py.

All nodes that has executable code (not outcomes/EmptyState)

Definition at line 371 of file graph_model.py.

Definition at line 234 of file graph_model.py.

def rcommander.graph_model.GraphModel.replace_node (   self,
  new_node,
  old_node_name 
)

Definition at line 396 of file graph_model.py.

Definition at line 649 of file graph_model.py.

def rcommander.graph_model.GraphModel.run (   self,
  name = "",
  state_machine = None,
  userdata = None 
)

Definition at line 203 of file graph_model.py.

def rcommander.graph_model.GraphModel.save (   self,
  name 
)

Definition at line 149 of file graph_model.py.

def rcommander.graph_model.GraphModel.set_document (   self,
  document 
)

Definition at line 94 of file graph_model.py.

Definition at line 88 of file graph_model.py.

def rcommander.graph_model.GraphModel.set_state (   self,
  node_name,
  state 
)

Definition at line 393 of file graph_model.py.


Member Data Documentation

Definition at line 68 of file graph_model.py.

Definition at line 68 of file graph_model.py.

Definition at line 66 of file graph_model.py.

string rcommander::graph_model.GraphModel::EDGES_FILE = 'edges.graph' [static]

Definition at line 59 of file graph_model.py.

Definition at line 68 of file graph_model.py.

Definition at line 68 of file graph_model.py.

Definition at line 68 of file graph_model.py.

Definition at line 64 of file graph_model.py.

string rcommander::graph_model.GraphModel::NODES_FILE = 'nodes.graph' [static]

Definition at line 62 of file graph_model.py.

Definition at line 68 of file graph_model.py.

Definition at line 68 of file graph_model.py.

Definition at line 68 of file graph_model.py.

Definition at line 68 of file graph_model.py.


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


rcommander
Author(s): Hai Nguyen (haidai@gmail.com)
autogenerated on Thu Nov 28 2013 11:46:34