Files
propka/Source/determinant.py
2012-11-15 17:47:47 +01:00

27 lines
559 B
Python

class Determinant:
"""
Determinant class - set up for later structurization
"""
def __init__(self, group, value):
"""
Contructer of determinant object - simple, but helps in creating structure!
"""
self.group = group
self.label = group.label
self.value = value
return
def add(self, value):
"""
adding a value to determinant
"""
self.value += value
return
def __str__(self):
return '%s: %8.2f'%(self.label,self.value)