Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
AndCondition Class Reference
Inheritance diagram for AndCondition:
Condition

Public Member Functions

def __init__
 
def __call__
 
- Public Member Functions inherited from Condition
def __init__
 
def __call__
 

Data Fields

 conds
 

Detailed Description

Definition at line 177 of file campaign_lib.py.

Constructor & Destructor Documentation

def __init__ (   self,
  conds,
  cond2 = None 
)

Definition at line 178 of file campaign_lib.py.

179  def __init__(self,conds,cond2=None):
180  Condition.__init__(self)
181  if cond2:
182  self.conds=[conds,cond2]
183  else:
184  self.conds=conds

Member Function Documentation

def __call__ (   self)

Definition at line 185 of file campaign_lib.py.

References OrCondition.conds, and AndCondition.conds.

186  def __call__(self):
187  for c in self.conds:
188  if not c():
189  return False
190  return True

Field Documentation

conds

Definition at line 181 of file campaign_lib.py.


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