C# 클래스 Grasp.GraspRuntime

A context in which a set of variables are bound to values
파일 보기 프로젝트 열기: bwatts/Grasp 1 사용 예제들

공개 메소드들

메소드 설명
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