GranOO  3.0
A robust and versatile workbench to build 3D dynamic simulations based on the Discrete Element Method
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
GranOO3::Core::Problem Class Reference

#include <Problem.hpp>

Inheritance diagram for GranOO3::Core::Problem:
Inheritance graph
[legend]

Public Member Functions

void run (int, char *[])
 
void run (const std::string &, const std::string &)
 
void end ()
 
void stop (const std::string why="")
 
void read_xml_input_file (std::string inputFile)
 
void run_root_plugin ()
 
std::string status () const
 
const boost::filesystem::path & get_output_directory () const
 
template<class P >
P & get_plugin (unsigned int plugRank=0)
 
template<class P >
const P & get_plugin (unsigned int plugRank=0) const
 
void set_current_status (const std::string &)
 
void set_current_plugin (Core::PlugIn *)
 
unsigned int get_total_number_of_thread ()
 
const Core::PlugInget_current_plugin () const
 
std::string get_current_plugin_ID () const
 
void store_file (const std::string &fileName, const std::string &content, const std::string desc="")
 

Protected Member Functions

 Problem ()
 
 ~Problem ()
 

Protected Attributes

std::vector< Core::PlugIn * > _root_plugin
 
std::vector< boost::filesystem::path > _all_sample_file
 
std::string _current_status
 
Core::PlugIn_current_root_plugin
 
Core::PlugIn_current_plugin
 
unsigned int _status_UID
 
std::map< const std::string, std::string > _all_stored_file
 

Private Member Functions

Problemoperator= (const Problem &source)=delete
 
 Problem (const Problem &source)=delete
 
void init_math ()
 
- Private Member Functions inherited from GranOO3::Core::Singleton< Problem >
 Singleton ()
 
virtual ~Singleton ()
 

Private Attributes

IOManager _io
 
XmlReader _xml
 
Status _st
 
ThreadManager _thr
 
TimeManager _watch
 
Core::Logger _log
 

Additional Inherited Members

- Static Private Member Functions inherited from GranOO3::Core::Singleton< Problem >
static bool exist ()
 
static Problemget ()
 
static void instanciate ()
 
static void delete_me ()
 
- Static Private Attributes inherited from GranOO3::Core::Singleton< Problem >
static Problem_me
 

Constructor & Destructor Documentation

◆ Problem() [1/2]

GranOO3::Core::Problem::Problem ( )
protected

◆ ~Problem()

GranOO3::Core::Problem::~Problem ( )
protected

◆ Problem() [2/2]

GranOO3::Core::Problem::Problem ( const Problem source)
privatedelete

Member Function Documentation

◆ end()

void GranOO3::Core::Problem::end ( )

◆ get_current_plugin()

const PlugIn & GranOO3::Core::Problem::get_current_plugin ( ) const

◆ get_current_plugin_ID()

std::string GranOO3::Core::Problem::get_current_plugin_ID ( ) const

◆ get_output_directory()

const boost::filesystem::path & GranOO3::Core::Problem::get_output_directory ( ) const

◆ get_plugin() [1/2]

template<class P >
P& GranOO3::Core::Problem::get_plugin ( unsigned int  plugRank = 0)

◆ get_plugin() [2/2]

template<class P >
const P& GranOO3::Core::Problem::get_plugin ( unsigned int  plugRank = 0) const

◆ get_total_number_of_thread()

unsigned int GranOO3::Core::Problem::get_total_number_of_thread ( )

◆ init_math()

void GranOO3::Core::Problem::init_math ( )
private

◆ operator=()

Problem& GranOO3::Core::Problem::operator= ( const Problem source)
privatedelete

◆ read_xml_input_file()

void GranOO3::Core::Problem::read_xml_input_file ( std::string  inputFile)

◆ run() [1/2]

void GranOO3::Core::Problem::run ( const std::string &  jobname,
const std::string &  executableName = "" 
)

◆ run() [2/2]

void GranOO3::Core::Problem::run ( int  argc,
char *  argv[] 
)

◆ run_root_plugin()

void GranOO3::Core::Problem::run_root_plugin ( )

◆ set_current_plugin()

void GranOO3::Core::Problem::set_current_plugin ( Core::PlugIn p)

◆ set_current_status()

void GranOO3::Core::Problem::set_current_status ( const std::string &  )

◆ status()

std::string GranOO3::Core::Problem::status ( ) const

◆ stop()

void GranOO3::Core::Problem::stop ( const std::string  why = "")

◆ store_file()

void GranOO3::Core::Problem::store_file ( const std::string &  fileName,
const std::string &  content,
const std::string  desc = "" 
)

Member Data Documentation

◆ _all_sample_file

std::vector<boost::filesystem::path> GranOO3::Core::Problem::_all_sample_file
protected

◆ _all_stored_file

std::map<const std::string, std::string> GranOO3::Core::Problem::_all_stored_file
protected

◆ _current_plugin

Core::PlugIn* GranOO3::Core::Problem::_current_plugin
protected

◆ _current_root_plugin

Core::PlugIn* GranOO3::Core::Problem::_current_root_plugin
protected

◆ _current_status

std::string GranOO3::Core::Problem::_current_status
protected

◆ _io

IOManager GranOO3::Core::Problem::_io
private

◆ _log

Core::Logger GranOO3::Core::Problem::_log
private

◆ _root_plugin

std::vector<Core::PlugIn*> GranOO3::Core::Problem::_root_plugin
protected

◆ _st

Status GranOO3::Core::Problem::_st
private

◆ _status_UID

unsigned int GranOO3::Core::Problem::_status_UID
protected

◆ _thr

ThreadManager GranOO3::Core::Problem::_thr
private

◆ _watch

TimeManager GranOO3::Core::Problem::_watch
private

◆ _xml

XmlReader GranOO3::Core::Problem::_xml
private

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