reactive_graph_flow_model/
type_system.rs1#![allow(dead_code, unused)]
5#![cfg_attr(rustfmt, rustfmt_skip)]
6
7pub static TYPE_SYSTEM_COMPONENTS: std::sync::LazyLock<
8 reactive_graph_graph::Components,
9> = std::sync::LazyLock::new(|| {
10 reactive_graph_graph::Components::new()
11 .component(crate::reactive_graph::flow::flow_2_d::FLOW_2_D_TYPE.clone())
12 .component(crate::reactive_graph::flow::flow_3_d::FLOW_3_D_TYPE.clone())
13});
14
15pub static TYPE_SYSTEM_ENTITY_TYPES: std::sync::LazyLock<
16 reactive_graph_graph::EntityTypes,
17> = std::sync::LazyLock::new(|| {
18 reactive_graph_graph::EntityTypes::new()
19 .entity(crate::reactive_graph::flow::comment::COMMENT_TYPE.clone())
20 .entity(crate::reactive_graph::flow::simple_flow::SIMPLE_FLOW_TYPE.clone())
21});
22
23pub static TYPE_SYSTEM_RELATION_TYPES: std::sync::LazyLock<
24 reactive_graph_graph::RelationTypes,
25> = std::sync::LazyLock::new(|| {
26 reactive_graph_graph::RelationTypes::new()
27 .relation(crate::reactive_graph::flow::has_comment::HAS_COMMENT_TYPE.clone())
28});
29
30pub static TYPE_SYSTEM_FLOW_TYPES: std::sync::LazyLock<
31 reactive_graph_graph::FlowTypes,
32> = std::sync::LazyLock::new(|| { reactive_graph_graph::FlowTypes::new() });
33
34pub static TYPE_SYSTEM: std::sync::LazyLock<reactive_graph_graph::TypeSystem> = std::sync::LazyLock::new(||
35{
36 reactive_graph_graph::TypeSystem::builder()
37 .components(TYPE_SYSTEM_COMPONENTS.clone())
38 .entity_types(TYPE_SYSTEM_ENTITY_TYPES.clone())
39 .relation_types(TYPE_SYSTEM_RELATION_TYPES.clone())
40 .flow_types(TYPE_SYSTEM_FLOW_TYPES.clone())
41 .build()
42});
43pub static TYPE_SYSTEM_ID: &str = "reactive_graph::flow";
44pub static TYPE_SYSTEM_NAMESPACE: std::sync::LazyLock<reactive_graph_graph::Namespace> = std::sync::LazyLock::new(||
45{ std::str::FromStr::from_str(TYPE_SYSTEM_ID).unwrap() });