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.ic.impl;
16:
17: import cz.cvut.kbss.jopa.ic.api.ParticipationConstraint;
18: import org.semanticweb.owlapi.model.OWLClass;
19: import org.semanticweb.owlapi.model.OWLObject;
20: import org.semanticweb.owlapi.model.OWLProperty;
21:
22: abstract class AbstractParticipationConstraintImpl<P extends OWLProperty, O extends OWLObject>
23: implements ParticipationConstraint<P, O> {
24:
25: private OWLClass subject;
26:
27: private P predicate;
28:
29: private O object;
30:
31: private int min;
32:
33: private int max;
34:
35: public AbstractParticipationConstraintImpl(final OWLClass subject,
36: final P predicate, final O object, final int min, final int max) {
37: this.subject = subject;
38: this.predicate = predicate;
39: this.object = object;
40: this.min = min;
41: this.max = max;
42: }
43:
44: @Override
45: public O getObject() {
46: return object;
47: }
48:
49: @Override
50: public P getPredicate() {
51: return predicate;
52: }
53:
54: @Override
55: public OWLClass getSubject() {
56: return subject;
57: }
58:
59: @Override
60: public int getMin() {
61: return min;
62: }
63:
64: @Override
65: public int getMax() {
66: return max;
67: }
68: }