/** * @param rangeType : the status of the position * @param start : the start of the position * @param end : the end of the position (equal to start if the range position is a single position and not an interval) * @param sequence : the sequence of the protein * @return true if the range positions and the position status are consistent */ public static boolean areRangePositionsAccordingToRangeTypeOk(CvFuzzyType rangeType, int start, int end, String sequence) { return (getRangePositionsAccordingToRangeTypeErrorMessage(rangeType, start, end, sequence) == null); }
/** * @param rangeType : the status of the position * @param start : the start of the position * @param end : the end of the position (equal to start if the range position is a single position and not an interval) * @param sequence : the sequence of the protein * @return true if the range positions and the position status are consistent */ public static boolean areRangePositionsAccordingToRangeTypeOk(CvFuzzyType rangeType, int start, int end, String sequence) { return (getRangePositionsAccordingToRangeTypeErrorMessage(rangeType, start, end, sequence) == null); }
final int toIntervalEnd = range.getToIntervalEnd(); String areRangePositionsAccordingToTypeOkStart = getRangePositionsAccordingToRangeTypeErrorMessage(startStatus, fromIntervalStart, fromIntervalEnd, sequence); String areRangePositionsAccordingToTypeOkEnd = getRangePositionsAccordingToRangeTypeErrorMessage(endStatus, toIntervalStart, toIntervalEnd, sequence);
final int toIntervalEnd = range.getToIntervalEnd(); String areRangePositionsAccordingToTypeOkStart = getRangePositionsAccordingToRangeTypeErrorMessage(startStatus, fromIntervalStart, fromIntervalEnd, sequence); String areRangePositionsAccordingToTypeOkEnd = getRangePositionsAccordingToRangeTypeErrorMessage(endStatus, toIntervalStart, toIntervalEnd, sequence);