Changes between Version 7 and Version 8 of EcosimVariableTimestepPluginExample


Ignore:
Timestamp:
2010-02-25 14:18:28 (14 years ago)
Author:
joeb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • EcosimVariableTimestepPluginExample

    v7 v8  
    77 
    88 1. Load ...Ecopath6\Sources\EwE6.sln into Visual Studio. 
    9  1. Add the CEFASPluginSample.vbproj by right clicking on '''Solution Explorer '''and selecting '''Add>Existing Project...''' and finding ...Ecopath6\Sources\EwETutorials\CEFASPluginSample 
    10  1. Set a reference to CEFASPluginSample in the !ScientificInterface project by right clicking on the !ScientificInterface node in the '''Solution Explorer''' and selecting '''Add Reference... '''click the '''Add... '''button from the '''Projects '''tab select CEFASPluginSample 
    11  1. Run the CEFASPluginSample by compiling and running EwE6. From EwE6 main menu select '''Tools>CEFAS plug-in sample''' 
     9 1. Add the CEFASPluginSample.vbproj by right clicking on '''Solution Explorer '''and selecting '''Add>Existing Project...''' and finding ...Ecopath6\Sources\EwETutorials\CEFASPluginSample 
     10 1. Set a reference to CEFASPluginSample in the !ScientificInterface project by right clicking on the !ScientificInterface node in the '''Solution Explorer''' and selecting '''Add Reference... '''click the '''Add... '''button from the '''Projects '''tab select CEFASPluginSample 
     11 1. Run the CEFASPluginSample by compiling and running EwE6. From EwE6 main menu select '''Tools>CEFAS plug-in sample''' 
    1212 
    1313=  = 
     
    2929 * !BiomassAtTimestep() contains the biomass computed for the time step. 
    3030 
    31 = Running Ecosim on a separate thread = 
     31= Running Ecosim on a separate thread = 
     32Ecosim can be run on a separate thread from the user interface by setting the cEcosimDataStuctures.bMultiThreaded Boolean flag to True. The next time Ecosim is run it will run on its own thread. Once the Ecosim run has completed the cEcosimDataStuctures.bMultiThreaded flag will be automatically set to its default value of False and all subsequent run will be on the main application thread. All plug-in calls that originate on a thread other than the main thread will be marshaled to the main thread. This is for robustness, in .NET user interface controls cannot be accessed from a thread other than that which they were created on. Plug-ins are created and run on the main thread by the EwE framework. By automatically marshaling all plug-in calls to the main thread plug-in points do not have to marshal calls to an interface.