diff options
author | Nicholas McCarthy <namccart@gmail.com> | 2013-07-07 18:08:20 -0400 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2013-07-08 07:19:33 -0700 |
commit | cd99526b5d1c8b1130ac1ba87e21f96c621b1bdc (patch) | |
tree | 12836648bf75868b17b04a2c3ead9c1b6fa2d4c5 /grc/python/Connection.py | |
parent | 2dc1b6f2ed0cabd2bccbcc58487e93be4295df84 (diff) |
grc: add bus ports
Bus ports allow ganging together of block input or output ports into
a single display item for connection to other bus ports.
Diffstat (limited to 'grc/python/Connection.py')
-rw-r--r-- | grc/python/Connection.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/grc/python/Connection.py b/grc/python/Connection.py index 341dd2d821..97bf61d590 100644 --- a/grc/python/Connection.py +++ b/grc/python/Connection.py @@ -33,7 +33,9 @@ class Connection(_Connection, _GUIConnection): def is_message(self): return self.get_source().get_type() == self.get_sink().get_type() == 'message' - + + def is_bus(self): + return self.get_source().get_type() == self.get_sink().get_type() == 'bus' def validate(self): """ Validate the connections. @@ -44,3 +46,5 @@ class Connection(_Connection, _GUIConnection): sink_size = Constants.TYPE_TO_SIZEOF[self.get_sink().get_type()] * self.get_sink().get_vlen() if source_size != sink_size: self.add_error_message('Source IO size "%s" does not match sink IO size "%s".'%(source_size, sink_size)) + + |