<gh_stars>0
from .primitives import *

class Component():

    def __init__(self):
        self.location = Vector(0, 0, 0)
        self.weight = 0
        self.cg = 0

    def __repr__(self):
        out = f'\n Object: {self.__class__.__name__}'

        for k in self.__dict__:
            val = str(self.__dict__[k])
            val = val.replace('\n', '\n --> ')
            out += f'\n{k} \t {val}'

        return out

    def calculate_weight(W0):
        raise NotImplementedError()




from .primitives import *

class Component():

    def __init__(self):
        self.location = Vector(0, 0, 0)
        self.weight = 0
        self.cg = 0

    def __repr__(self):
        out = f'\n Object: {self.__class__.__name__}'

        for k in self.__dict__:
            val = str(self.__dict__[k])
            val = val.replace('\n', '\n --> ')
            out += f'\n{k} \t {val}'

        return out

    def calculate_weight(W0):
        raise NotImplementedError()