Package: AbstractParticipationConstraintImpl
AbstractParticipationConstraintImpl
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AbstractParticipationConstraintImpl(OWLClass, OWLProperty, OWLObject, int, int) |
|
|
|
|
|
||||||||||||||||||||
getMax() |
|
|
|
|
|
||||||||||||||||||||
getMin() |
|
|
|
|
|
||||||||||||||||||||
getObject() |
|
|
|
|
|
||||||||||||||||||||
getPredicate() |
|
|
|
|
|
||||||||||||||||||||
getSubject() |
|
|
|
|
|
Coverage
1: /**
2: * Copyright (C) 2016 Czech Technical University in Prague
3: *
4: * This program is free software: you can redistribute it and/or modify it under
5: * the terms of the GNU General Public License as published by the Free Software
6: * Foundation, either version 3 of the License, or (at your option) any
7: * later version.
8: *
9: * This program is distributed in the hope that it will be useful, but WITHOUT
10: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12: * details. You should have received a copy of the GNU General Public License
13: * along with this program. If not, see <http://www.gnu.org/licenses/>.
14: */
15: package cz.cvut.kbss.jopa.model.ic;
16:
17: import org.semanticweb.owlapi.model.OWLClass;
18: import org.semanticweb.owlapi.model.OWLObject;
19: import org.semanticweb.owlapi.model.OWLProperty;
20:
21: abstract class AbstractParticipationConstraintImpl<P extends OWLProperty<?, ?>, O extends OWLObject>
22: implements ParticipationConstraint<P, O> {
23:
24: private OWLClass subject;
25:
26: private P predicate;
27:
28: private O object;
29:
30: private int min;
31:
32: private int max;
33:
34: public AbstractParticipationConstraintImpl(final OWLClass subject,
35: final P predicate, final O object, final int min, final int max) {
36: this.subject = subject;
37: this.predicate = predicate;
38: this.object = object;
39: this.min = min;
40: this.max = max;
41: }
42:
43: @Override
44: public O getObject() {
45: return object;
46: }
47:
48: @Override
49: public P getPredicate() {
50: return predicate;
51: }
52:
53: @Override
54: public OWLClass getSubject() {
55: return subject;
56: }
57:
58: @Override
59: public int getMin() {
60: return min;
61: }
62:
63: @Override
64: public int getMax() {
65: return max;
66: }
67: }