$darkmode
DENOPTIM
denoptim.utils.GraphEdit Class Reference

Definition of a graph editing task. More...

Collaboration diagram for denoptim.utils.GraphEdit:
[legend]

Classes

enum  EditTask
 Defined the kind of graph editing task. More...
 

Public Member Functions

Integer getIncomingAPId ()
 
void setAP (int apId)
 
void setIncomingGraph (DGraph incomingGraph)
 
DGraph getIncomingGraph ()
 
 GraphEdit (EditTask task)
 
EditTask getType ()
 
VertexQuery getVertexQuery ()
 
void setVertexQuery (VertexQuery vertexQuery)
 
void setEdgeQuery (EdgeQuery edgeQuery)
 
EdgeQuery getEdgeQuery ()
 
int getIncomingBBId ()
 
BBType getIncomingBBType ()
 
LinkedHashMap< Integer, Integer > getAPMappig ()
 

Private Attributes

EditTask task = null
 Type of editing task. More...
 
VertexQuery vertexQuery = null
 Query identifying the vertex that is the center of our attention when performing the graph editing task. More...
 
EdgeQuery edgeQuery = null
 Query identifying the edge that is the center of our attention when performing the graph editing task. More...
 
DGraph incomingGraph = null
 The incoming graph for tasks that involve appending a subgraph onto another graph (when doing EditTask#REPLACECHILD). More...
 
Integer idAPOnIncomingGraph = null
 The identifier of the AttachmentPoint (AP) of the GraphEdit#incomingGraph when attaching such graph to the graph to edit. More...
 
int incomingBBId = -1
 Index of the building block to use as incoming vertex when performing EditTask#CHANGEVERTEX. More...
 
BBType incomingBBTyp
 The type of the building block to use as incoming vertex when performing EditTask#CHANGEVERTEX. More...
 
LinkedHashMap< Integer, Integer > incomingAPMap
 Mapping of AttachmentPoints between the current (first entry) and the incoming vertices (second entry) to be enforced when performing EditTask#CHANGEVERTEX. More...
 

Detailed Description

Definition of a graph editing task.

Author
Marco Foscato

Definition at line 37 of file GraphEdit.java.

Constructor & Destructor Documentation

◆ GraphEdit()

denoptim.utils.GraphEdit.GraphEdit ( EditTask  task)

Definition at line 151 of file GraphEdit.java.

References denoptim.utils.GraphEdit.task.

Member Function Documentation

◆ getAPMappig()

LinkedHashMap< Integer, Integer > denoptim.utils.GraphEdit.getAPMappig ( )

Definition at line 207 of file GraphEdit.java.

References denoptim.utils.GraphEdit.incomingAPMap.

◆ getEdgeQuery()

EdgeQuery denoptim.utils.GraphEdit.getEdgeQuery ( )

Definition at line 186 of file GraphEdit.java.

References denoptim.utils.GraphEdit.edgeQuery.

◆ getIncomingAPId()

Integer denoptim.utils.GraphEdit.getIncomingAPId ( )

Definition at line 123 of file GraphEdit.java.

References denoptim.utils.GraphEdit.idAPOnIncomingGraph.

◆ getIncomingBBId()

int denoptim.utils.GraphEdit.getIncomingBBId ( )

Definition at line 193 of file GraphEdit.java.

References denoptim.utils.GraphEdit.incomingBBId.

◆ getIncomingBBType()

BBType denoptim.utils.GraphEdit.getIncomingBBType ( )

Definition at line 200 of file GraphEdit.java.

References denoptim.utils.GraphEdit.incomingBBTyp.

◆ getIncomingGraph()

DGraph denoptim.utils.GraphEdit.getIncomingGraph ( )

Definition at line 144 of file GraphEdit.java.

References denoptim.utils.GraphEdit.incomingGraph.

◆ getType()

EditTask denoptim.utils.GraphEdit.getType ( )

Definition at line 158 of file GraphEdit.java.

References denoptim.utils.GraphEdit.task.

Referenced by denoptim.graph.DGraph.editGraph().

Here is the caller graph for this function:

◆ getVertexQuery()

VertexQuery denoptim.utils.GraphEdit.getVertexQuery ( )

Definition at line 165 of file GraphEdit.java.

References denoptim.utils.GraphEdit.vertexQuery.

◆ setAP()

void denoptim.utils.GraphEdit.setAP ( int  apId)

Definition at line 130 of file GraphEdit.java.

◆ setEdgeQuery()

void denoptim.utils.GraphEdit.setEdgeQuery ( EdgeQuery  edgeQuery)

Definition at line 179 of file GraphEdit.java.

References denoptim.utils.GraphEdit.edgeQuery.

◆ setIncomingGraph()

void denoptim.utils.GraphEdit.setIncomingGraph ( DGraph  incomingGraph)

Definition at line 137 of file GraphEdit.java.

References denoptim.utils.GraphEdit.incomingGraph.

◆ setVertexQuery()

void denoptim.utils.GraphEdit.setVertexQuery ( VertexQuery  vertexQuery)

Definition at line 172 of file GraphEdit.java.

References denoptim.utils.GraphEdit.vertexQuery.

Member Data Documentation

◆ edgeQuery

EdgeQuery denoptim.utils.GraphEdit.edgeQuery = null
private

Query identifying the edge that is the center of our attention when performing the graph editing task.

Definition at line 58 of file GraphEdit.java.

Referenced by denoptim.utils.GraphEdit.getEdgeQuery(), and denoptim.utils.GraphEdit.setEdgeQuery().

◆ idAPOnIncomingGraph

Integer denoptim.utils.GraphEdit.idAPOnIncomingGraph = null
private

The identifier of the AttachmentPoint (AP) of the GraphEdit#incomingGraph when attaching such graph to the graph to edit.

NB: this is the unique identifier, not any index on a list.

Definition at line 72 of file GraphEdit.java.

Referenced by denoptim.utils.GraphEdit.getIncomingAPId().

◆ incomingAPMap

LinkedHashMap<Integer, Integer> denoptim.utils.GraphEdit.incomingAPMap
private

Mapping of AttachmentPoints between the current (first entry) and the incoming vertices (second entry) to be enforced when performing EditTask#CHANGEVERTEX.

Values are indexes of APs in the respective AP lists.

Definition at line 96 of file GraphEdit.java.

Referenced by denoptim.utils.GraphEdit.getAPMappig().

◆ incomingBBId

int denoptim.utils.GraphEdit.incomingBBId = -1
private

Index of the building block to use as incoming vertex when performing EditTask#CHANGEVERTEX.

The index refers to the position of the building blocks in a FragmentSpace that is expected to be unambiguously identifiable (there should be only one available).

Definition at line 80 of file GraphEdit.java.

Referenced by denoptim.utils.GraphEdit.getIncomingBBId().

◆ incomingBBTyp

BBType denoptim.utils.GraphEdit.incomingBBTyp
private

The type of the building block to use as incoming vertex when performing EditTask#CHANGEVERTEX.

The building blocks in expected to be part of a FragmentSpace that is expected to be unambiguously identifiable (there should be only one available).

Definition at line 88 of file GraphEdit.java.

Referenced by denoptim.utils.GraphEdit.getIncomingBBType().

◆ incomingGraph

DGraph denoptim.utils.GraphEdit.incomingGraph = null
private

The incoming graph for tasks that involve appending a subgraph onto another graph (when doing EditTask#REPLACECHILD).

Definition at line 64 of file GraphEdit.java.

Referenced by denoptim.utils.GraphEdit.getIncomingGraph(), and denoptim.utils.GraphEdit.setIncomingGraph().

◆ task

EditTask denoptim.utils.GraphEdit.task = null
private

Type of editing task.

Definition at line 42 of file GraphEdit.java.

Referenced by denoptim.utils.GraphEdit.getType(), and denoptim.utils.GraphEdit.GraphEdit().

◆ vertexQuery

VertexQuery denoptim.utils.GraphEdit.vertexQuery = null
private

Query identifying the vertex that is the center of our attention when performing the graph editing task.

Depending on the type of task the vertex it may or may not be altered. For example, if the task is EditTask#DELETEVERTEX, then the vertex in focus is the vertex that will be deleted.

Definition at line 52 of file GraphEdit.java.

Referenced by denoptim.utils.GraphEdit.getVertexQuery(), and denoptim.utils.GraphEdit.setVertexQuery().


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