Quote:
Originally Posted by Joe Ross
3) make a solenoid interface for extend/retract, and have the subsystem implement the interface. Then you could pass the subsystem to a generic command. However, you would be limited to a single solenoid per subsystem.
|
Build an interface that requires extend() and retract() methods, have the subsystem use it, then do whatever you need in the implementation of those methods