Heureka API .NET Documentation
CalculateInitialState Method
Example 



The compartment.
Calculates initial state for a comparment Results for both fromDate and toDate area stored in the list Slu.Heureka.HeurekaAPI.Data.ApiCompartment.ProjectedStates. Slu.Heureka.HeurekaAPI.Data.ApiCompartment.ProjectedStates[0] always refer to the intialstate, and Slu.Heureka.HeurekaAPI.Data.ApiCompartment.InitialState is set equal to Slu.Heureka.HeurekaAPI.Data.ApiCompartment.ProjectedStates[0] after the first call to GrowStand.
Syntax
'Declaration
 
Public Function CalculateInitialState( _
   ByVal compartment As ApiCompartment _
) As ApiState
'Usage
 
Dim instance As InitialStateCalculator
Dim compartment As ApiCompartment
Dim value As ApiState
 
value = instance.CalculateInitialState(compartment)
public ApiState CalculateInitialState( 
   ApiCompartment compartment
)
public:
ApiState^ CalculateInitialState( 
   ApiCompartment^ compartment
) 

Parameters

compartment
The compartment.

Return Value

An Slu.Heureka.HeurekaAPI.Data.ApiState object data that holds data after calculation. This result is also stored in the list ApiCompartment.InitialState.
Example

var compartment = HeurekaObjectFactory.CreateTestApiCompartment();
var calculator = new InitialStateCalculator();
calculator.CalculateInitiaiState(compartment);
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

InitialStateCalculator Class
InitialStateCalculator Members

Send Feedback