C# Класс DataDictionary.Rules.Action

Наследование: Generated.Action
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddModelElement ( IModelElement element ) : void

Adds a model element in this model element

CleanCompilation ( ) : void

Clears the statement tree to ensure new compilation

Compile ( ) : InterpreterTreeNode

Creates the tree according to the statement text

CreateDefault ( ICollection enclosingCollection ) : Action

Creates a default element

GetChanges ( InterpretationContext context, DataDictionary.Rules.ChangeList changes, ExplanationPart explanation, bool apply, Runner runner ) : void

Creates a list of changes to be applied on the system

GetExplain ( TextualExplanation explanation, bool explainSubElements ) : void

Builds the explanation of the element

GetModeForTypedElement ( ITypedElement element ) : Usage.ModeEnum

Provides the mode for the typed element provided

Modifies ( ITypedElement variable ) : VariableUpdateStatement

Provides the statement which modifies the variable

Reads ( ITypedElement variable ) : bool

Indicates whether this action reads the variable

RequirementDescription ( ) : string

Provides the description of the requirements related to this model element

UpdatedVariable ( ) : string

Indicates the name of the updated variable, if any

checkValidExpression ( string expression ) : bool

Indicates that the expression is valid for this IExpressionable

duplicate ( ) : Action

Duplicates this model element

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

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

Adds a model element in this model element
public AddModelElement ( IModelElement element ) : void
element IModelElement
Результат void

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

Clears the statement tree to ensure new compilation
public CleanCompilation ( ) : void
Результат void

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

Creates the tree according to the statement text
public Compile ( ) : InterpreterTreeNode
Результат InterpreterTreeNode

CreateDefault() публичный статический Метод

Creates a default element
public static CreateDefault ( ICollection enclosingCollection ) : Action
enclosingCollection ICollection
Результат Action

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

Creates a list of changes to be applied on the system
public GetChanges ( InterpretationContext context, DataDictionary.Rules.ChangeList changes, ExplanationPart explanation, bool apply, Runner runner ) : void
context InterpretationContext The context on which the changes should be computed
changes DataDictionary.Rules.ChangeList The list of changes to be updated
explanation ExplanationPart The explanatino to fill, if any
apply bool Indicates that the changes should be applied immediately
runner Runner
Результат void

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

Builds the explanation of the element
public GetExplain ( TextualExplanation explanation, bool explainSubElements ) : void
explanation TextualExplanation
explainSubElements bool Precises if we need to explain the sub elements (if any)
Результат void

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

Provides the mode for the typed element provided
public GetModeForTypedElement ( ITypedElement element ) : Usage.ModeEnum
element ITypedElement
Результат Usage.ModeEnum

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

Provides the statement which modifies the variable
public Modifies ( ITypedElement variable ) : VariableUpdateStatement
variable ITypedElement
Результат VariableUpdateStatement

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

Indicates whether this action reads the variable
public Reads ( ITypedElement variable ) : bool
variable ITypedElement
Результат bool

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

Provides the description of the requirements related to this model element
public RequirementDescription ( ) : string
Результат string

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

Indicates the name of the updated variable, if any
public UpdatedVariable ( ) : string
Результат string

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

Indicates that the expression is valid for this IExpressionable
public checkValidExpression ( string expression ) : bool
expression string
Результат bool

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

Duplicates this model element
public duplicate ( ) : Action
Результат Action