24 lines
467 B
Python
24 lines
467 B
Python
#!/usr/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
# \file Node.py
|
|
# \brief TODO
|
|
# \author Florent Guiotte <florent.guiotte@gmail.com>
|
|
# \version 0.1
|
|
# \date 03 avril 2018
|
|
#
|
|
# TODO details
|
|
|
|
|
|
class Node:
|
|
def __init__(self, name='A NODE HAS NO NAME'):
|
|
self.name = name
|
|
|
|
def __str__(self):
|
|
return ("Node:{}".format(self.name))
|
|
|
|
def _run(self):
|
|
raise NotImplementedError('This method is virtual')
|
|
|
|
def run(self):
|
|
return self._run()
|