Module vcr4j.rs422

Class RS422StatusDecorator

java.lang.Object
org.mbari.vcr4j.rs422.decorators.RS422StatusDecorator
All Implemented Interfaces:
Decorator

public class RS422StatusDecorator extends Object implements Decorator
The VideoIO simply executes the commands send. For many applications, the desired behavior is to send a command to the VCR followed by a requestStatus. This class adds state requests to the command observable for requests that need it. Typical usage:
     VideoIO io = new RXTXVideoIO("COM 1");
     RS422StatusDecorator decorator = new RS422StatusDecorator(io.getCommandSubject());
     // That's it! Some commands will automatically trigger a status request.
     io.send(VideoCommands.STOP);

 
Since:
2016-01-29T09:55:00
Author:
Brian Schlining
  • Constructor Details

    • RS422StatusDecorator

      public RS422StatusDecorator(VCRVideoIO io)
  • Method Details