Class RangeRecordFilter

java.lang.Object
ca.phon.session.filter.AbstractRecordFilter
ca.phon.session.filter.RangeRecordFilter
All Implemented Interfaces:
RecordFilter

public class RangeRecordFilter extends AbstractRecordFilter
Filters utterances based on their position in the list. Ranges can be given in string format separated by ',': Ex: 1..2, 4, 8...10 Will return utterances 1,2,4,8,9
  • Constructor Details

  • Method Details

    • setSession

      public void setSession(Session s)
    • getSession

      public Session getSession()
    • addRange

      public void addRange(Range r)
    • addRange

      public void addRange(String rStr) throws ParseException
      Throws:
      ParseException
    • getRanges

      public List<Range> getRanges()
    • setRanges

      public void setRanges(List<Range> ranges)
    • checkRecord

      public boolean checkRecord(Record utt)
      Description copied from interface: RecordFilter
      Does the given utterance match our pattern?
      Returns:
      boolean