bliss/comm/serial refactoring
Serial
class uses composition to delegate serial line handling to some other classes (SER2NET
, TangoSerial
, LocalSerial
, RFC2217
). However it is not clear why composition is applied for this case, compared to
classic inheritance. Indeed, it makes the code less readable and complex, in particular with the use of
a weakref
to the parent container class in the composed classes.
As it is, Serial
is a hidden factory class -- let's make it explicit.
Todo:
-
replace Serial
class withSerial
factory function -
refactor code to make use of classic inheritance instead of composition