c++catiacaa

Can we use only initialstate and null state in Buildgraph method of caa?


Can we use only initialstate and null state?If yes,how will it behave?


Solution

  • As stated in the encyclopedia

    The command is never in the initial state that automatically skips to the first state.

    But when you read further (in the code example) :

    CATDialogState *stStartState = GetInitialState("stStartPointId");
    

    These are not the same states. In other words, GetInitialState returns you the first working state of your diagram (that will be reached automatically at command activation from the initial state) that can be associated with agents, be the source or target of any transition, as any other state that you further create with AddDialogState

    You will have to reconsider your question then.