• <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>
  • Compute Graph Framework SDK Reference  5.10
    All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    JSON Descriptor

    A JSON Descriptor is a JSON file containing information describing a specific entity, e.g. a node, a graphlet, or (part of) an application.

    JSON Schemas

    For each entity type a JSON schema <type>.schema.json describes the data format. The schema provides a human readable documentation about each key as well enables validating that JSON files adhere to the schema.

    Validation

    JSON schemas can only express a subset of constraints for the data in a JSON file and are also limited to validate a single file. Therefore a validation script perform additional constraint checking as well as checking cross-file constraints.

    ‍Note: in most cases the order of keys in JSON is strictly enforced to ensure a deterministic layout.

    Visualization and Graphical Editing

    Graphlets and applications are exclusively described in JSON and can be visualized and edited using a graphical UI.

    Node Descriptor

    C++ API to .node.json

    See development time workflow.

    The information in a node descriptor can be extracted from the C++ API of an implemented node using the command line tool nodedescriptor. Since the JSON information is derived in this case, the graphical tool doesn't offer editing the node information.

    .node.json to C++ Stubs

    See design time workflow.

    If no implementation of a node exists yet, it can be designed from scratch in the graphical UI. This enables designing nodes, graphlets, and entire applications to e.g. analyze the scheduling without having to implement any code. The command line tool nodestub can generate C++ stub headers and sources from a node descriptor file to speed up the start of the implementation.

    人人超碰97caoporen国产