java.lang.Object
org.mbari.vcr4j.rs422.RS422Error
- All Implemented Interfaces:
VideoError
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSONY - Checksum error in the command sentstatic final intSONY - VCR reports a serial framing errorstatic final intEverything is OKstatic final intstatic final intSONY - Overran the VCR's command bufferstatic final intSONY - Parity error on a command bytestatic final intSONY - VCR reports Timeout on recieving commandstatic final intSONY - Invalid command sent to VCR -
Constructor Summary
ConstructorsConstructorDescriptionRS422Error(int error) RS422Error(int error, String errorMsg, VideoCommand<?> videoCommand) RS422Error(int error, VideoCommand<?> videoCommand) RS422Error(String errorMsg) RS422Error(String errorMsg, VideoCommand<?> videoCommand) -
Method Summary
-
Field Details
-
OTHER_ERROR
public static final int OTHER_ERROR- See Also:
-
CHECKSUM_ERROR
public static final int CHECKSUM_ERRORSONY - Checksum error in the command sent- See Also:
-
FRAMING_ERROR
public static final int FRAMING_ERRORSONY - VCR reports a serial framing error- See Also:
-
OK
public static final int OKEverything is OK- See Also:
-
OVERRUN_ERROR
public static final int OVERRUN_ERRORSONY - Overran the VCR's command buffer- See Also:
-
PARITY_ERROR
public static final int PARITY_ERRORSONY - Parity error on a command byte- See Also:
-
TIMEOUT
public static final int TIMEOUTSONY - VCR reports Timeout on recieving command- See Also:
-
UNDEFINED_COMMAND
public static final int UNDEFINED_COMMANDSONY - Invalid command sent to VCR- See Also:
-
-
Constructor Details
-
RS422Error
public RS422Error(int error) -
RS422Error
-
RS422Error
-
RS422Error
-
RS422Error
-
-
Method Details
-
isChecksumError
public boolean isChecksumError() -
getError
public int getError()Although this is a potentially useful method. Most programs will be getter served by the getErrorMsg() or toString() methods.- Returns:
- the integer error code
-
hasError
public boolean hasError()- Specified by:
hasErrorin interfaceVideoError- Returns:
- true if an error condition occurred in response to a command
-
isFramingError
public boolean isFramingError() -
isOK
public boolean isOK() -
isOverrunError
public boolean isOverrunError() -
isParityError
public boolean isParityError() -
isTimeout
public boolean isTimeout() -
isUndefinedCommand
public boolean isUndefinedCommand() -
getVideoCommand
- Specified by:
getVideoCommandin interfaceVideoError- Returns:
- The command that triggered the error
-
getMessage
-
equals
RS422Error objects are equal if they have the same error code -
hashCode
public int hashCode()
-