/// <summary> /// Extracts 1-dimensional variable value. <seealso cref="HasVariable1d"/> <seealso cref="GetVariable3d"/> /// </summary> /// <param name="variable1d">variable to extract</param> /// <returns>variable value</returns> public double GetVariable1d(Variable1d variable1d) { return(variable1d.VariableType == VariableType.Standard ? NativeNode.Node_GetVariable1d(_nativeInstance, variable1d.NativeVariable) : NativeNode.Node_GetVariableComponent(_nativeInstance, variable1d.NativeVariable)); }
/// <summary> /// Checks whether condition has initialized 1-dimensional variable. <seealso cref="HasVariable3d"/> /// </summary> /// <param name="variable1d">Variable to check.</param> /// <returns>true, if variable is initialized</returns> public bool HasVariable1d(Variable1d variable1d) { return(variable1d.VariableType == VariableType.Standard ? NativeCondition.Condition_HasVariable1d(_nativeInstance, variable1d.NativeVariable) : NativeCondition.Condition_HasVariableComponent(_nativeInstance, variable1d.NativeVariable)); }