putValue (aaaSwitch_2A, this.switch_1B); aMsg.switch_2A = this.switch_1B; putValue (aaaIndicator_A, this.switch_1B); aMsg.Indicator_A =… [621803]
Cod nod A
/*@!Encoding:1252*/
includes
{
}
variables
{
message aaaMsg aMsg;
msTimer messageA;
}
on timer messageA
{
output(aMsg);
}
on message bbbMsg
{
putValue (aaaSwitch_2A, this.switch_1B);
aMsg.switch_2A = this.switch_1B;
putValue (aaaIndicator_A, this.switch_1B);
aMsg.Indicator_A = this.switch_1B;
setTimerCyclic (messageA, 50);
write ("until here everything was executed" );
}
on envVar aaaSwitch_1A
{
aMsg.switch_1A = getValue( this);
setTimerCyclic (messageA, 50);
}
on envVar aaaSwitch_2A
{
aMsg.switch_2A = getValue( this);
setTimerCyclic (messageA, 50);
}
on envVar aaaIndicator_A
{
aMsg.Indicator_A = getValue( this);
setTimerCyclic (messageA, 50);
}
on key 'a'
{
cancelTimer(messageA); // cancel timer
}
Cod nod B
/*@!Encoding:1252*/
includes
{
}
variables
{
message bbbMsg bMsg;
msTimer messageB;
}
on timer messageB
{
output(bMsg);
}
on message aaaMsg
{
putValue (bbbSwitch_2B, this.switch_1A);
bMsg.switch_2B = this.switch_1A;
putValue (bbbIndicator_B, this.switch_1A);
bMsg.Indicator_B = this.switch_1A;
setTimerCyclic (messageB, 50);
write ("until here everything was executed" );
}
on envVar bbbSwitch_1B
{
bMsg.switch_1B = getValue( this);
setTimerCyclic (messageB, 50);
}
on envVar bbbSwitch_2B
{
bMsg.switch_2B = getValue( this);
setTimerCyclic (messageB, 50);
}
on key 'a'
{
cancelTimer(messageB); // cancel timer
}
Copyright Notice
© Licențiada.org respectă drepturile de proprietate intelectuală și așteaptă ca toți utilizatorii să facă același lucru. Dacă consideri că un conținut de pe site încalcă drepturile tale de autor, te rugăm să trimiți o notificare DMCA.
Acest articol: putValue (aaaSwitch_2A, this.switch_1B); aMsg.switch_2A = this.switch_1B; putValue (aaaIndicator_A, this.switch_1B); aMsg.Indicator_A =… [621803] (ID: 621803)
Dacă considerați că acest conținut vă încalcă drepturile de autor, vă rugăm să depuneți o cerere pe pagina noastră Copyright Takedown.
