docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Scheduler

    The Scheduler class is used to schedule emulation events of the systemgraph.

    Inheritance
    object
    Scheduler
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Mechatronics.SystemGraph
    Assembly: solution.dll
    Syntax
    public class Scheduler

    Fields

    Name Description
    LastEventTime

    Last Event Time

    Now

    Current time

    TimeAbsolute

    Time since start

    TimeAtSource

    Source time

    Properties

    Name Description
    ClockSourceDescriptors

    Gets the clock descriptors for nodes that are bound to a clock source

    NextFrameTime

    Gets the next frame time to schedule.

    NodeEventMap

    Gets the events clockstate associated with node runtimes

    NodeOrder

    Gets the initialization node order list.

    Paused

    Gets the pause state of the Scheduler

    TimeScaleFactor

    Get the TimeScaleFactor of the Scheduler

    Waveform

    Gets the list of waveforms

    Methods

    Name Description
    DisableNodes()

    Call Disable() for all nodes. See EnableNodes() for details on order.

    EnableNodes()

    Call Enable() for all nodes. Order is random for Async nodes, but they will be called before Sync nodes. Sync nodes are enabled in the order they appear in the scheduler.

    FixedUpdate()

    Called from a Unity FixedUpdate() to signal a scheduler update.

    Initialize(SystemGraphComponent, SystemGraphObject)

    Initialize this scheduler component.

    Pause()

    Pause the scheduler.

    Resume()

    Resume after Pause().

    SetNodeFrequencyForNextFrame(NodeRuntime, double)

    Set a new frequency on provided node runtime

    SetNodeUseClockSourceForNextFrame(NodeRuntime)

    Set a node to use the clocksource frequency

    SetTimeScaleFactor(double)

    Set time scale.

    StartNodes()

    Call Start() for all nodes. See EnableNodes() for details on order.

    Step(int)

    Step the scheduler a integer number of steps.

    SyncClockSourceTime(double)

    Synchronize the current time of the scheduler with the clock source. If the caller provides a forcedTimeAtSource higher or equal to 0.0, the clock will set the current time to the provided value.

    Update()

    Called from a Unity Update() to signal a scheduler update.

    UserUpdate(double)

    Called from a custom user update function to signal a scheduler update.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)