Public Member Functions | Private Attributes
rgoap.common.WorldState Class Reference

List of all members.

Public Member Functions

def __init__
def __repr__
def __str__
def get_condition_value
def get_state_name_dict
def get_unsatisfied_conditions
def matches
def set_condition_value

Private Attributes

 _condition_values

Detailed Description

Storage for values of conditions.

self._condition_values: Map<Condition, Object>

Definition at line 49 of file common.py.


Constructor & Destructor Documentation

def rgoap.common.WorldState.__init__ (   self,
  worldstate = None 
)

Definition at line 55 of file common.py.


Member Function Documentation

Definition at line 64 of file common.py.

Definition at line 60 of file common.py.

def rgoap.common.WorldState.get_condition_value (   self,
  condition 
)

Definition at line 68 of file common.py.

Returns a dictionary with not the conditions themselves but
their state_names as keys.

Definition at line 88 of file common.py.

def rgoap.common.WorldState.get_unsatisfied_conditions (   self,
  worldstate 
)
Return a set of conditions that are in both the given and this
worldstate but have unequal values. By now this is symmetric.

Definition at line 94 of file common.py.

def rgoap.common.WorldState.matches (   self,
  start_worldstate 
)
Return whether self is an 'equal subset' of start_worldstate.

Definition at line 74 of file common.py.

def rgoap.common.WorldState.set_condition_value (   self,
  condition,
  value 
)

Definition at line 71 of file common.py.


Member Data Documentation

Definition at line 55 of file common.py.


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


rgoap
Author(s): Felix Kolbe
autogenerated on Sun Oct 5 2014 23:53:02