diff options
author | callison-burch <callison-burch@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-17 00:26:15 +0400 |
---|---|---|
committer | callison-burch <callison-burch@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-17 00:26:15 +0400 |
commit | bab63339f12cc52e64264a31db0a62ec6614b5d0 (patch) | |
tree | 0850c98f37de5ffffe8ecd657c396b9512f8191f /hypergraph-prototype | |
parent | 83300050f73d2a7e6cf9200593e2015ceb87b5a3 (diff) |
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1767 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'hypergraph-prototype')
-rw-r--r-- | hypergraph-prototype/attempt1/org/statmt/hg4/Coverage.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hypergraph-prototype/attempt1/org/statmt/hg4/Coverage.java b/hypergraph-prototype/attempt1/org/statmt/hg4/Coverage.java index 65536a34b..79d3060c1 100644 --- a/hypergraph-prototype/attempt1/org/statmt/hg4/Coverage.java +++ b/hypergraph-prototype/attempt1/org/statmt/hg4/Coverage.java @@ -48,6 +48,10 @@ public class Coverage implements Comparable { return !this.coverage.intersects(other.coverage); } + public boolean isAllCovered() { + return coverage.cardinality() == coverage.size(); + } + public int compareTo(Object o) { Coverage other = (Coverage) o; return other.coverage.cardinality() - this.coverage.cardinality(); |