Open
Graph Drawing
Framework

 v.2012.07
 

ogdf::Module Class Reference

Base class for modules. More...

#include <ogdf/basic/Module.h>

+ Inheritance diagram for ogdf::Module:

List of all members.

Public Types

enum  ReturnType { retFeasible, retOptimal, retNoFeasibleSolution, retTimeoutFeasible, retTimeoutInfeasible, retError }
 The return type of a module. More...

Public Member Functions

 Module ()
 Initializes a module.
virtual ~Module ()

Static Public Member Functions

static bool isSolution (ReturnType ret)
 Returns true iff retVal indicates that the module returned a feasible solution.

Detailed Description

Base class for modules.

A module represents an algorithm that implements a certain interface. There are various specific module types present in the OGDF, which all inherit Module as a base class. These module types define the interface implemented by the module.

See also:
ModuleOption

Definition at line 67 of file Module.h.


Member Enumeration Documentation

The return type of a module.

Enumerator:
retFeasible 

The solution is feasible.

retOptimal 

The solution is optimal.

retNoFeasibleSolution 

There exists no feasible solution.

retTimeoutFeasible 

The solution is feasible, but there was a timeout.

retTimeoutInfeasible 

The solution is not feasible due to a timeout.

retError 

Computation was aborted due to an error.

Definition at line 71 of file Module.h.


Constructor & Destructor Documentation

ogdf::Module::Module ( )
inline

Initializes a module.

Definition at line 81 of file Module.h.

virtual ogdf::Module::~Module ( )
inlinevirtual

Definition at line 83 of file Module.h.


Member Function Documentation

static bool ogdf::Module::isSolution ( ReturnType  ret)
inlinestatic

Returns true iff retVal indicates that the module returned a feasible solution.

Definition at line 86 of file Module.h.


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