OpenM++ runtime library (libopenm)
|
model run state: thread safe More...
#include <modelRunState.h>
Public Member Functions | |
ModelRunState (void) | |
initialize model run state | |
ModelStatus | status (void) override |
get model status More... | |
bool | isFinal (void) override |
return true if status is one of exiting: ie done, exit, error More... | |
bool | isError (void) override |
return true if status is an error More... | |
bool | isShutdownOrFinal (void) override |
return true if model in shutdown state: modeling completed or one of exiting More... | |
RunState | get (void) override |
return model run state data More... | |
ModelStatus | updateStatus (ModelStatus i_status) override |
set model status if not already set as one of final status values More... | |
void | updateProgress (int i_count, double i_value=0.0) override |
set modeling progress count and value More... | |
virtual ModelStatus | status (void)=0 |
get model status More... | |
virtual bool | isShutdownOrFinal (void)=0 |
return true if model in shutdown state: modeling completed or one of exiting More... | |
virtual RunState | get (void)=0 |
return model run state data More... | |
virtual ModelStatus | updateStatus (ModelStatus i_status)=0 |
set model status if not already set as one of final status values More... | |
virtual void | updateProgress (int i_count, double i_value=0.0)=0 |
set modeling progress count and value More... | |
virtual bool | isFinal (void)=0 |
return true if status is one of exiting: done, exit, error More... | |
virtual bool | isError (void)=0 |
return true if status is an error More... | |
model run state: thread safe
|
overridevirtual |
return model run state data
Implements openm::IModelRunState.
|
overridevirtual |
return true if status is an error
Implements openm::IFinalState.
|
overridevirtual |
return true if status is one of exiting: ie done, exit, error
Implements openm::IFinalState.
|
overridevirtual |
return true if model in shutdown state: modeling completed or one of exiting
Implements openm::IModelRunState.
|
overridevirtual |
get model status
Implements openm::IModelRunState.
|
overridevirtual |
set modeling progress count and value
Implements openm::IModelRunState.
|
overridevirtual |
set model status if not already set as one of final status values
Implements openm::IModelRunState.