certi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [certi-dev] Re: When should a constraint federate receive RO message


From: Pierre Siron
Subject: Re: [certi-dev] Re: When should a constraint federate receive RO message?
Date: Thu, 10 Jul 2008 12:44:37 +0200
User-agent: Thunderbird 2.0.0.5 (X11/20070719)

Christian Stenzel a écrit :
> Bonjour Pierre,
Bonjour Christian,
I recognize this code,
the only thing to try is to replace insertFifoMessage
by insertLastCommand,
Commands are invoked or transmitted from RTIA to the federate
at each tick,  the delivery of commands is independent
from the current TRE/TCE state of the federate.
Bien cordialement,
Pierre

>
>
>> 1°) I do not find again the classification of the callbacks in TSO, RO
>> and Commands.
>> So, if the timeConstrainedEnabled is a command, the side effect
>> disappears.
>
> Here are the corresponding code fragments (RTIA/RTIA_network.cc, line
> 329-338)
>
>      case NetworkMessage::TIME_REGULATION_ENABLED:
>          D.Out(pdTrace, "Receiving Message from RTIG, "
>                          " type TimeRegulationEnabled.");
>          queues->insertFifoMessage(msg);
>          break ;
>      case NetworkMessage::TIME_CONSTRAINED_ENABLED:
>          D.Out(pdTrace, "Receiving Message from RTIG, "
>                          " type TimeConstrainedEnabled.");
>          queues->insertFifoMessage(msg);
>          break;
>
> Here I was indeed unsure how to treat the callbacks. Now, as one
> can see, all are treated as RO.
> I'm not very familiar with the command handling in CERTI.
> But I suppose commands are another queue. When are commands invoked or
> transmitted from RTIA to the federate?
> I further suppose that the delivery of commands is independent
> from the current TRE/TCE state of the federate.
>
> So perhaps this is a better option.
>
>
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]