MineLink
 All Data Structures Functions Variables Pages
delphos::NestedPitSolver Class Reference

A dummy class that specifies the methods of an algorithm that can solve a nested pit instance. More...

#include <nestedpit.h>

Inheritance diagram for delphos::NestedPitSolver:
Inheritance graph
Collaboration diagram for delphos::NestedPitSolver:
Collaboration graph

Public Member Functions

virtual ~NestedPitSolver ()
 The destructor.
 
 NestedPitSolver (NestedPitInstance &np)
 Creates a new nested Pit Solver based on an instance of the nested Pit Problem. More...
 
virtual bool Run ()
 Calculates the final pit. Returns true on success. More...
 
const NestedPitInstanceGetInstance () const
 Retrieves the instance being solved.
 
delphos::NestedPitInstanceGetInstancePtr () const
 Return a pointer to the instance being solved.
 
void SetInstance (delphos::NestedPitInstance &npi)
 Set the instance to be solved.
 
virtual const bool IsSolved () const
 Checks if the solver was already run or not. More...
 
virtual delphos::NestedPitsGetNestedPits ()
 Returns the nested pits. More...
 
void SetCallBack (delphos::CallBackPtr fp)
 Set the user run step callback.
 
delphos::CallBackPtr GetCallBack ()
 Returns the user run step callback.
 
- Public Member Functions inherited from delphos::BlockModelEntity
 BlockModelEntity (delphos::BlockModel &bm)
 Creates a new block instance associated to a given block model. More...
 
delphos::BlockModelGetBlockModel ()
 Retrieves the block model to which the entity is associated. More...
 
const delphos::BlockModelGetBlockModel () const
 Retrieves the block model to which the entity is associated. More...
 

Detailed Description

A dummy class that specifies the methods of an algorithm that can solve a nested pit instance.

Constructor & Destructor Documentation

delphos::NestedPitSolver::NestedPitSolver ( NestedPitInstance np)

Creates a new nested Pit Solver based on an instance of the nested Pit Problem.

Parameters
npThe nested pit instance.

Member Function Documentation

delphos::NestedPits * delphos::NestedPitSolver::GetNestedPits ( )
virtual

Returns the nested pits.

This implementation is a dummy version that always returns an empty struct.

Reimplemented in delphos::PseudoFlowNestedPitSolver.

const bool delphos::NestedPitSolver::IsSolved ( ) const
virtual

Checks if the solver was already run or not.

This implementation is a dummy version that always returns false.

Reimplemented in delphos::PseudoFlowNestedPitSolver.

bool delphos::NestedPitSolver::Run ( )
virtual

Calculates the final pit. Returns true on success.

This version of the method does not calculate anything, and returns false.

Reimplemented in delphos::PseudoFlowNestedPitSolver.


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