From: <mor...@us...> - 2010-12-21 08:28:01
|
Revision: 3877 http://ecell.svn.sourceforge.net/ecell/?rev=3877&view=rev Author: moriyoshi Date: 2010-12-21 08:27:55 +0000 (Tue, 21 Dec 2010) Log Message: ----------- * Allow one to specify arbitrary StepInterval for PythonProcess. Modified Paths: -------------- ecell3/trunk/ecell/dm/PythonProcess.cpp Modified: ecell3/trunk/ecell/dm/PythonProcess.cpp =================================================================== --- ecell3/trunk/ecell/dm/PythonProcess.cpp 2010-12-21 08:19:32 UTC (rev 3876) +++ ecell3/trunk/ecell/dm/PythonProcess.cpp 2010-12-21 08:27:55 UTC (rev 3877) @@ -45,6 +45,7 @@ INHERIT_PROPERTIES( Process ); PROPERTYSLOT_SET_GET( Integer, IsContinuous ); + PROPERTYSLOT_SET_GET( Real, StepInterval ); PROPERTYSLOT_SET_GET( String, FireMethod ); PROPERTYSLOT_SET_GET( String, InitializeMethod ); } @@ -75,6 +76,16 @@ theIsContinuous = value; } + virtual Real getStepInterval() const + { + return theStepInterval; + } + + SET_METHOD( Real, StepInterval) + { + theStepInterval = value; + } + SET_METHOD( String, FireMethod ) { theFireMethod = value; @@ -92,7 +103,6 @@ return theFireMethod; } - SET_METHOD( String, InitializeMethod ) { theInitializeMethod = value; @@ -161,6 +171,7 @@ boost::python::handle<> theCompiledInitializeMethod; bool theIsContinuous; + Real theStepInterval; }; LIBECS_DM_INIT( PythonProcess, Process ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |