Search Results for

    Show / Hide Table of Contents

    Class CeresGraph

    Inheritance
    object
    CeresGraph
    FlowGraph
    Implements
    IDisposableUnregister
    Namespace: Ceres.Graph
    Assembly: cs.temp.dll.dll
    Syntax
    public class CeresGraph : IDisposable, IDisposableUnregister

    Constructors

    CeresGraph()

    Declaration
    public CeresGraph()

    CeresGraph(CeresGraphData)

    Declaration
    public CeresGraph(CeresGraphData graphData)
    Parameters
    Type Name Description
    CeresGraphData graphData

    Fields

    nodeGroups

    Declaration
    public List<NodeGroup> nodeGroups
    Field Value
    Type Description
    System.Collections.Generic.List<T><NodeGroup>

    nodes

    Declaration
    public List<CeresNode> nodes
    Field Value
    Type Description
    System.Collections.Generic.List<T><CeresNode>

    SubGraphSlots

    Declaration
    public CeresSubGraphSlot[] SubGraphSlots
    Field Value
    Type Description
    CeresSubGraphSlot[]

    variables

    Declaration
    public List<SharedVariable> variables
    Field Value
    Type Description
    System.Collections.Generic.List<T><SharedVariable>

    Properties

    BlackBoard

    Exposed blackboard for data exchange

    Declaration
    public BlackBoard BlackBoard { get; }
    Property Value
    Type Description
    BlackBoard

    Methods

    AddSubGraphSlot<TGraph>(CeresSubGraphSlot)

    Try to add a subGraph slot with specific type validation

    Declaration
    public bool AddSubGraphSlot<TGraph>(CeresSubGraphSlot slot) where TGraph : CeresGraph
    Parameters
    Type Name Description
    CeresSubGraphSlot slot
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    TGraph

    CollectDependencyPath(CeresGraph)

    Declaration
    protected static void CollectDependencyPath(CeresGraph graph)
    Parameters
    Type Name Description
    CeresGraph graph

    Compile(CeresGraphCompiler)

    Compile graph just in time

    Declaration
    public virtual void Compile(CeresGraphCompiler compiler)
    Parameters
    Type Name Description
    CeresGraphCompiler compiler

    Runtime compiler

    CompileNodes(CeresGraphCompiler)

    Declaration
    protected static void CompileNodes(CeresGraphCompiler compiler)
    Parameters
    Type Name Description
    CeresGraphCompiler compiler

    Dispose()

    Declaration
    public virtual void Dispose()

    FindNode(string)

    Find node by guid

    Declaration
    public CeresNode FindNode(string guid)
    Parameters
    Type Name Description
    string guid
    Returns
    Type Description
    CeresNode

    Null if not exist

    FindNode<TNode>(string)

    Find node with specific type by guid

    Declaration
    public TNode FindNode<TNode>(string guid) where TNode : CeresNode
    Parameters
    Type Name Description
    string guid
    Returns
    Type Description
    TNode

    Null if not exist

    Type Parameters
    Name Description
    TNode

    FindSubGraph<TGraph>(string)

    Find subGraph with specific type by name

    Declaration
    public TGraph FindSubGraph<TGraph>(string name) where TGraph : CeresGraph
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    TGraph

    Null if not exist

    Type Parameters
    Name Description
    TGraph

    GetDependencyPaths()

    Get graph node current dependency path if existed

    Declaration
    public int[][] GetDependencyPaths()
    Returns
    Type Description
    int[][]

    GetFirstNodeOfType<TNode>()

    Get first node with specific type

    Declaration
    public TNode GetFirstNodeOfType<TNode>() where TNode : CeresNode
    Returns
    Type Description
    TNode

    Null if not exist

    Type Parameters
    Name Description
    TNode

    GetNodeDependencyPath(CeresNode)

    Get dependency execution path for destination node

    Declaration
    public int[] GetNodeDependencyPath(CeresNode node)
    Parameters
    Type Name Description
    CeresNode node
    Returns
    Type Description
    int[]

    GetNodeDependencyPath(string)

    Get dependency execution path for destination node with guid

    Declaration
    public int[] GetNodeDependencyPath(string guid)
    Parameters
    Type Name Description
    string guid
    Returns
    Type Description
    int[]

    InitPorts(CeresGraph)

    Traverse the graph and init all ports automatically

    Declaration
    protected static void InitPorts(CeresGraph graph)
    Parameters
    Type Name Description
    CeresGraph graph

    InitVariables(CeresGraph)

    Traverse the graph and init all shared variables automatically

    Declaration
    protected static void InitVariables(CeresGraph graph)
    Parameters
    Type Name Description
    CeresGraph graph

    IsUberGraph()

    Is graph on top level which means it can have subGraphs

    Declaration
    public virtual bool IsUberGraph()
    Returns
    Type Description
    bool

    LinkPort(CeresPort, CeresNode, CeresPortData)

    Declaration
    protected virtual void LinkPort(CeresPort port, CeresNode ownerNode, CeresPortData portData)
    Parameters
    Type Name Description
    CeresPort port
    CeresNode ownerNode
    CeresPortData portData

    SetCompilerTarget(CeresGraphCompiler)

    Declaration
    protected void SetCompilerTarget(CeresGraphCompiler compiler)
    Parameters
    Type Name Description
    CeresGraphCompiler compiler

    SetDependencyPath(int[][])

    Set graph node pre-cached dependency path

    Declaration
    public void SetDependencyPath(int[][] dependencyPath)
    Parameters
    Type Name Description
    int[][] dependencyPath

    TopologicalSort(CeresGraph, List<CeresNode>)

    Declaration
    protected static int[][] TopologicalSort(CeresGraph graph, List<CeresNode> nodes)
    Parameters
    Type Name Description
    CeresGraph graph
    System.Collections.Generic.List<T><CeresNode> nodes
    Returns
    Type Description
    int[][]

    Implements

    IDisposableUnregister
    In This Article
    Back to top Copyright © 2025 AkiKurisu
    Generated with DocFX