Class CpDecisionManager

Inheritance Relationships

Base Type

  • public smacc2::ISmaccComponent

Class Documentation

class CpDecisionManager : public smacc2::ISmaccComponent

Component that manages mission decision state.

This component tracks the decision counter for mission sequencing. It provides thread-safe access to decision state, separating mission logic from the client orchestrator.

Public Functions

CpDecisionManager() = default
virtual ~CpDecisionManager() = default
inline void onInitialize() override
inline int getDecisionCounter() const

Get the current decision counter value.

Returns:

Current decision count

inline int nextDecision()

Increment the decision counter and return the previous value.

Returns:

Decision count before incrementing

inline void resetDecisionCounter()

Reset the decision counter to zero.

inline void setDecisionCounter(int value)

Set the decision counter to a specific value.

Parameters:

value – New counter value