$darkmode
DENOPTIM
denoptim.combinatorial.CheckPoint Class Reference

Object collecting information needed to restart a FragSpaceExplorer job. More...

Collaboration diagram for denoptim.combinatorial.CheckPoint:
[legend]

Public Member Functions

 CheckPoint ()
 
int getLevel ()
 
long getUnqVrtId ()
 
int getUnqGraphId ()
 
int getUnqMolId ()
 
ArrayList< Integer > getNextIds ()
 
int getLatestSafelyCompletedGraphId ()
 
int getRootId ()
 
boolean serFileAlreadyUsed (String filename)
 
void setNextIds (ArrayList< Integer > nextIds)
 Set the indexes that identify the combination of fragments next to the latest one that has been properly processed. More...
 
void setLevel (int level)
 Set the current level. More...
 
void setUnqVrtId (long l)
 Set the restart value for the unique vertex ID. More...
 
void setUnqGraphId (int val)
 Set the restart value for the unique graph ID. More...
 
void setUnqMolId (int val)
 Set the restart value for the unique molecule ID. More...
 
void setSafelyCompletedGraphId (int val)
 Set the graphId of the safely completed graph. More...
 
void setRootId (int val)
 Set the graph ID of the root graph used to build this task. More...
 
String toString ()
 

Protected Attributes

int level = -1
 Level. More...
 
long unqVrtId = -1L
 Unique vertex index. More...
 
int unqGraphId = -1
 Unique graph index. More...
 
int unqMolId = -1
 Unique molecule index. More...
 
int rootId = -1
 ID of the root graph used to build this graph. More...
 
int graphId = -1
 ID of safely completed graph. More...
 
ArrayList< Integer > nextIds
 Set of indexes for the next iteration in combination of building blocks. More...
 

Detailed Description

Object collecting information needed to restart a FragSpaceExplorer job.

The unique indexes are stored aiming to maintain the uniqueness property when restarting a job. Thus no vertex/graph/molecule will be found in the run generating a checkpoint with the ID stored in that checkpoint.
The checkpoint also stores the ID of the latest safely completed graph: a graph for which the corresponding task was completed when the checkpoint has been created, and of which all preceding tasks were also completed.

Author
Marco Foscato

Definition at line 39 of file CheckPoint.java.

Constructor & Destructor Documentation

◆ CheckPoint()

denoptim.combinatorial.CheckPoint.CheckPoint ( )

Definition at line 79 of file CheckPoint.java.

References denoptim.combinatorial.CheckPoint.nextIds.

Member Function Documentation

◆ getLatestSafelyCompletedGraphId()

int denoptim.combinatorial.CheckPoint.getLatestSafelyCompletedGraphId ( )

Definition at line 121 of file CheckPoint.java.

References denoptim.combinatorial.CheckPoint.graphId.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.run().

Here is the caller graph for this function:

◆ getLevel()

int denoptim.combinatorial.CheckPoint.getLevel ( )

Definition at line 86 of file CheckPoint.java.

References denoptim.combinatorial.CheckPoint.level.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.run().

Here is the caller graph for this function:

◆ getNextIds()

ArrayList< Integer > denoptim.combinatorial.CheckPoint.getNextIds ( )

Definition at line 114 of file CheckPoint.java.

References denoptim.combinatorial.CheckPoint.nextIds.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.exploreCombinationsAtGivenLevel().

Here is the caller graph for this function:

◆ getRootId()

int denoptim.combinatorial.CheckPoint.getRootId ( )

Definition at line 128 of file CheckPoint.java.

References denoptim.combinatorial.CheckPoint.rootId.

◆ getUnqGraphId()

int denoptim.combinatorial.CheckPoint.getUnqGraphId ( )

Definition at line 100 of file CheckPoint.java.

References denoptim.combinatorial.CheckPoint.unqGraphId.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.run().

Here is the caller graph for this function:

◆ getUnqMolId()

int denoptim.combinatorial.CheckPoint.getUnqMolId ( )

Definition at line 107 of file CheckPoint.java.

References denoptim.combinatorial.CheckPoint.unqMolId.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.run().

Here is the caller graph for this function:

◆ getUnqVrtId()

long denoptim.combinatorial.CheckPoint.getUnqVrtId ( )

Definition at line 93 of file CheckPoint.java.

References denoptim.combinatorial.CheckPoint.unqVrtId.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.run().

Here is the caller graph for this function:

◆ serFileAlreadyUsed()

boolean denoptim.combinatorial.CheckPoint.serFileAlreadyUsed ( String  filename)
Parameters
filethe name of the binary file containing a serialized DENOPTIMGraph.
Returns
true if the graph from the given file has been fully explored before.

Definition at line 142 of file CheckPoint.java.

References denoptim.combinatorial.CEBLUtils.getBaseNameOfStorageFile(), and denoptim.combinatorial.CheckPoint.rootId.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.exploreCombinationsAtGivenLevel().

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

◆ setLevel()

void denoptim.combinatorial.CheckPoint.setLevel ( int  level)

Set the current level.

Definition at line 172 of file CheckPoint.java.

References denoptim.combinatorial.CheckPoint.level.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.makeCheckPoint().

Here is the caller graph for this function:

◆ setNextIds()

void denoptim.combinatorial.CheckPoint.setNextIds ( ArrayList< Integer >  nextIds)

Set the indexes that identify the combination of fragments next to the latest one that has been properly processed.

Definition at line 161 of file CheckPoint.java.

References denoptim.combinatorial.CheckPoint.nextIds.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.makeCheckPoint().

Here is the caller graph for this function:

◆ setRootId()

void denoptim.combinatorial.CheckPoint.setRootId ( int  val)

Set the graph ID of the root graph used to build this task.

Definition at line 227 of file CheckPoint.java.

References denoptim.combinatorial.CheckPoint.rootId.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.makeCheckPoint().

Here is the caller graph for this function:

◆ setSafelyCompletedGraphId()

void denoptim.combinatorial.CheckPoint.setSafelyCompletedGraphId ( int  val)

Set the graphId of the safely completed graph.

Definition at line 216 of file CheckPoint.java.

References denoptim.combinatorial.CheckPoint.graphId.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.makeCheckPoint().

Here is the caller graph for this function:

◆ setUnqGraphId()

void denoptim.combinatorial.CheckPoint.setUnqGraphId ( int  val)

Set the restart value for the unique graph ID.

Definition at line 194 of file CheckPoint.java.

References denoptim.combinatorial.CheckPoint.unqGraphId.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.makeCheckPoint().

Here is the caller graph for this function:

◆ setUnqMolId()

void denoptim.combinatorial.CheckPoint.setUnqMolId ( int  val)

Set the restart value for the unique molecule ID.

Definition at line 205 of file CheckPoint.java.

References denoptim.combinatorial.CheckPoint.unqMolId.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.makeCheckPoint().

Here is the caller graph for this function:

◆ setUnqVrtId()

void denoptim.combinatorial.CheckPoint.setUnqVrtId ( long  l)

Set the restart value for the unique vertex ID.

Definition at line 183 of file CheckPoint.java.

References denoptim.combinatorial.CheckPoint.unqVrtId.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.makeCheckPoint().

Here is the caller graph for this function:

◆ toString()

Member Data Documentation

◆ graphId

int denoptim.combinatorial.CheckPoint.graphId = -1
protected

◆ level

int denoptim.combinatorial.CheckPoint.level = -1
protected

◆ nextIds

ArrayList<Integer> denoptim.combinatorial.CheckPoint.nextIds
protected

◆ rootId

int denoptim.combinatorial.CheckPoint.rootId = -1
protected

◆ unqGraphId

int denoptim.combinatorial.CheckPoint.unqGraphId = -1
protected

◆ unqMolId

int denoptim.combinatorial.CheckPoint.unqMolId = -1
protected

◆ unqVrtId

long denoptim.combinatorial.CheckPoint.unqVrtId = -1L
protected

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