10#if FW_ENABLE_TEXT_LOGGING
20 void PassiveRateGroupComponentBase ::
29 port < static_cast<FwIndexType>(this->getNum_CycleIn_InputPorts());
32 this->m_CycleIn_InputPort[port].init();
33 this->m_CycleIn_InputPort[port].addCallComp(
37 this->m_CycleIn_InputPort[port].setPortNum(port);
39#if FW_OBJECT_NAMES == 1
43 this->m_objName.toChar(),
46 this->m_CycleIn_InputPort[port].setObjName(portName.
toChar());
53 port < static_cast<FwIndexType>(this->getNum_Time_OutputPorts());
56 this->m_Time_OutputPort[port].init();
58#if FW_OBJECT_NAMES == 1
62 this->m_objName.toChar(),
65 this->m_Time_OutputPort[port].setObjName(portName.
toChar());
72 port < static_cast<FwIndexType>(this->getNum_Tlm_OutputPorts());
75 this->m_Tlm_OutputPort[port].init();
77#if FW_OBJECT_NAMES == 1
81 this->m_objName.toChar(),
84 this->m_Tlm_OutputPort[port].setObjName(portName.
toChar());
91 port < static_cast<FwIndexType>(this->getNum_RateGroupMemberOut_OutputPorts());
94 this->m_RateGroupMemberOut_OutputPort[port].init();
96#if FW_OBJECT_NAMES == 1
100 this->m_objName.toChar(),
103 this->m_RateGroupMemberOut_OutputPort[port].setObjName(portName.
toChar());
116 portNum < this->getNum_CycleIn_InputPorts(),
120 return &this->m_CycleIn_InputPort[portNum];
127 void PassiveRateGroupComponentBase ::
134 portNum < this->getNum_Time_OutputPorts(),
138 this->m_Time_OutputPort[portNum].addCallPort(port);
141 void PassiveRateGroupComponentBase ::
148 portNum < this->getNum_Tlm_OutputPorts(),
152 this->m_Tlm_OutputPort[portNum].addCallPort(port);
159 void PassiveRateGroupComponentBase ::
160 set_RateGroupMemberOut_OutputPort(
166 portNum < this->getNum_RateGroupMemberOut_OutputPorts(),
170 this->m_RateGroupMemberOut_OutputPort[portNum].addCallPort(port);
173#if FW_PORT_SERIALIZATION
179 void PassiveRateGroupComponentBase ::
182 Fw::InputSerializePort* port
186 portNum < this->getNum_Time_OutputPorts(),
190 this->m_Time_OutputPort[portNum].registerSerialPort(port);
193 void PassiveRateGroupComponentBase ::
196 Fw::InputSerializePort* port
200 portNum < this->getNum_Tlm_OutputPorts(),
204 this->m_Tlm_OutputPort[portNum].registerSerialPort(port);
209#if FW_PORT_SERIALIZATION
215 void PassiveRateGroupComponentBase ::
216 set_RateGroupMemberOut_OutputPort(
218 Fw::InputSerializePort* port
222 portNum < this->getNum_RateGroupMemberOut_OutputPorts(),
226 this->m_RateGroupMemberOut_OutputPort[portNum].registerSerialPort(port);
235 PassiveRateGroupComponentBase ::
236 PassiveRateGroupComponentBase(
const char* compName) :
237 Fw::PassiveComponentBase(compName)
240 this->m_first_update_MaxCycleTime =
true;
241 this->m_last_MaxCycleTime = 0;
244 PassiveRateGroupComponentBase ::
245 ~PassiveRateGroupComponentBase()
255 getNum_CycleIn_InputPorts()
const
265 getNum_Time_OutputPorts()
const
271 getNum_Tlm_OutputPorts()
const
281 getNum_RateGroupMemberOut_OutputPorts()
const
290 bool PassiveRateGroupComponentBase ::
294 portNum < this->getNum_Time_OutputPorts(),
298 return this->m_Time_OutputPort[portNum].isConnected();
301 bool PassiveRateGroupComponentBase ::
305 portNum < this->getNum_Tlm_OutputPorts(),
309 return this->m_Tlm_OutputPort[portNum].isConnected();
316 bool PassiveRateGroupComponentBase ::
317 isConnected_RateGroupMemberOut_OutputPort(
FwIndexType portNum)
320 portNum < this->getNum_RateGroupMemberOut_OutputPorts(),
324 return this->m_RateGroupMemberOut_OutputPort[portNum].isConnected();
333 void PassiveRateGroupComponentBase ::
341 portNum < this->getNum_CycleIn_InputPorts(),
346 this->CycleIn_handler(
356 void PassiveRateGroupComponentBase ::
357 RateGroupMemberOut_out(
363 portNum < this->getNum_RateGroupMemberOut_OutputPorts(),
366 this->m_RateGroupMemberOut_OutputPort[portNum].invoke(
375 void PassiveRateGroupComponentBase ::
376 tlmWrite_MaxCycleTime(
382 if (not this->m_first_update_MaxCycleTime) {
384 if (arg == this->m_last_MaxCycleTime) {
388 this->m_last_MaxCycleTime = arg;
392 this->m_first_update_MaxCycleTime =
false;
393 this->m_last_MaxCycleTime = arg;
396 if (this->m_Tlm_OutputPort[0].isConnected()) {
398 this->m_Time_OutputPort[0].isConnected() &&
401 this->m_Time_OutputPort[0].invoke(_tlmTime);
413 _id = this->getIdBase() + CHANNELID_MAXCYCLETIME;
415 this->m_Tlm_OutputPort[0].invoke(
423 void PassiveRateGroupComponentBase ::
429 if (this->m_Tlm_OutputPort[0].isConnected()) {
431 this->m_Time_OutputPort[0].isConnected() &&
434 this->m_Time_OutputPort[0].invoke(_tlmTime);
446 _id = this->getIdBase() + CHANNELID_CYCLETIME;
448 this->m_Tlm_OutputPort[0].invoke(
456 void PassiveRateGroupComponentBase ::
462 if (this->m_Tlm_OutputPort[0].isConnected()) {
464 this->m_Time_OutputPort[0].isConnected() &&
467 this->m_Time_OutputPort[0].invoke(_tlmTime);
479 _id = this->getIdBase() + CHANNELID_CYCLECOUNT;
481 this->m_Tlm_OutputPort[0].invoke(
496 if (this->m_Time_OutputPort[0].isConnected()) {
498 this->m_Time_OutputPort[0].invoke(_time);
510 void PassiveRateGroupComponentBase ::
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
#define PRI_PlatformIntType
@ TB_NONE
No time base has been established.
PlatformAssertArgType FwAssertArgType
PlatformIndexType FwIndexType
void init()
Object initializer.
const char * toChar() const
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
void format(const CHAR *formatString,...)
write formatted string to buffer
Auto-generated base for PassiveRateGroup component.
void CycleIn_handlerBase(FwIndexType portNum, Os::RawTime &cycleStart)
Handler base-class function for input port CycleIn.
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.