01: /*
02: * ====================================================================
03: * Copyright (c) 2004 Marc Strapetz, marc.strapetz@smartsvn.com.
04: * All rights reserved.
05: *
06: * This software is licensed as described in the file COPYING, which
07: * you should have received as part of this distribution. Use is
08: * subject to license terms.
09: * ====================================================================
10: */
11:
12: package de.regnis.q.sequence.media;
13:
14: /**
15: * @author Marc Strapetz
16: */
17: public class QSequenceDiscardingMediaNoConfusionDectector implements
18: QSequenceDiscardingMediaConfusionDetector {
19:
20: // Fields =================================================================
21:
22: private final boolean discardAbsolutes;
23:
24: // Setup ==================================================================
25:
26: public QSequenceDiscardingMediaNoConfusionDectector(
27: boolean discardAbsolutes) {
28: this .discardAbsolutes = discardAbsolutes;
29: }
30:
31: // Implemented ============================================================
32:
33: public void init(int symbolCount) {
34: }
35:
36: public boolean isAbsolute(int occurences) {
37: return discardAbsolutes && occurences == 0;
38: }
39:
40: public boolean isProvisional(int occurences) {
41: return false;
42: }
43: }
|