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

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

#include <fp.h>

Inheritance diagram for delphos::FinalPitSolver:
Inheritance graph
Collaboration diagram for delphos::FinalPitSolver:
Collaboration graph

Public Member Functions

virtual ~FinalPitSolver ()
 The destructor.
 
 FinalPitSolver (const FinalPitInstance &fp)
 Creates a new Final Pit Solver based on an instance of the Final Pit Problem. More...
 
 FinalPitSolver (const BlockModel &bm)
 Creates a new Final Pit Solver based on the given block model. More...
 
virtual bool Run ()
 Calculates the final pit. Returns true on success. More...
 
virtual BlockSelectionFinalPit ()
 Reports the result of the computation as a block selection. More...
 
virtual BlockSelectionGetFinalPit ()
 Reports the result of the computation as a block selection. More...
 
const FinalPitInstanceGetInstance () const
 retrieves the instance being solved.
 
void SetInstance (delphos::FinalPitInstance *fp)
 Sets a final pit instance. More...
 
virtual const bool IsSolved () const
 Checks if the solver was already run or not. More...
 
virtual double PitValue ()
 Computes the value of the final pit. More...
 
virtual double GetPitValue ()
 Computes the value of the final pit. More...
 
- 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 final pit instance.

Constructor & Destructor Documentation

delphos::FinalPitSolver::FinalPitSolver ( const FinalPitInstance fp)

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

Parameters
fpThe final pit instance.
delphos::FinalPitSolver::FinalPitSolver ( const BlockModel bm)

Creates a new Final Pit Solver based on the given block model.

Parameters
bmThe block model.

Member Function Documentation

BlockSelection * delphos::FinalPitSolver::FinalPit ( )
virtual

Reports the result of the computation as a block selection.

This version of the method simply returns NULL. Deprecated.

Reimplemented in delphos::PseudoFlowFinalPitSolver.

BlockSelection * delphos::FinalPitSolver::GetFinalPit ( )
virtual

Reports the result of the computation as a block selection.

This version of the method simply returns NULL.

Reimplemented in delphos::PseudoFlowFinalPitSolver.

double delphos::FinalPitSolver::GetPitValue ( )
virtual

Computes the value of the final pit.

This method computes the addition of the blocks selected by the final pit.

Reimplemented in delphos::PseudoFlowFinalPitSolver.

const bool delphos::FinalPitSolver::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::PseudoFlowFinalPitSolver.

double delphos::FinalPitSolver::PitValue ( )
virtual

Computes the value of the final pit.

This method computes the addition of the blocks selected by the final pit. Deprecated.

Reimplemented in delphos::PseudoFlowFinalPitSolver.

bool delphos::FinalPitSolver::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::PseudoFlowFinalPitSolver.

void delphos::FinalPitSolver::SetInstance ( delphos::FinalPitInstance fp)

Sets a final pit instance.

Parameters
fpThe final pit instance to be set.

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