XML: Stack Example: Difference between revisions

From FSDeveloper Wiki
Jump to navigationJump to search
No edit summary
Line 2: Line 2:
== Stack examples ==
== Stack examples ==


'''Example 1'''
'''EXAMPLE 1'''


[[File:Stack Example 0.png]]
[[File:Stack Example 0.png]]




'''Example 2'''
'''EXAMPLE 2'''


[[File:Stack Example.png]]
[[File:Stack Example.png]]
Line 15: Line 15:


According to this old blog http://blogs.technet.com/b/engauged/archive/2005/11/08/413947.aspx
According to this old blog http://blogs.technet.com/b/engauged/archive/2005/11/08/413947.aspx
the maximum stack depth is 30.  When the stack is full, any new value pushed onto the top causes the bottom value to be removed and discarded
the maximum stack depth is 30.  When the stack is full, any new value pushed onto the top causes the bottom value to be removed and discarded.




Line 28: Line 28:




Acknowledgement:  Thanks to Tom Aguilo for information on stack structure
Acknowledgement:  Thanks to Tom Aguilo for information on stack structure.


- rpmc
- rpmc
[[Category:Aircraft Design]]
[[Category:Aircraft Design]]
[[Category:Panel and Gauge Design]]
[[Category:Panel and Gauge Design]]

Revision as of 23:02, 24 April 2016

Stack examples

EXAMPLE 1


EXAMPLE 2


MAXIMUM STACK DEPTH

According to this old blog http://blogs.technet.com/b/engauged/archive/2005/11/08/413947.aspx the maximum stack depth is 30. When the stack is full, any new value pushed onto the top causes the bottom value to be removed and discarded.


CLEARING THE STACK

The stack is cleared at the beginning of each gauge cycle, or by applying the Clear Stack operator, "c". Of course, also during a panel Load or Reload.


DIFFERENT STACKS

The stack is shared between <Update> and all of the <Element> set. As well, each <Area>, <On Event> and <On Key> structures hold their own stacks.


Acknowledgement: Thanks to Tom Aguilo for information on stack structure.

- rpmc