C# Класс Grasp.GraspRuntime

A context in which a set of variables are bound to values
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ApplyCalculations ( ) : void

Applies the calculations defined by Schema to this runtime

GetVariableValue ( Variable variable ) : object

Gets the value of the specified variable

GraspRuntime ( GraspSchema schema, ICalculator calculator, IEnumerable bindings ) : System

Initializes a runtime with the specified schema, calculator, and bindings

SetVariableValue ( Variable variable, object value ) : void

Sets the value of the specified variable

Приватные методы

Метод Описание
TryGetBinding ( Variable variable ) : VariableBinding

Описание методов

ApplyCalculations() публичный Метод

Applies the calculations defined by Schema to this runtime
public ApplyCalculations ( ) : void
Результат void

GetVariableValue() публичный Метод

Gets the value of the specified variable
Thrown if the specified variable is not bound
public GetVariableValue ( Variable variable ) : object
variable Variable The variable for which to get the value
Результат object

GraspRuntime() публичный Метод

Initializes a runtime with the specified schema, calculator, and bindings
public GraspRuntime ( GraspSchema schema, ICalculator calculator, IEnumerable bindings ) : System
schema GraspSchema The schema which defines the variables and calculations in effect for this runtime
calculator ICalculator The calculator which applies the specified schema's calculations to this runtime
bindings IEnumerable The initial states of the variables in this runtime
Результат System

SetVariableValue() публичный Метод

Sets the value of the specified variable
public SetVariableValue ( Variable variable, object value ) : void
variable Variable The variable for which to set the specified value
value object The new value of the specified variable
Результат void