reactive_graph_std_logical_model/entity/
if_then_else.rs

1use crate::Condition;
2use crate::NAMESPACE_LOGICAL;
3use reactive_graph_behaviour_model_api::behaviour_ty;
4use reactive_graph_behaviour_model_api::entity_behaviour_ty;
5use reactive_graph_graph::entity_ty;
6use reactive_graph_graph::properties;
7use reactive_graph_reactive_model_api::entity_model;
8use reactive_graph_std_result_model::ResultAny;
9
10properties!(IfThenElseProperties, (THEN_PAYLOAD, "then_payload", 0), (ELSE_PAYLOAD, "else_payload", 0));
11
12entity_ty!(ENTITY_TYPE_IF_THEN_ELSE, NAMESPACE_LOGICAL, ENTITY_TYPE_NAME_IF_THEN_ELSE, "if_then_else");
13behaviour_ty!(BEHAVIOUR_IF_THEN_ELSE, NAMESPACE_LOGICAL, BEHAVIOUR_NAME_IF_THEN_ELSE, "if_then_else");
14entity_behaviour_ty!(ENTITY_BEHAVIOUR_IF_THEN_ELSE, ENTITY_TYPE_IF_THEN_ELSE, BEHAVIOUR_IF_THEN_ELSE);
15
16entity_model!(
17    IfThenElse,
18    set then_payload value,
19    set else_payload value
20);
21impl Condition for IfThenElse {}
22impl ResultAny for IfThenElse {}