Page MenuHomec4science

parameterContainer.py
No OneTemporary

File Metadata

Created
Sun, Oct 13, 19:32

parameterContainer.py

###########################################################################
# #
# Copyright 2017 Andrea Cimatoribus #
# EPFL ENAC IIE ECOL #
# GR A1 435 (Batiment GR) #
# Station 2 #
# CH-1015 Lausanne #
# Andrea.Cimatoribus@epfl.ch #
# #
# Alexandre Serex #
# alexandre.serex@epfl.ch #
# #
# This file is part of ctracker #
# #
# ctracker is free software: you can redistribute it and/or modify it #
# under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# ctracker is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty #
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. #
# See the GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with ctracker. If not, see <http://www.gnu.org/licenses/>. #
# #
###########################################################################
from core.parameter import Parameter
class ParameterContainer(Parameter):
def __init__(self, name, value=0):
print("hi from parameter container")
super(ParameterContainer, self).__init__(name, value)
self._children = {}
@property
def children(self):
return self._children
def add_child(self, child):
self._children[child.name] = child
return self
def del_child(self, child_name):
return self._children.pop(child_name, self)

Event Timeline