Demo3D.EventQueue Namespace |
| Class | Description | |
|---|---|---|
| Dispatcher |
A class for manging asynchronous/future actions/coroutines in simulation time.
| |
| Event |
EventQueue storage for an event action, sortable on time.
| |
| FixedMath |
Math class methods for Fixed values.
| |
| ModelTimeMath |
Mathematical methods for ModelTime.
| |
| RealTimeMath |
Mathematical methods for RealTime.
| |
| RealTimeStopwatch |
A stopwatch.
| |
| Result |
Container for values returned from Wait methods.
|
| Structure | Description | |
|---|---|---|
| CancelableEvent |
Allow event to be canceled by assigning a new event to Value or null.
| |
| Fixed |
A fixed floating point number with 7 decimal places.
Using this instead of floats or double ensures deterministic event dispatching.
| |
| ModelTime |
Represents Model Time.
Implemented internally as Fixed, ie in 100ns steps.
| |
| RealTime |
Represents Real (Wall-Clock) Time.
Implemented internally as ticks from QueryPerformanceCounter(Int64).
|
| Interface | Description | |
|---|---|---|
| IChannelT |
A channel is a communication pipe with fixed capacity. Attempts to read from an empty channel will block, as will attempting to write to a full channel.
| |
| IContinuable | ||
| ITask |
ITask represents an internal task.
This is often a suspended C# coroutine (IEnumerable method) which is waiting for a particular time or event.
It can also be a task waiting for IO or a .NET Task to complete.
Once complete the ITask will be resumed automatically.
Instances of ITask objects should not be created in scripting but it's useful to understand
what the ITask represents when seen in the context of another method call.
| |
| ITaskActions |
Implement this interface when the class handles both OnCompleted and OnCancelled together.
Use this in preference to wiring up new actions for OnCompleted and OnCanelled.
| |
| ITaskCreator |
This object can be waited on and returns an ITask if needed.
| |
| ITaskNotifier |
If an ITask is an ITaskNotifier then OnCompletedOrCancelled can be used in place of OnCompleted and OnCancelled.
This stores a pointer to an interface of type ITaskActions instead of creating two actions for OnCompleted and OnCancelled.
|
| Enumeration | Description | |
|---|---|---|
| DispatcherPriority |
Explicit priorities for the execution of actions at a point in time.
|