Package aloha :: Module aloha_writers :: Class WriteALOHA
[hide private]
[frames] | no frames]

Class WriteALOHA

source code

Known Subclasses:

Generic writing functions

Nested Classes [hide private]
  change_var_format
str(object) -> string
  change_number_format
str(object) -> string
Instance Methods [hide private]
 
__init__(self, abstract_routine, dirpath) source code
 
pass_to_HELAS(self, indices, start=0)
find the Fortran HELAS position for the list of index
source code
 
collect_variables(self)
Collects Momenta,Mass,Width into lists
source code
 
define_header(self)
Prototype for language specific header
source code
 
define_content(self)
Prototype for language specific body
source code
 
define_foot(self)
Prototype for language specific footer
source code
 
write_indices_part(self, indices, obj)
Routine for making a string out of indices objects
source code
 
write_obj(self, obj)
Calls the appropriate writing routine
source code
 
write_obj_Mult(self, obj)
Turn a multvariable into a string
source code
 
write_obj_Add(self, obj)
Turns addvariable into a string
source code
 
write_obj_Var(self, obj) source code
 
make_all_lists(self)
Make all the list for call ordering, conservation impulsion, basic declaration
source code
 
make_call_list(self, outgoing=None)
find the way to write the call of the functions
source code
 
make_momentum_conservation(self)
compute the sign for the momentum conservation
source code
 
make_declaration_list(self)
make the list of declaration nedded by the header
source code
Class Variables [hide private]
  power_symbol = '**'
  extension = ''
  type_to_variable = {1: 'S', 2: 'F', 3: 'V', 5: 'T'}
  type_to_size = {'F': 6, 'S': 3, 'T': 18, 'V': 6}