$darkmode
DENOPTIM
|
ClosableChain represents a chain of fragments (chain links) that is closable (or candidate closable). More...
Public Member Functions | |
ClosableChain () | |
Constructs an empty ClosableChain. More... | |
ClosableChain (String str) | |
Constructs a ClosableChain from the string representation. More... | |
void | appendLink (ChainLink l) |
Append a link to this chain. More... | |
void | setTurningPoint (int tp) |
Defined the turning point in the list of links. More... | |
ArrayList< ChainLink > | getLinks () |
Get the list of ChainLink s. More... | |
ChainLink | getLink (int i) |
Get a specific ChainLink More... | |
int | getSize () |
Get length of chain. More... | |
int | getTurningPointIdx () |
Get the vertex ID of the turning point.Note that since the chain is a path in a graph the relative direction of the edges spanned can display an inversion point (i.e., the turning point). More... | |
int | involvesVertex (Vertex vert) |
Check whether a given vertex is involved in this chain. More... | |
int | involvesVertexAndAP (Vertex vert, int apIDA, int apIDB) |
Check whether a combination of vertex and attachment points ID is involved in this chain. More... | |
ClosableChain | clone () |
Returns a deep-copy. More... | |
String | toString () |
Private Attributes | |
ArrayList< ChainLink > | links |
List of ChainLink s in this chain. More... | |
int | tuningPoint |
The position of the scaffold vertex: turning point for the direction of the chain. More... | |
ClosableChain represents a chain of fragments (chain links) that is closable (or candidate closable).
Definition at line 34 of file ClosableChain.java.
denoptim.graph.rings.ClosableChain.ClosableChain | ( | ) |
Constructs an empty ClosableChain.
Definition at line 53 of file ClosableChain.java.
Referenced by denoptim.graph.rings.ClosableChain.clone().
denoptim.graph.rings.ClosableChain.ClosableChain | ( | String | str | ) |
Constructs a ClosableChain from the string representation.
Definition at line 64 of file ClosableChain.java.
References denoptim.graph.rings.ClosableChain.links, denoptim.graph.Vertex.BBType.parseInt(), and denoptim.graph.rings.ClosableChain.tuningPoint.
void denoptim.graph.rings.ClosableChain.appendLink | ( | ChainLink | l | ) |
Append a link to this chain.
link | the link to be appended |
Definition at line 92 of file ClosableChain.java.
References denoptim.graph.rings.ClosableChain.links.
Referenced by denoptim.graph.rings.ClosableChain.clone().
ClosableChain denoptim.graph.rings.ClosableChain.clone | ( | ) |
Returns a deep-copy.
Definition at line 232 of file ClosableChain.java.
References denoptim.graph.rings.ClosableChain.appendLink(), denoptim.graph.rings.ClosableChain.ClosableChain(), denoptim.graph.rings.ClosableChain.links, denoptim.graph.rings.ClosableChain.setTurningPoint(), and denoptim.graph.rings.ClosableChain.tuningPoint.
ChainLink denoptim.graph.rings.ClosableChain.getLink | ( | int | i | ) |
Get a specific ChainLink
i | the index of the ChainLink in the list |
ChainLink
in the given position of the chain Definition at line 127 of file ClosableChain.java.
References denoptim.graph.rings.ClosableChain.links.
Referenced by denoptim.graph.rings.ClosableChain.getTurningPointIdx().
ArrayList< ChainLink > denoptim.graph.rings.ClosableChain.getLinks | ( | ) |
Get the list of ChainLink
s.
Definition at line 114 of file ClosableChain.java.
References denoptim.graph.rings.ClosableChain.links.
int denoptim.graph.rings.ClosableChain.getSize | ( | ) |
Get length of chain.
ChainLink
s Definition at line 139 of file ClosableChain.java.
References denoptim.graph.rings.ClosableChain.links.
int denoptim.graph.rings.ClosableChain.getTurningPointIdx | ( | ) |
Get the vertex ID of the turning point.Note that since the chain is a path in a graph the relative direction of the edges spanned can display an inversion point (i.e., the turning point).
DENOPTIMVertex
corresponding to the turning point. Definition at line 154 of file ClosableChain.java.
References denoptim.graph.rings.ChainLink.getIdx(), denoptim.graph.rings.ClosableChain.getLink(), and denoptim.graph.rings.ClosableChain.tuningPoint.
Referenced by denoptim.graph.rings.RingClosuresArchive.addRecord().
int denoptim.graph.rings.ClosableChain.involvesVertex | ( | Vertex | vert | ) |
Check whether a given vertex is involved in this chain.
vert | the candidate vertex |
Definition at line 168 of file ClosableChain.java.
References denoptim.graph.rings.ChainLink.getFragType(), denoptim.graph.rings.ChainLink.getIdx(), and denoptim.graph.rings.ClosableChain.links.
int denoptim.graph.rings.ClosableChain.involvesVertexAndAP | ( | Vertex | vert, |
int | apIDA, | ||
int | apIDB | ||
) |
Check whether a combination of vertex and attachment points ID is involved in this chain.
vert | the candidate vertex |
apIDA | the index of the DENOPTIMAttachmentPoint on the left/rigth hand side of the vertex |
apIDB | the index of the DENOPTIMAttachmentPoint on the right/left hand side of the vertex |
Definition at line 203 of file ClosableChain.java.
References denoptim.graph.rings.ChainLink.getApIdToLeft(), denoptim.graph.rings.ChainLink.getApIdToRight(), denoptim.graph.rings.ChainLink.getFragType(), denoptim.graph.rings.ChainLink.getIdx(), and denoptim.graph.rings.ClosableChain.links.
void denoptim.graph.rings.ClosableChain.setTurningPoint | ( | int | tp | ) |
Defined the turning point in the list of links.
tp | the index of the turning point |
Definition at line 103 of file ClosableChain.java.
Referenced by denoptim.graph.rings.ClosableChain.clone().
String denoptim.graph.rings.ClosableChain.toString | ( | ) |
Definition at line 249 of file ClosableChain.java.
References denoptim.graph.rings.ClosableChain.links.
|
private |
List of ChainLink
s in this chain.
Definition at line 39 of file ClosableChain.java.
Referenced by denoptim.graph.rings.ClosableChain.appendLink(), denoptim.graph.rings.ClosableChain.clone(), denoptim.graph.rings.ClosableChain.ClosableChain(), denoptim.graph.rings.ClosableChain.getLink(), denoptim.graph.rings.ClosableChain.getLinks(), denoptim.graph.rings.ClosableChain.getSize(), denoptim.graph.rings.ClosableChain.involvesVertex(), denoptim.graph.rings.ClosableChain.involvesVertexAndAP(), and denoptim.graph.rings.ClosableChain.toString().
|
private |
The position of the scaffold vertex: turning point for the direction of the chain.
Definition at line 45 of file ClosableChain.java.
Referenced by denoptim.graph.rings.ClosableChain.clone(), denoptim.graph.rings.ClosableChain.ClosableChain(), and denoptim.graph.rings.ClosableChain.getTurningPointIdx().