$darkmode
DENOPTIM
EdgeQuery.java
Go to the documentation of this file.
1/*
2 * DENOPTIM
3 * Copyright (C) 2019 Vishwesh Venkatraman <vishwesh.venkatraman@ntnu.no>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Affero General Public License as published
7 * by the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Affero General Public License for more details.
14 *
15 * You should have received a copy of the GNU Affero General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19package denoptim.graph;
20
21import denoptim.graph.Edge.BondType;
22
27public class EdgeQuery
28{
29
33 private Long srcVertexId = null;
34
38 private Long trgVertexId = null;
39
44 private Integer srcAPID = null;
45
50 private Integer trgAPID = null;
51
55 private BondType bondType = null;
56
60 private APClass srcAPC = null;
61
65 private APClass trgAPC = null;
66
67//------------------------------------------------------------------------------
68
83 public EdgeQuery(Long srcVertexId, Long trgVertexId,
84 Integer srcAPID, Integer trgAPID,
86 {
87 this.srcVertexId = srcVertexId;
88 this.trgVertexId = trgVertexId;
89 this.srcAPID = srcAPID;
90 this.trgAPID = trgAPID;
91 this.bondType = bt;
92 this.srcAPC = srcAPC;
93 this.trgAPC = trgAPC;
94 }
95
96//------------------------------------------------------------------------------
97
98 public Long getSourceVertexId()
99 {
100 return srcVertexId;
101 }
102
103//------------------------------------------------------------------------------
104
105 public Integer getSourceAPIdx()
106 {
107 return srcAPID;
108 }
109
110//------------------------------------------------------------------------------
111
112 public Integer getTargetAPIdx()
113 {
114 return trgAPID;
115 }
116
117//------------------------------------------------------------------------------
118
119 public Long getTargetVertexId()
120 {
121 return trgVertexId;
122 }
123
124//------------------------------------------------------------------------------
125
127 {
128 return srcAPC;
129 }
130
131//------------------------------------------------------------------------------
132
134 {
135 return trgAPC;
136 }
137
138//------------------------------------------------------------------------------
139
141 {
142 return bondType;
143 }
144
145//------------------------------------------------------------------------------
146}
A query for edges: a list of properties that target edges should possess in order to match this query...
Definition: EdgeQuery.java:28
Long trgVertexId
the vertex id of the destination fragment
Definition: EdgeQuery.java:38
Integer srcAPID
The index of the attachment point in the list of DAPs associated with the source fragment.
Definition: EdgeQuery.java:44
Long srcVertexId
The vertex id of the source fragment.
Definition: EdgeQuery.java:33
EdgeQuery(Long srcVertexId, Long trgVertexId, Integer srcAPID, Integer trgAPID, BondType bt, APClass srcAPC, APClass trgAPC)
Constructor for an edge from all parameters.
Definition: EdgeQuery.java:83
Integer trgAPID
The index of the attachment point in the list of DAPs associated with the target fragment.
Definition: EdgeQuery.java:50
APClass srcAPC
The class associated with the source AP.
Definition: EdgeQuery.java:60
BondType bondType
The bond type associated with the connection between the fragments.
Definition: EdgeQuery.java:55
APClass trgAPC
The class associated with the target AP.
Definition: EdgeQuery.java:65
Possible chemical bond types an edge can represent.
Definition: Edge.java:303