Class Condition
Abstract class that represents a base for all conditions.
Inheritance
System.Object
Priority_Queue.FastPriorityQueueNode
Priority_Queue.StablePriorityQueueNode
Condition
Inherited Members
Priority_Queue.StablePriorityQueueNode.InsertionIndex
Priority_Queue.FastPriorityQueueNode.Priority
Priority_Queue.FastPriorityQueueNode.QueueIndex
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fibula.Mechanics.Conditions
Assembly: Fibula.Mechanics.dll
Syntax
public abstract class Condition : BaseEvent, IEquatable<BaseEvent>, ICondition, IEvent
Constructors
| Improve this Doc View SourceCondition(ConditionType, DateTimeOffset)
Initializes a new instance of the Condition class.
Declaration
public Condition(ConditionType conditionType, DateTimeOffset endTime)
Parameters
Type | Name | Description |
---|---|---|
ConditionType | conditionType | The type of exhaustion. |
System.DateTimeOffset | endTime | The date and time at which the condition is set to end. |
Properties
| Improve this Doc View SourceCanBeCancelled
Gets or sets a value indicating whether this condition can be cured.
Declaration
public override bool CanBeCancelled { get; protected set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceEndTime
Gets or sets the end time for this condition.
Declaration
public DateTimeOffset EndTime { get; set; }
Property Value
Type | Description |
---|---|
System.DateTimeOffset |
Type
Gets the type of this condition.
Declaration
public ConditionType Type { get; }
Property Value
Type | Description |
---|---|
ConditionType |
Methods
| Improve this Doc View SourceExecute(IEventContext)
Executes the event logic.
Declaration
public override void Execute(IEventContext context)
Parameters
Type | Name | Description |
---|---|---|
IEventContext | context | The execution context. |
Overrides
| Improve this Doc View SourcePulse(IEventContext)
Executes the operation's logic.
Declaration
protected abstract void Pulse(IEventContext context)
Parameters
Type | Name | Description |
---|---|---|
IEventContext | context | The execution context for this operation. |
Implements
System.IEquatable<T>