7 #ifndef Svc_ComAggregatorComponentAc_HPP 8 #define Svc_ComAggregatorComponentAc_HPP 12 #if !FW_DIRECT_PORT_CALLS 15 #if !FW_DIRECT_PORT_CALLS 132 void action_doSplitHold(
138 void action_doNoteFailure(
143 void action_assertNoStatus(
162 bool guard_isNotEmpty(
173 bool guard_isSpanFull(
196 #if !FW_DIRECT_PORT_CALLS 234 #if !FW_DIRECT_PORT_CALLS 262 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 273 Fw::InputSerializePort* port
279 Fw::InputSerializePort* port
285 Fw::InputSerializePort* port
298 const char* compName =
"" 424 #if FW_DIRECT_PORT_CALLS 646 static void m_p_comStatusIn_in(
653 static void m_p_dataIn_in(
661 static void m_p_dataReturnIn_in(
669 static void m_p_timeout_in(
682 void sendSignalStart(
689 void aggregationMachine_sendSignalFinish(
705 static void deserializeSmIdAndSignal(
712 void Svc_AggregationMachine_smDispatch(
714 Svc_AggregationMachine& sm,
718 #if !FW_DIRECT_PORT_CALLS 740 #if !FW_DIRECT_PORT_CALLS 766 Svc_AggregationMachine m_stateMachine_aggregationMachine;
static constexpr FwIndexType getNum_comStatusOut_OutputPorts()
static constexpr FwIndexType getNum_dataOut_OutputPorts()
PlatformSizeType FwSizeType
static constexpr FwIndexType getNum_dataIn_InputPorts()
virtual void Svc_AggregationMachine_action_doClear(SmId smId, Svc_AggregationMachine::Signal signal)=0
bool isConnected_comStatusOut_OutputPort(FwIndexType portNum) const
virtual void Svc_AggregationMachine_action_doFill(SmId smId, Svc_AggregationMachine::Signal signal, const Svc::ComDataContextPair &value)=0
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
virtual bool Svc_AggregationMachine_guard_isFull(SmId smId, Svc_AggregationMachine::Signal signal, const Svc::ComDataContextPair &value) const =0
SmId
State machine identifiers.
void init(ComAggregatorComponentBase::SmId smId)
Initialize the state machine.
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataReturnOut.
void aggregationMachine_sendSignal_status(const Fw::Success &value)
Send signal status to state machine aggregationMachine.
static constexpr FwIndexType getNum_timeout_InputPorts()
void timeout_handlerBase(FwIndexType portNum, U32 context)
Handler base-class function for input port timeout.
static constexpr FwIndexType getNum_comStatusIn_InputPorts()
Fw::InputSuccessConditionPort * get_comStatusIn_InputPort(FwIndexType portNum)
virtual ~ComAggregatorComponentBase()
Destroy ComAggregatorComponentBase object.
Svc_AggregationMachine::State aggregationMachine_getState() const
Get the state of state machine instance aggregationMachine.
virtual void Svc_AggregationMachine_action_doNoteFailure(SmId smId, Svc_AggregationMachine::Signal signal)=0
static constexpr FwIndexType getNum_dataReturnIn_InputPorts()
void dataIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataIn.
void set_comStatusOut_OutputPort(FwIndexType portNum, Fw::InputSuccessConditionPort *port)
Connect port to comStatusOut[portNum].
void init()
Object initializer.
virtual void Svc_AggregationMachine_action_doSplitHold(SmId smId, Svc_AggregationMachine::Signal signal, const Svc::ComDataContextPair &value)=0
void dataReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataReturnIn.
bool isConnected_dataOut_OutputPort(FwIndexType portNum) const
virtual void Svc_AggregationMachine_action_assertNoStatus(SmId smId, Svc_AggregationMachine::Signal signal)=0
Svc_AggregationMachine(ComAggregatorComponentBase &component)
Constructor.
virtual void dataIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataIn.
Aggregation state machine.
friend class ComAggregatorTester
Test implementation for the enclosing component.
void comStatusIn_handlerBase(FwIndexType portNum, Fw::Success &condition)
Handler base-class function for input port comStatusIn.
Svc::InputComDataWithContextPort * get_dataReturnIn_InputPort(FwIndexType portNum)
virtual void Svc_AggregationMachine_action_doHold(SmId smId, Svc_AggregationMachine::Signal signal, const Svc::ComDataContextPair &value)=0
ComAggregatorComponentBase::SmId getId() const
Get the state machine id.
virtual void timeout_handler(FwIndexType portNum, U32 context)=0
Handler for input port timeout.
bool isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const
ComAggregatorComponentBase(const char *compName="")
Construct ComAggregatorComponentBase object.
friend class ComAggregatorTesterBase
Autocoded test harness for the enclosing component.
virtual bool Svc_AggregationMachine_guard_willFill(SmId smId, Svc_AggregationMachine::Signal signal, const Svc::ComDataContextPair &value) const =0
friend class ComAggregatorTesterBase
Friend class tester to support autocoded test harness.
Implementation of state machine Svc_AggregationMachine.
Auto-generated base for ComAggregator component.
virtual bool Svc_AggregationMachine_guard_isGood(SmId smId, Svc_AggregationMachine::Signal signal, const Fw::Success &value) const =0
void aggregationMachine_sendSignal_timeout()
Send signal timeout to state machine aggregationMachine.
virtual bool Svc_AggregationMachine_guard_isNotEmpty(SmId smId, Svc_AggregationMachine::Signal signal) const =0
static constexpr FwIndexType getNum_dataReturnOut_OutputPorts()
PlatformIndexType FwIndexType
Svc::AggregationMachine_State State
The state type.
void comStatusOut_out(FwIndexType portNum, Fw::Success &condition) const
Invoke output port comStatusOut.
virtual void comStatusIn_handler(FwIndexType portNum, Fw::Success &condition)=0
Handler for input port comStatusIn.
Svc::InputComDataWithContextPort * get_dataIn_InputPort(FwIndexType portNum)
Type used to pass context info between components during framing/deframing.
Svc::InputSchedPort * get_timeout_InputPort(FwIndexType portNum)
RateGroupDivider component implementation.
virtual bool Svc_AggregationMachine_guard_isSpanFull(SmId smId, Svc_AggregationMachine::Signal signal) const =0
virtual void Svc_AggregationMachine_action_doSend(SmId smId, Svc_AggregationMachine::Signal signal)=0
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataOut.
void aggregationMachine_sendSignal_fill(const Svc::ComDataContextPair &value)
Send signal fill to state machine aggregationMachine.
void set_dataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataOut[portNum].
virtual void dataReturnIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataReturnIn.
friend class ComAggregatorTester
Friend class tester implementation to support white-box testing.