$darkmode
DENOPTIM
denoptim.graph.EdgeQuery Class Reference

A query for edges: a list of properties that target edges should possess in order to match this query. More...

Collaboration diagram for denoptim.graph.EdgeQuery:
[legend]

Public Member Functions

 EdgeQuery ()
 Constructor from empty queries. More...
 
 EdgeQuery (VertexQuery srcVertexQuery, VertexQuery trgVertexQuery, AttachmentPointQuery srcAPQuery, AttachmentPointQuery trgAPQuery, BondType bondType)
 Constructor from nested vertex and attachment point queries. More...
 
boolean matches (Edge e)
 Tests whether the given edge satisfies this query. More...
 

Private Attributes

VertexQuery srcVertexQuery = null
 Query for src vertex. More...
 
VertexQuery trgVertexQuery = null
 Query for trg vertex. More...
 
AttachmentPointQuery srcAPQuery = null
 Query for src AP. More...
 
AttachmentPointQuery trgAPQuery = null
 Query for trg AP. More...
 
BondType bondType = null
 The bond type associated with the connection between the fragments. More...
 

Detailed Description

A query for edges: a list of properties that target edges should possess in order to match this query.

Definition at line 27 of file EdgeQuery.java.

Constructor & Destructor Documentation

◆ EdgeQuery() [1/2]

denoptim.graph.EdgeQuery.EdgeQuery ( )

Constructor from empty queries.

Definition at line 60 of file EdgeQuery.java.

◆ EdgeQuery() [2/2]

denoptim.graph.EdgeQuery.EdgeQuery ( VertexQuery  srcVertexQuery,
VertexQuery  trgVertexQuery,
AttachmentPointQuery  srcAPQuery,
AttachmentPointQuery  trgAPQuery,
BondType  bondType 
)

Constructor from nested vertex and attachment point queries.

Parameters
srcVertexQueryquery for the source vertex, or null
trgVertexQueryquery for the target vertex, or null
srcAPQueryquery for the source attachment point, or null
trgAPQueryquery for the target attachment point, or null
bondTypequery for the bond type, or null

Definition at line 79 of file EdgeQuery.java.

References denoptim.graph.EdgeQuery.bondType, denoptim.graph.EdgeQuery.srcAPQuery, denoptim.graph.EdgeQuery.srcVertexQuery, denoptim.graph.EdgeQuery.trgAPQuery, and denoptim.graph.EdgeQuery.trgVertexQuery.

Member Function Documentation

◆ matches()

boolean denoptim.graph.EdgeQuery.matches ( Edge  e)

Tests whether the given edge satisfies this query.

Parameters
ethe edge to test
Returns
true if the edge matches, false otherwise

Definition at line 97 of file EdgeQuery.java.

References denoptim.graph.EdgeQuery.bondType, denoptim.graph.Edge.getBondType(), denoptim.graph.AttachmentPoint.getOwner(), denoptim.graph.Edge.getSrcAP(), denoptim.graph.Edge.getTrgAP(), denoptim.graph.AttachmentPointQuery.matches(), denoptim.graph.VertexQuery.matches(), denoptim.graph.EdgeQuery.srcAPQuery, denoptim.graph.EdgeQuery.srcVertexQuery, denoptim.graph.EdgeQuery.trgAPQuery, and denoptim.graph.EdgeQuery.trgVertexQuery.

Referenced by denoptim.graph.DGraph.findEdges(), denoptim.graph.AttachmentPointQuery.matches(), denoptim.graph.VertexQuery.matchesAnyEdge(), denoptim.graph.EdgeQueryTest.testFindEdgesUsesMatches(), denoptim.graph.EdgeQueryTest.testMatchesAllNullCriteria(), denoptim.graph.EdgeQueryTest.testMatchesAPClasses(), denoptim.graph.EdgeQueryTest.testMatchesAttachmentPointIndices(), denoptim.graph.EdgeQueryTest.testMatchesBondType(), denoptim.graph.EdgeQueryTest.testMatchesCombinedCriteria(), denoptim.graph.AttachmentPointQueryTest.testMatchesNestedEdgeQuery(), denoptim.graph.EdgeQueryTest.testMatchesNestedQueries(), denoptim.graph.EdgeQueryTest.testMatchesNullEdge(), and denoptim.graph.EdgeQueryTest.testMatchesSourceAndTargetVertices().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ bondType

BondType denoptim.graph.EdgeQuery.bondType = null
private

The bond type associated with the connection between the fragments.

Definition at line 52 of file EdgeQuery.java.

Referenced by denoptim.graph.EdgeQuery.EdgeQuery(), and denoptim.graph.EdgeQuery.matches().

◆ srcAPQuery

AttachmentPointQuery denoptim.graph.EdgeQuery.srcAPQuery = null
private

Query for src AP.

Definition at line 42 of file EdgeQuery.java.

Referenced by denoptim.graph.EdgeQuery.EdgeQuery(), and denoptim.graph.EdgeQuery.matches().

◆ srcVertexQuery

VertexQuery denoptim.graph.EdgeQuery.srcVertexQuery = null
private

Query for src vertex.

Definition at line 32 of file EdgeQuery.java.

Referenced by denoptim.graph.EdgeQuery.EdgeQuery(), and denoptim.graph.EdgeQuery.matches().

◆ trgAPQuery

AttachmentPointQuery denoptim.graph.EdgeQuery.trgAPQuery = null
private

Query for trg AP.

Definition at line 47 of file EdgeQuery.java.

Referenced by denoptim.graph.EdgeQuery.EdgeQuery(), and denoptim.graph.EdgeQuery.matches().

◆ trgVertexQuery

VertexQuery denoptim.graph.EdgeQuery.trgVertexQuery = null
private

Query for trg vertex.

Definition at line 37 of file EdgeQuery.java.

Referenced by denoptim.graph.EdgeQuery.EdgeQuery(), and denoptim.graph.EdgeQuery.matches().


The documentation for this class was generated from the following file: