42 mpTimeSeriesRequested(NULL),
43 mpOutputStartTime(NULL),
45 mpContinueSimultaneousEvents(NULL),
46 mStepNumberSetLast(true)
63 mpTimeSeriesRequested(NULL),
64 mpOutputStartTime(NULL),
66 mpContinueSimultaneousEvents(NULL),
67 mStepNumberSetLast(src.mStepNumberSetLast)
225 assert(pDataModel != NULL);
257 if (fabs(StepSize) < 100.0 * std::numeric_limits< C_FLOAT64 >::epsilon() * fabs(*
mpDuration))
262 StepSize = 100.0 * std::numeric_limits< C_FLOAT64 >::epsilon() * fabs(*
mpDuration);
264 StepSize = (Tmp < 0.0) ? - fabs(StepSize) : fabs(StepSize);
265 StepNumber = fabs(ceil(Tmp / StepSize));
270 if (fabs(StepSize) < 100.0 * std::numeric_limits< C_FLOAT64 >::epsilon() * fabs(*
mpDuration))
275 StepSize = 100.0 * std::numeric_limits< C_FLOAT64 >::epsilon() * fabs(*
mpDuration);
278 StepSize = (Tmp < 0.0) ? - fabs(StepSize) : fabs(StepSize);
281 StepNumber = fabs(ceil(Tmp / StepSize));
290 StepSize = Tmp / StepNumber;
294 StepSize = (Tmp < 0.0) ? - fabs(StepSize) : fabs(StepSize);
CCopasiDataModel * getObjectDataModel()
void initializeParameter()
void setContinueSimultaneousEvents(const bool &continueSimultaneousEvents)
const unsigned C_INT32 & getStepNumber() const
CCopasiObject * getValueReference() const
void setDuration(const C_FLOAT64 &duration)
bool * mpTimeSeriesRequested
unsigned C_INT32 * mpStepNumber
void setUpdateMethod(CType *pType, void(CType::*method)(const C_FLOAT64 &))
const C_FLOAT64 & getStepSize() const
#define MCTrajectoryProblem
void setStepSize(const C_FLOAT64 &stepSize)
const C_FLOAT64 & getDuration() const
void setOutputEvent(const bool &outputEvent)
void setTimeSeriesRequested(bool flag)
const Value & getValue() const
void setStepNumber(const unsigned C_INT32 &stepNumber)
virtual bool elevateChildren()
CCopasiParameter * getParameter(const std::string &name)
C_FLOAT64 * mpOutputStartTime
const C_FLOAT64 & getOutputStartTime() const
bool timeSeriesRequested() const
bool * mpContinueSimultaneousEvents
CCopasiParameter * assertParameter(const std::string &name, const CCopasiParameter::Type type, const CType &defaultValue)
void setOutputStartTime(const C_FLOAT64 &endTime)
C_INT32 getVariable(const std::string &name, const std::string &type, void *pout, CReadConfig::Mode mode=CReadConfig::NEXT)
void load(CReadConfig &configBuffer, CReadConfig::Mode mode=CReadConfig::NEXT)
const bool & getContinueSimultaneousEvents() const
CTrajectoryProblem(const CCopasiContainer *pParent=NULL)
#define CONSTRUCTOR_TRACE
const bool & getOutputEvent() const