steveohara / j2mod

Enhanced Modbus library implemented in the Java programming language
Apache License 2.0
265 stars 111 forks source link

Why doesn't DigitalOut extend DigitalIn #86

Closed Play3r21 closed 6 years ago

Play3r21 commented 6 years ago

Why doesn't the interface DigitalOut extend DigitalIn the same way Register extends InputRegister within the procimg sub-directory?

steveohara commented 6 years ago

Historical reasons, long since forgotten I imagine - perhaps ask Dieter Wimberger :)

I always thought the semantics of Register extending InputRegister is confusing until you realise that Register means HoldingRegister and similar.