cCoreStateMonitor Class |
Namespace: EwECore
The cCoreStateMonitor type exposes the following members.
Name | Description | |
---|---|---|
cCoreStateMonitor |
Constructor, initializes a new instance of this class.
|
Name | Description | |
---|---|---|
SyncObject |
Name | Description | |
---|---|---|
CanEcopathLoad | ||
CanEcosimLoad | ||
CanEcospaceLoad | ||
CanEcotracerLoad | ||
CoreExecutionState |
Returns the current EwE Core Execution state.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasEcopathInitialized |
Returns whether an Ecopath model has been initialized.
| |
HasEcopathLoaded |
Returns whether an Ecopath model has been loaded.
| |
HasEcopathRan |
Returns whether an Ecopath model has completed succesfully.
| |
HasEcosimInitialized |
Returns whether an Ecosim scenario has been initialized.
| |
HasEcosimLoaded |
Returns whether an Ecosim scenario has been loaded.
| |
HasEcosimRan |
Returns whether an Ecosim scenario has completed its timesteps succesfully.
| |
HasEcospaceInitialized |
Returns whether an Ecospace scenario has been initialized.
| |
HasEcospaceLoaded |
Returns whether an Ecospace scenario has been loaded.
| |
HasEcospaceRan |
Returns whether an Ecospace scenario has completed its timesteps succesfully.
| |
HasEcotracerLoaded |
Returns whether an Ecotracer scenario has been loaded.
| |
HasEcotracerRanForEcosim |
Returns whether Ecotracer results have been computed for the last
Ecosim run .
| |
HasEcotracerRanForEcospace |
Returns whether Ecotracer results have been computed for the last
Ecospace run .
| |
HasPSDRan |
Returns whether the Ecopath PSD model has completed succesfully.
| |
IsBatchLocked |
Returns whether a batch lock is active on the core.
| |
IsBusy |
Returns whether the core is busy. Either a model is running, a search
is in progress, or a batch operation is in progress.
| |
IsDatasourceModified |
Returns whether the Datasource contains changes that have not
been saved, which will not influence the running model and its scenarios.
| |
IsEcopathModified |
Returns whether the Ecopath model data contains changes that have not
been saved. | |
IsEcopathRunning |
Returns whether an Ecopath model is running.
| |
IsEcosimModified |
Returns whether the Ecosim scenario data contains changes that have not
been saved. | |
IsEcosimRunning |
Returns whether an Ecosim scenario is running.
| |
IsEcospaceModified |
Returns whether the Ecospace scenario data contains changes that have not
been saved. | |
IsEcospaceRunning |
Returns whether an Ecospace scenario is running.
| |
IsEcotracerModified |
Returns whether the Ecotracer scenario data contains changes that have not
been saved. | |
IsExecutionStateSuperceded |
Returns whether the current core execution state equals or exceeds
a given state.
| |
IsModified |
Returns whether there are ANY unsaved changes.
| |
IsPaused |
Returns whether the core is paused while IsBusy.
| |
IsPluginModified |
Returns whether the plug-ins contains data changes that have not
been saved. | |
IsSearching |
Returns whether the core is searching. To find what search is running
refer to SearchMode.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SearchMode |
Returns the current eSearchModes.
| |
SetIsPaused |
This only fires off a core execution state event to allow depending
elements to check the IsPaused state.
| |
SetIsSearching |
Set the searching state of the core state monitor.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
CoreDataStateEvent |
The core data state change event.
| |
CoreExecutionStateEvent |
The core execution state change event.
|
Name | Description | |
---|---|---|
Value |
Extension method; extract a value from an object by property name.
(Defined by Extensions.) |
The following class tracks core execution state changes:
Class StateTracker Public Sub New(ByRef sm as cCoreStateMonitor) ' Hook up to core state monitor AddHandler sm.CoreExecutionStateEvent, AddressOf OnCoreExecutionStateChange End Sub Private Sub OnCoreExecutionStateChange(ByVal core As cCore, ByVal iState As eCoreExecutionState) ' Handle core state changes Console.WriteLine("State tracker: core {0} state has changed to {1}", core, iState) End Sub End Class