Public Member Functions | Private Attributes | List of all members
flexbe_states.decision_state.DecisionState Class Reference
Inheritance diagram for flexbe_states.decision_state.DecisionState:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, outcomes, conditions)
 
def execute (self, userdata)
 
def on_enter (self, userdata)
 

Private Attributes

 _conditions
 
 _my_outcomes
 

Detailed Description

Evaluates a condition function in order to return one of the specified outcomes.
This state can be used if the further control flow of the behavior depends on an advanced condition.

-- outcomes     string[]        A list containing all possible outcomes of this state
-- conditions   function        Implements the condition check and returns one of the available outcomes.
                                                        Has to expect one parameter which will be set to input_value.

># input_value  object          Input to the condition function.

Definition at line 13 of file decision_state.py.

Constructor & Destructor Documentation

def flexbe_states.decision_state.DecisionState.__init__ (   self,
  outcomes,
  conditions 
)
Constructor

Definition at line 27 of file decision_state.py.

Member Function Documentation

def flexbe_states.decision_state.DecisionState.execute (   self,
  userdata 
)
Execute this state

Definition at line 38 of file decision_state.py.

def flexbe_states.decision_state.DecisionState.on_enter (   self,
  userdata 
)

Definition at line 54 of file decision_state.py.

Member Data Documentation

flexbe_states.decision_state.DecisionState._conditions
private

Definition at line 34 of file decision_state.py.

flexbe_states.decision_state.DecisionState._my_outcomes
private

Definition at line 35 of file decision_state.py.


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


flexbe_states
Author(s): Philipp Schillinger
autogenerated on Wed Jun 5 2019 21:52:08