COPASI API
4.40.278
|
#include <CScanMethod.h>
Public Member Functions | |
size_t | getNumSteps () const |
const CObjectInterface * | getObject () const |
bool | isFinished () const |
virtual bool | isNesting () const |
virtual bool | isValidScanItem (const bool &continueFromCurrentState) |
void | reset () |
void | restoreValue () const |
virtual void | step ()=0 |
void | storeValue () |
virtual | ~CScanItem () |
Static Public Member Functions | |
static CScanItem * | createScanItemFromParameterGroup (CCopasiParameterGroup *si, CRandom *rg) |
Protected Member Functions | |
CScanItem (CCopasiParameterGroup *si) | |
virtual void | ensureParameterGroupHasAllElements (CCopasiParameterGroup *pg) |
Protected Attributes | |
bool | mFlagFinished |
size_t | mIndex |
size_t | mNumSteps |
const CObjectInterface * | mpObject |
C_FLOAT64 * | mpObjectValue |
C_FLOAT64 | mStoreValue |
Private Member Functions | |
CScanItem () | |
|
virtual |
|
protected |
|
private |
|
static |
CScanMethod class. This class describes the Scan method
Created for COPASI by Rohan Luktuke 2002
References C_INT32, CCopasiParameterGroup::getValue(), CScanProblem::SCAN_LINEAR, CScanProblem::SCAN_RANDOM, and CScanProblem::SCAN_REPEAT.
Referenced by CScanMethod::init(), and CScanMethod::isValidProblem().
|
protectedvirtual |
Reimplemented in CScanItemRandom, and CScanItemLinear.
References CCopasiParameterGroup::assertParameter(), CCopasiParameter::CN, and CCopasiParameter::UINT.
Referenced by CScanItem().
size_t CScanItem::getNumSteps | ( | ) | const |
References mNumSteps.
Referenced by CScanMethod::init().
const CObjectInterface * CScanItem::getObject | ( | ) | const |
Retrieve the initial object which is scanned.
References mpObject.
Referenced by CScanMethod::init().
bool CScanItem::isFinished | ( | ) | const |
References mFlagFinished.
Referenced by CScanMethod::loop().
|
virtual |
Reimplemented in CScanItemRandom.
Referenced by CScanMethod::loop().
|
virtual |
perform checks. This is used in the method::isValidProblem() method. It returns false for an invalid ScanItem and generates a CCopasiMessage
Reimplemented in CScanItemLinear, and CScanItemRepeat.
References CCopasiMessage::ERROR, and mpObject.
Referenced by CScanMethod::isValidProblem(), and CScanItemLinear::isValidScanItem().
void CScanItem::reset | ( | ) |
References mFlagFinished, mIndex, and step().
Referenced by CScanMethod::loop().
void CScanItem::restoreValue | ( | ) | const |
References mpObjectValue, and mStoreValue.
|
pure virtual |
Implemented in CScanItemRandom, CScanItemLinear, and CScanItemRepeat.
Referenced by CScanMethod::loop(), and reset().
void CScanItem::storeValue | ( | ) |
References mpObjectValue, and mStoreValue.
|
protected |
Referenced by isFinished(), reset(), CScanItemRepeat::step(), CScanItemLinear::step(), and CScanItemRandom::step().
|
protected |
Referenced by reset(), CScanItemRepeat::step(), CScanItemLinear::step(), and CScanItemRandom::step().
|
protected |
|
protected |
Referenced by CScanItem(), getObject(), and isValidScanItem().
|
protected |
Referenced by CScanItem(), restoreValue(), CScanItemLinear::step(), CScanItemRandom::step(), and storeValue().
|
protected |
Referenced by restoreValue(), and storeValue().