19package denoptim.graph;
23import denoptim.graph.Vertex.BBType;
24import denoptim.graph.Vertex.VertexType;
60 private List<AttachmentPointQuery>
apQueries =
null;
103 Integer bbID, Integer
level,
108 this.vertexType = vType;
109 this.buildingBlockType = bbType;
110 this.buildingBlockId = bbID;
113 this.incomingEdgeQuery = eIn;
114 this.outgoingEdgeQuery = eOut;
154 if (vertexLevel !=
level)
166 if (apQuery.matches(ap))
An attachment point (AP) is a possibility to attach a Vertex onto the vertex holding the AP (i....
Query for searching AttachmentPoints.
Container for the list of vertices and the edges that connect them.
List< Edge > getEdgesWithTrg(Vertex v)
Returns the list of edges that arrive from the given vertex, i.e., edges where the trgAP is owned by ...
int getLevel(Vertex v)
Calculates the level of a vertex in this graph.
List< Edge > getEdgesWithSrc(Vertex v)
Returns the list of edges that depart from the given vertex, i.e., edges where the srcAP is owned by ...
This class represents the edge between two vertices.
A query for edges: a list of properties that target edges should possess in order to match this query...
boolean matches(Edge e)
Tests whether the given edge satisfies this query.
A vertex is a data structure that has an identity and holds a list of AttachmentPoints.
int getBuildingBlockId()
Returns the index of the building block that should correspond to the position of the building block ...
Vertex.BBType getBuildingBlockType()
VertexType getVertexType()
Returns the value of the vertex type.
DGraph getGraphOwner()
Returns the graph this vertex belongs to or null.
abstract List< AttachmentPoint > getAttachmentPoints()
Query for searching vertices.
VertexQuery()
Constructor from empty queries.
VertexType vertexType
Query on type of vertex.
Long vertexId
Query on unique identifier or null.
Integer level
Query about the level of the vertex.
BBType buildingBlockType
Query on building block type or null.
EdgeQuery outgoingEdgeQuery
Query on the vertex' out coming connections (i.e., vertex id the source)
List< AttachmentPointQuery > apQueries
List of attachment point queries on the vertex.
Integer buildingBlockId
Query on building block in the library of building blocks, or null.
EdgeQuery incomingEdgeQuery
Query on the vertex' incoming connections (i.e., vertex id the target)
boolean matches(Vertex v)
Tests whether the given vertex satisfies all non-null criteria in this query.
static boolean matchesAnyEdge(Vertex v, EdgeQuery edgeQuery, boolean incoming)
VertexQuery(Long vID, VertexType vType, BBType bbType, Integer bbID, Integer level, List< AttachmentPointQuery > apQueries, EdgeQuery eIn, EdgeQuery eOut)
Constructor from vertex and edge queries.
The type of building block.
Flag declaring the type of Vertex implementation.