Class IronPythonCondition
Encapsulates information about a condition which determines if the code of a ModelAction's ModelAction.Binding is executable. An instance of IronPythonCondition executes IronPython code to determine if a ModelAction is NotValid, Disabled or Executable.
Implements
System.Dynamic.IDynamicMetaObjectProvider
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeCockpit.Data.DataModel.Actions
Assembly: TimeCockpit.Data.dll
Syntax
public class IronPythonCondition : Condition, IDynamicMetaObjectProvider, INotifyPropertyChanged
Remarks
Up to now, the IronPythonCondition is not supported!
Constructors
IronPythonCondition()
Initializes a new instance of the IronPythonCondition class
Declaration
public IronPythonCondition()
Properties
SourceCode
Gets or sets the source code that is used to evaluate if the Condition is satisfied or not
Declaration
public string SourceCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Clone()
Creates a deep copy of the condition.
Declaration
public override Condition Clone()
Returns
Type | Description |
---|---|
Condition | Create a deep copy of the condition. |
Overrides
GetStatus(ModelActionContext)
Checks the status a Condition has in respect to an ModelActionContext.
Declaration
protected override Status GetStatus(ModelActionContext context)
Parameters
Type | Name | Description |
---|---|---|
ModelActionContext | context | The ModelActionContext the ModelAction is to be executed in. |
Returns
Type | Description |
---|---|
Status | The Status the Condition has in respect to the given ModelActionContext. |