Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82479117
parameter.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Sep 11, 16:00
Size
2 KB
Mime Type
text/x-python
Expires
Fri, Sep 13, 16:00 (2 d)
Engine
blob
Format
Raw Data
Handle
20705818
Attached To
rCTRACKER ctracker3
parameter.py
View Options
###########################################################################
# #
# 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/>. #
# #
###########################################################################
class
Parameter
:
def
__init__
(
self
,
name
,
value
=
0
):
print
(
"hi from parameter"
)
self
.
_name
=
name
self
.
_value
=
value
def
get
(
self
,
name
):
if
name
==
self
.
name
:
return
self
else
:
return
None
@property
def
name
(
self
):
return
self
.
_name
@name.setter
def
name
(
self
,
value
):
self
.
_name
=
value
@name.deleter
def
name
(
self
):
del
self
.
_name
@property
def
value
(
self
):
return
self
.
_value
@value.setter
def
value
(
self
,
value
):
self
.
_value
=
value
@value.deleter
def
value
(
self
):
del
self
.
_value
Event Timeline
Log In to Comment