Exemplo n.º 1
0
        public Product CreateProduct(StateMachineData fsmData, string filename)
        {
            Product product = new Product();

            product.SetFilename(filename);

            // header
            product.Append(CreateHeader(filename));

            // actions
            product.Append(CreateActions(fsmData.GetActions()));

            // pseudo actions
            product.Append(CreatePseudoActions(fsmData.GetPseudoActions()));

            // guards
            product.Append(CreateGuards(fsmData.GetGuards()));

            // class footer
            product.Append(CreateClassFooter(filename));

            // transition table
            product.Append(CreateTransitionTable(fsmData.GetTransitionTable()));

            // footer
            product.Append(CreateFooter(filename));

            return(product);
        }
Exemplo n.º 2
0
 internal Model(StateMachineController stateMachineController, TransitionTableSO transitionTableSO,
                CancellationToken cancellationToken)
 {
     if (CanInitializeData)
     {
         data = new StateMachineData(stateMachineController, transitionTableSO, cancellationToken);
     }
 }
Exemplo n.º 3
0
 public BoostStateMachineBuilder(Product product, StateMachineData data)
 {
     m_Product = product;
     m_Data    = data;
 }
Exemplo n.º 4
0
 public void SetOwner(StateMachineData sm)
 {
     _currentOperatingSM = sm;
 }