diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2016-02-07 13:44:59 +0100 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2016-02-17 19:55:16 +0100 |
commit | ed6e9a484ddddbbadf19584f6606d2c9e36de823 (patch) | |
tree | bbad5da38afcfa2cfb29f4787dfe5d862565f5e4 /grc/model/Element.py | |
parent | 62aadb3198ce82a6fb9d7e4a12bf7df1ee168100 (diff) |
grc-refactor: fixes, type-testing-flags, FlowGraph.py, (more)
Diffstat (limited to 'grc/model/Element.py')
-rw-r--r-- | grc/model/Element.py | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/grc/model/Element.py b/grc/model/Element.py index 6716cd619c..c999d6704f 100644 --- a/grc/model/Element.py +++ b/grc/model/Element.py @@ -90,34 +90,17 @@ class Element(object): return list() ############################################## - # Type testing methods + # Type testing ############################################## - def is_element(self): - return True - - def is_platform(self): - return False - - def is_flow_graph(self): - return False - - def is_connection(self): - return False - - def is_block(self): - return False + is_platform = False - def is_dummy_block(self): - return False + is_flow_graph = False - def is_source(self): - return False + is_block = False + is_dummy_block = False - def is_sink(self): - return False + is_connection = False - def is_port(self): - return False + is_port = False - def is_param(self): - return False + is_param = False |