Public Member Functions | Public Attributes | Private Attributes | List of all members
fabricate.SmartRunner Class Reference
Inheritance diagram for fabricate.SmartRunner:
fabricate.Runner object

Public Member Functions

def __init__ (self, builder)
 
def actual_runner (self)
 
def __call__ (self, args, kwargs)
 
def ignore (self, name)
 

Public Attributes

short int type
 
short int number
 
char name [SIZE_OF_OBJ_NAME]
 
cat_entry star
 

Private Attributes

 _builder
 
 _runner
 

Detailed Description

Smart command runner that uses StraceRunner if it can,
    otherwise AtimesRunner if available, otherwise AlwaysRunner. 

Definition at line 765 of file fabricate.py.

Constructor & Destructor Documentation

def fabricate.SmartRunner.__init__ (   self,
  builder 
)

Definition at line 768 of file fabricate.py.

Referenced by PandAna.core.core.spectrum.fill().

768  def __init__(self, builder):
769  self._builder = builder
770  try:
772  except RunnerUnsupportedException:
773  try:
774  self._runner = AtimesRunner(self._builder)
775  except RunnerUnsupportedException:
776  self._runner = AlwaysRunner(self._builder)
777 
def __init__(self, builder)
Definition: fabricate.py:768

Member Function Documentation

def fabricate.SmartRunner.__call__ (   self,
  args,
  kwargs 
)

Definition at line 781 of file fabricate.py.

References fabricate.SmartRunner._runner.

781  def __call__(self, *args, **kwargs):
782  return self._runner(*args, **kwargs)
783 
def __call__(self, args, kwargs)
Definition: fabricate.py:781
def fabricate.SmartRunner.actual_runner (   self)

Definition at line 778 of file fabricate.py.

References fabricate.SmartRunner._runner.

778  def actual_runner(self):
779  return self._runner
780 
def actual_runner(self)
Definition: fabricate.py:778
def fabricate.Runner.ignore (   self,
  name 
)
inherited

Definition at line 263 of file fabricate.py.

Referenced by fabricate.AtimesRunner.__call__(), and fabricate.StraceRunner._match_line().

263  def ignore(self, name):
264  return self._builder.ignore.search(name)
265 
def ignore(self, name)
Definition: fabricate.py:263

Member Data Documentation

fabricate.SmartRunner._builder
private

Definition at line 769 of file fabricate.py.

fabricate.SmartRunner._runner
private
char object::name
inherited
short int object::number
inherited

Definition at line 115 of file novas.h.

cat_entry object::star
inherited

Definition at line 117 of file novas.h.

short int object::type
inherited

Definition at line 114 of file novas.h.


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